Function at 0x5130e0
Capabilities:
Link many functions at runtime
Reference sql statements
Reference wmi statements

Disassembly:
push 0xffffffffffffffff
push 0x5966a8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
xor esi, esi
test ecx, ecx
js 0x51349e
cmp ecx, 8
jae 0x51349e
push str.Ole32.dll
lea ecx, [esp + 0x38]
call fcn.00403a70
mov dword [esp + 0x64], esi
lea eax, [esp + 0x34]
push eax
call fcn.004c1f20
mov ecx, eax
call fcn.004c1fa0
mov edi, eax
mov dword [esp + 0x64], 0xffffffff
cmp dword [esp + 0x48], 8
jb 0x51316d
push dword [esp + 0x34]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
test edi, edi
jne 0x513192
mov eax, 0xfffffffe
jmp 0x5134a1
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5be5f4
push edi
call ebx
push str.CoInitializeSecurity
push edi
mov dword [esp + 0x2c], eax
call ebx
push str.CoSetProxyBlanket
push edi
mov ebp, eax
call ebx
cmp dword [esp + 0x24], 0
mov edi, eax
je 0x513188
test ebp, ebp
je 0x513188
test edi, edi
je 0x513188
lea ecx, [esp + 0x1c]
call fcn.004b90c0
mov dword [esp + 0x64], 1
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call ebp
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
push 0x5a8178
push 1
push 0
push 0x5a8248
call dword [esp + 0x38]
test eax, eax
js 0x513270
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x513270
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], 0
mov eax, dword [ecx]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push str.ROOTCIMV2
push ecx
call dword [eax + 0xc]
test eax, eax
js 0x513266
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x513266
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call edi
test eax, eax
mov eax, dword [esp + 0x2c]
jns 0x51328d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, 0xfffffffe
mov dword [esp + 0x64], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.004b9210
mov eax, esi
jmp 0x5134a1
mov ebp, dword [esp + 0x14]
lea edx, [esp + 0x30]
push edx
push 0
push 0x30
push dword [ebp*8 + 0x5b1750]
mov dword [esp + 0x40], 0
mov ecx, dword [eax]
push 0x5be704
push eax
call dword [ecx + 0x50]
test eax, eax
jns 0x5132d3
mov eax, dword [esp + 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, 0xfffffffd
jmp 0x513275
push str.OleAut32.dll
lea ecx, [esp + 0x38]
call fcn.00403a70
mov byte [esp + 0x64], 2
lea eax, [esp + 0x34]
push eax
call fcn.004c1f20
mov ecx, eax
call fcn.004c1fa0
mov edi, eax
mov byte [esp + 0x64], 1
lea ecx, [esp + 0x34]
call fcn.00403b40
test edi, edi
jne 0x513327
mov eax, dword [esp + 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea esi, [edi - 4]
jmp 0x513275
push str.VariantInit
push edi
call ebx
push str.VariantClear
push edi
mov dword [esp + 0x1c], eax
call ebx
cmp dword [esp + 0x14], 0
mov dword [esp + 0x20], eax
je 0x513480
test eax, eax
je 0x513480
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x513467
mov ebx, dword [esp + 0x18]
mov edi, ebx
jmp 0x513370
mov dword [esp + 0x24], 0
mov dword [esp + 0x50], 0
test ebx, ebx
je 0x51338d
cmp esi, 0xc
jge 0x51345d
mov eax, dword [ecx]
lea edx, [esp + 0x50]
push edx
lea edx, [esp + 0x28]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [esp + 0x50], 0
je 0x513459
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x513459
test ebx, ebx
je 0x51343e
lea eax, [esp + 0x34]
push eax
call dword [esp + 0x18]
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x34]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push dword [ebp*8 + 0x5b1754]
push eax
call dword [ecx + 0x10]
mov ebx, dword [esp + 0x3c]
mov edx, 0x80
mov ecx, edi
sub ebx, edi
lea eax, [edx + 0x7fffff7e]
test eax, eax
je 0x513410
movzx eax, word [ebx + ecx]
test ax, ax
je 0x513410
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x5133f2
jmp 0x513414
test edx, edx
jne 0x513417
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea eax, [esp + 0x34]
push eax
call dword [esp + 0x24]
push ecx
mov edx, edi
mov ecx, ebp
call fcn.00513000
mov ecx, dword [esp + 0x28]
add esp, 4
mov ebx, dword [esp + 0x18]
test eax, eax
je 0x513445
inc esi
add edi, 0x100
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x30]
test ecx, ecx
jne 0x513370
jmp 0x513467
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x513467
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x513275
mov eax, dword [esp + 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, 0xfffffffb
jmp 0x513275
or eax, 0xffffffff
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00564de8
add esp, 0x54
ret