Function at 0x4574e0
Capabilities:
Reference sql statements
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b734
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5a4eec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1e0]
push 0x98
push 0
push eax
mov dword [ebp - 0x208], 0
call fcn.00517500
add esp, 4
lea ecx, [ebp - 0x1e0]
call fcn.0044bbc0
mov dword [ebp - 4], 0
mov dword [ebp - 0x134], 0xf
mov dword [ebp - 0x138], 0
mov byte [ebp - 0x148], 0
mov byte [ebp - 4], 1
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x4c]
mov ebx, eax
mov dword [ebp - 0x200], ebx
test ebx, ebx
jne 0x4575ca
mov ecx, str.GetSysDiskNum_svc_ptr_is_null
call fcn.004541e0
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
cmp dword [edi + 0x14], 0x10
jb 0x457595
mov eax, dword [edi]
jmp 0x457597
mov eax, edi
push 0
push 0x59bfad
mov ecx, edi
mov byte [eax], 0
call fcn.0044b730
lea ecx, [ebp - 0x148]
call fcn.0044b890
lea ecx, [ebp - 0x190]
call fcn.0044bb00
mov dword [ebp - 4], 2
jmp 0x457968
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00517500
push dword [ebp + 0xc]
lea eax, [ebp - 0x114]
push str.SELECT__FROM_Win32_DiskDrive_WHERE__Index___u_
push eax
call fcn.00454060
add esp, 0x18
mov dword [ebp - 0x11c], 0xf
cmp byte [ebp - 0x114], 0
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
jne 0x45761c
xor ecx, ecx
jmp 0x45762e
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x457625
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x130]
call fcn.0044b730
mov byte [ebp - 4], 3
lea eax, [ebp - 0x130]
cmp dword [ebp - 0x11c], 0x10
lea ecx, [ebp - 0x118]
cmovae eax, dword [ebp - 0x130]
push eax
call fcn.004566f0
mov esi, eax
push 0x59d3b4
lea ecx, [ebp - 0x1e4]
mov byte [ebp - 4], 4
call fcn.004566f0
mov byte [ebp - 4], 5
mov edx, dword [esi]
test edx, edx
je 0x457689
mov edx, dword [edx]
jmp 0x45768b
xor edx, edx
mov eax, dword [eax]
test eax, eax
je 0x457695
mov ecx, dword [eax]
jmp 0x457697
xor ecx, ecx
mov eax, dword [ebx]
lea esi, [ebp - 0x1e8]
push esi
push 0
push 0x30
push edx
push ecx
push ebx
call dword [eax + 0x50]
mov esi, dword [ebp - 0x1e4]
or ebx, 0xffffffff
mov edx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x1fc], eax
test esi, esi
je 0x457712
mov ecx, ebx
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x457708
test esi, esi
je 0x457708
mov eax, dword [esi]
test eax, eax
je 0x4576e0
push eax
call edx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4576f7
push eax
call fcn.005144af
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00514498
mov edx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 8
mov dword [ebp - 0x1e4], 0
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x118]
test esi, esi
je 0x45775d
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x45775d
test esi, esi
je 0x45775d
mov eax, dword [esi]
test eax, eax
je 0x45773b
push eax
call edx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x457752
push eax
call fcn.005144af
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00514498
add esp, 8
mov esi, dword [ebp - 0x1fc]
test esi, esi
js 0x4578c0
mov eax, dword [ebp - 0x1e8]
lea edx, [ebp - 0x118]
push edx
lea edx, [ebp - 0x1e4]
mov dword [ebp - 0x1e4], 0
push edx
push 1
mov dword [ebp - 0x118], 0
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x118], 0
jbe 0x4578a6
mov eax, dword [ebp - 0x1e4]
lea edx, [ebp - 0x1f8]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.SerialNumber
push eax
call dword [ecx + 0x10]
push dword [ebp - 0x1f8]
mov edx, str.SerialNumber_ret
lea ecx, [ebp - 0x1e0]
push eax
call fcn.00450060
mov ecx, eax
call fcn.0044c5f0
mov edx, str.__vt
mov ecx, eax
call fcn.00450060
mov ecx, eax
call fcn.00453310
push eax
call fcn.00453dc0
add esp, 4
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x1e0]
push eax
call fcn.0044bae0
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
jb 0x457820
mov eax, dword [eax]
mov ecx, eax
call fcn.004541e0
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.0044b890
cmp word [ebp - 0x1f8], 8
jne 0x45788d
mov eax, dword [ebp - 0x1f0]
test eax, eax
je 0x45788d
push eax
lea ecx, [ebp - 0x238]
call fcn.0045aa00
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x220]
call fcn.00456b90
push eax
lea ecx, [ebp - 0x148]
call fcn.0044b900
lea ecx, [ebp - 0x220]
call fcn.0044b890
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 3
call fcn.0045a9c0
lea eax, [ebp - 0x1f8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x1e4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1e8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x200]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x457932
mov edx, str.Query_for_operating_system_name_failed._Error_code__0x
lea ecx, [ebp - 0x1e0]
call fcn.00450060
mov edx, eax
test edx, edx
jne 0x4578da
xor ecx, ecx
jmp 0x4578e1
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x14], eax
mov ecx, edx
push esi
call fcn.0044c5f0
push eax
call fcn.00453dc0
add esp, 4
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x1e0]
push eax
call fcn.0044bae0
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 0x10
jb 0x457920
mov eax, dword [eax]
mov ecx, eax
call fcn.004541e0
lea ecx, [ebp - 0x238]
call fcn.0044b890
lea eax, [ebp - 0x148]
mov ecx, edi
push eax
call fcn.0044b9b0
lea ecx, [ebp - 0x130]
call fcn.0044b890
lea ecx, [ebp - 0x148]
call fcn.0044b890
lea ecx, [ebp - 0x190]
call fcn.0044bb00
mov dword [ebp - 4], 9
lea eax, [ebp - 0x190]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
push eax
call fcn.00513411
mov eax, edi
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00514739
mov esp, ebp
pop ebp
ret 8