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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b69a
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
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 - 0xac]
push 0x98
push 0
push eax
mov dword [ebp - 0xd0], edi
call fcn.00517500
add esp, 4
lea ecx, [ebp - 0xac]
call fcn.0044bbc0
mov dword [ebp - 4], 0
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x4c]
mov ebx, eax
test ebx, ebx
jne 0x4571f0
mov ecx, str.GetBootDiskIndex_svc_ptr_is_null_n
call fcn.004541e0
or esi, 0xffffffff
jmp 0x457499
push dword [edi*4 + 0x59ca4c]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0xc8], 0xffffffff
mov dword [ebp - 0xb4], 0
call fcn.004566f0
mov esi, eax
push 0x59d3b4
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 1
call fcn.004566f0
mov byte [ebp - 4], 2
mov edx, dword [esi]
test edx, edx
je 0x457237
mov edx, dword [edx]
jmp 0x457239
xor edx, edx
mov eax, dword [eax]
test eax, eax
je 0x457243
mov ecx, dword [eax]
jmp 0x457245
xor ecx, ecx
mov eax, dword [ebx]
lea esi, [ebp - 0xb4]
push esi
push 0
push 0x30
push edx
push ecx
push ebx
call dword [eax + 0x50]
mov esi, dword [ebp - 0xb0]
or edi, 0xffffffff
mov edx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0xcc], eax
test esi, esi
je 0x4572c0
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x4572b6
test esi, esi
je 0x4572b6
mov eax, dword [esi]
test eax, eax
je 0x45728e
push eax
call edx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4572a5
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 - 0xb0], 0
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x457308
lock xadd dword [esi + 8], edi
dec edi
jne 0x457308
test esi, esi
je 0x457308
mov eax, dword [esi]
test eax, eax
je 0x4572e6
push eax
call edx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4572fd
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 - 0xcc]
test esi, esi
js 0x45742a
mov ecx, dword [ebp - 0xb4]
test ecx, ecx
je 0x45742a
lea edx, [ebp - 0x14]
mov dword [ebp - 0xb0], 0
push edx
lea edx, [ebp - 0xb0]
mov dword [ebp - 0x14], 0
mov eax, dword [ecx]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x14], 0
jbe 0x457416
mov eax, dword [ebp - 0xb0]
lea edx, [ebp - 0xc4]
push 0
push 0
push edx
mov edx, dword [ebp - 0xd0]
mov ecx, dword [eax]
push 0
push dword [edx*4 + 0x59ca30]
push eax
call dword [ecx + 0x10]
mov ecx, dword [ebp - 0xc4]
or edx, 0xffffffff
cmp cx, 1
push ecx
cmovne edx, dword [ebp - 0xbc]
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xc8], edx
mov edx, str.pclsObj_get_disk_index_ret
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 - 0xec]
lea ecx, [ebp - 0xac]
push eax
call fcn.0044bae0
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
jb 0x4573e7
mov eax, dword [eax]
mov ecx, eax
call fcn.004541e0
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 0
call fcn.0044b890
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0xb0]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xb4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
jmp 0x457493
mov edx, str.Query_for_operating_system_name_failed._Error_code__0x
lea ecx, [ebp - 0xac]
call fcn.00450060
mov edx, eax
test edx, edx
jne 0x457444
xor ecx, ecx
jmp 0x45744b
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
lea eax, [ebp - 0xec]
push eax
lea ecx, [ebp - 0xac]
call fcn.0044bae0
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 0x10
jb 0x457481
mov eax, dword [eax]
mov ecx, eax
call fcn.004541e0
lea ecx, [ebp - 0xec]
call fcn.0044b890
mov esi, dword [ebp - 0xc8]
lea ecx, [ebp - 0x5c]
call fcn.0044bb00
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 5
push eax
mov dword [ebp - 0x5c], vtable.std::ios_base.0
call fcn.00513411
add esp, 4
mov eax, esi
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 4