Function at 0x4519c0
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5657ca
mov eax, dword fs:[0]
push eax
sub esp, 0x84c
mov eax, dword [0x639ac0]
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 eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0xc
mov dword [ebp - 0x828], eax
mov dword [ebp - 0x820], 0
call fcn.004f69f2
mov ebx, eax
mov dword [ebp - 0x83c], eax
add esp, 4
mov dword [ebp - 0x824], ebx
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 4], 0
test ebx, ebx
je 0x451a4e
push 0x5c4610
mov dword [ebx + 4], 0
mov dword [ebx + 8], 1
call esi
mov dword [ebx], eax
test eax, eax
je 0x451ef6
jmp 0x451a56
xor ebx, ebx
mov dword [ebp - 0x83c], ebx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x858], ebx
test ebx, ebx
je 0x451f00
push 0xc
mov dword [ebp - 4], 1
call fcn.004f69f2
add esp, 4
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x824], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x451ab7
push 0x575358
mov dword [eax + 4], 0
mov dword [eax + 8], 1
call esi
mov esi, dword [ebp - 0x818]
mov dword [esi], eax
test eax, eax
je 0x451f0a
jmp 0x451abf
xor esi, esi
mov dword [ebp - 0x818], esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x844], esi
test esi, esi
je 0x451f14
lea eax, [ebp - 0x854]
mov dword [ebp - 0x814], 0
push eax
mov dword [ebp - 0x834], 0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 0x800
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 4
push 0
push eax
mov dword [ebp - 0x830], 0
call fcn.004ff750
add esp, 0xc
call fcn.00455b90
test al, al
je 0x451b2c
push str.WMI:_Get_port
call fcn.00455a00
add esp, 4
mov eax, dword [edi]
lea ecx, [ebp - 0x820]
push ecx
push 0
push 0x20
push dword [esi]
push dword [ebx]
push edi
call dword [eax + 0x50]
test eax, eax
jns 0x451b62
call fcn.00455b90
test al, al
je 0x451b5b
push str.WMI:_Get_WMI_info_failed__1_
call fcn.00455a00
add esp, 4
xor edi, edi
jmp 0x451e32
mov eax, dword [ebp - 0x820]
lea edx, [ebp - 0x834]
push edx
lea edx, [ebp - 0x814]
xor esi, esi
push edx
mov ecx, dword [eax]
push 1
push 0x2710
push eax
mov dword [ebp - 0x838], esi
call dword [ecx + 0x10]
test eax, eax
js 0x451e21
mov ebx, dword [ebp - 0x828]
add ebx, 0x49428
mov dword [ebp - 0x81c], esi
mov dword [ebp - 0x824], ebx
xor edi, edi
nop dword [eax]
cmp dword [ebp - 0x834], 0
je 0x451e21
cmp esi, 0x3e8
jge 0x451e21
mov eax, dword [ebp - 0x814]
lea edx, [ebp - 0x854]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.PortType
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x451de0
cmp word [ebp - 0x854], 3
jne 0x451de0
mov ecx, dword [ebp - 0x84c]
lea eax, [ecx - 1]
cmp eax, 0x20
ja 0x451de0
cmp edi, 0x32
jge 0x451de0
mov dword [ebx], ecx
mov esi, dword [ecx*4 + 0x5d1920]
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x451c26
mov eax, dword [ebp - 0x81c]
sub edx, ecx
mov ecx, dword [ebp - 0x828]
add eax, 0x494f0
add ecx, eax
sar edx, 1
cmp edx, 0xc8
mov eax, 0x5be250
cmovb eax, esi
push eax
push 0x32
push ecx
call fcn.0052d022
add esp, 0xc
lea eax, [ebp - 0x854]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x814]
lea edx, [ebp - 0x854]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.ConnectorType
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x451de0
mov eax, 0x2003
cmp word [ebp - 0x854], ax
jne 0x451de0
lea eax, [ebp - 0x840]
mov dword [ebp - 0x82c], 0
push eax
push 1
push dword [ebp - 0x84c]
call dword [sym.imp.OLEAUT32.dll_SafeArrayLock]
test eax, eax
js 0x451dd3
lea eax, [ebp - 0x82c]
push eax
push dword [ebp - 0x84c]
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
js 0x451dd3
cmp dword [ebp - 0x82c], 0
je 0x451dd3
mov eax, dword [ebp - 0x81c]
mov ebx, dword [ebp - 0x828]
add eax, 0x4a878
push 0x5be250
add ebx, eax
push 0x32
push ebx
call fcn.0052d022
mov esi, dword [ebp - 0x840]
add esp, 0xc
nop
mov eax, dword [ebp - 0x82c]
mov ecx, dword [eax + esi*4]
lea eax, [ecx - 1]
cmp eax, 0x78
ja 0x451d98
push dword [ecx*4 + 0x5d1738]
lea eax, [ebp - 0x810]
push 0x5753ec
push eax
call fcn.00432fe0
mov edx, ebx
add esp, 0xc
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x451d51
sub edx, ecx
lea eax, [ebp - 0x810]
sar edx, 1
lea edi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x451d70
sub eax, edi
sar eax, 1
add eax, edx
cmp eax, 0x32
jae 0x451d98
lea eax, [ebp - 0x810]
push eax
push 0x32
push ebx
call fcn.00535dbd
add esp, 0xc
inc esi
cmp esi, dword [ebp - 0x840]
je 0x451d20
push dword [ebp - 0x84c]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov ebx, dword [ebp - 0x824]
inc dword [ebp - 0x830]
add ebx, 4
add dword [ebp - 0x81c], 0x64
mov edi, dword [ebp - 0x830]
mov dword [ebp - 0x824], ebx
lea eax, [ebp - 0x854]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x814]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x820]
lea edx, [ebp - 0x834]
inc dword [ebp - 0x838]
push edx
lea edx, [ebp - 0x814]
mov ecx, dword [eax]
push edx
push 1
push 0x2710
push eax
call dword [ecx + 0x10]
mov esi, dword [ebp - 0x838]
test eax, eax
jns 0x451bb0
mov eax, dword [ebp - 0x820]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edi, 1
lea eax, [ebp - 0x854]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp - 0x818]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 8], eax
dec eax
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
jne 0x451e95
mov eax, dword [ecx]
test eax, eax
je 0x451e6d
push eax
call ebx
mov ecx, dword [ebp - 0x818]
mov dword [ecx], 0
mov eax, dword [ecx + 4]
test eax, eax
je 0x451e8a
push eax
call fcn.004f69ed
mov ecx, dword [ebp - 0x818]
add esp, 4
mov dword [ecx + 4], 0
push 0xc
push ecx
call fcn.004f6a22
add esp, 8
mov eax, dword [ebp - 0x83c]
lock xadd dword [eax + 8], esi
dec esi
jne 0x451ed6
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x451eb4
push eax
call ebx
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x451ecb
push eax
call fcn.004f69ed
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.004f6a22
add esp, 8
mov eax, edi
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.004f66cd
mov esp, ebp
pop ebp
ret 8
push 0x8007000e
call fcn.004f8630
push 0x8007000e
call fcn.004f8630
push 0x8007000e
call fcn.004f8630
push 0x8007000e
call fcn.004f8630
int3