Function at 0x4ba380
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x40
mov ebp, dword [0x57407c]
mov esi, dword [esp + 0x54]
mov eax, dword [ebp]
cmp eax, 3
jbe 0x4ba3de
mov dword [esp + 8], str.Calling_CoCreateInstance_for_CLSID_WbemLocator
mov dword [esp + 0xc], 1
mov dword [esp], 0
mov dword [esp + 0x10], 0x563a38
mov dword [esp + 0x14], 0
sub esp, 4
lea eax, [esp + 4]
push 0
push 0xb9
push 0x563ad4
push 4
push eax
call fcn.004bc640
add esp, 0x18
mov edi, esp
mov dword [esp], 0
push edi
push 0x563a38
push 1
push 0
push 0x563b24
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4ba5ba
mov ebx, dword [esp]
test ebx, ebx
je 0x4ba5c5
mov dword [esp + 0x18], ebx
mov eax, dword [ebp]
cmp eax, 4
lea eax, [esp + 0x18]
jb 0x4ba46c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov dword [esp + 8], 0x563b40
mov dword [esp + 0xc], 1
mov dword [esp], 0
mov dword [esp + 0x20], 0x4bbbc0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 1
sub esp, 4
push 0
push 0xbd
push 0x563ad4
push 4
push edi
call fcn.004bc640
add esp, 0x18
mov dword [esp + 0x24], ebx
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x58]
mov eax, dword [ebp]
cmp eax, 3
jbe 0x4ba4c5
mov dword [esp + 8], str.Calling_ConnectServer
mov dword [esp + 0xc], 1
mov dword [esp], 0
mov dword [esp + 0x10], 0x563a38
mov dword [esp + 0x14], 0
sub esp, 4
push 0
push 0xc3
push 0x563ad4
push 4
lea eax, [esp + 0x14]
push eax
call fcn.004bc640
add esp, 0x18
push esi
push edi
call fcn.004bbcd0
add esp, 8
mov dword [esp + 0x28], eax
call fcn.0040e2f0
mov dword [esp + 0x3c], eax
call fcn.0040e2f0
mov dword [esp + 0x2c], eax
call fcn.0040e2f0
mov dword [esp + 0x18], eax
call fcn.0040e2f0
lea ebx, [esp + 0x2c]
lea esi, [esp + 0x3c]
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x24]
push 0
push edx
push 0x80
lea ebp, [esp + 0x24]
push ebp
push ebx
push esi
push ecx
push eax
lea edi, [esp + 0x20]
push edi
call fcn.004bb8e0
add esp, 0x24
cmp dword [esp], 0
mov ecx, dword [esp + 4]
je 0x4ba60b
mov eax, dword [esp + 8]
lea ebp, [esp + 0x1c]
mov dword [esp], ecx
mov dword [esp + 4], eax
push edi
call fcn.0048e540
add esp, 4
cmp dword [esp + 4], 0
mov edi, eax
je 0x4ba565
lea eax, [esp + 4]
push eax
call fcn.004bbc80
add esp, 4
push ebp
call fcn.004bbd70
add esp, 4
lea eax, [esp + 0x18]
push eax
call fcn.004bbd70
add esp, 4
push ebx
call fcn.004bbd70
add esp, 4
push esi
call fcn.004bbd70
add esp, 4
lea eax, [esp + 0x28]
push eax
call fcn.004bbd70
add esp, 4
mov esi, dword [esp + 0x54]
movzx eax, byte [esp + 0x37]
movzx ecx, word [esp + 0x35]
mov byte [esi + 3], al
mov word [esi + 1], cx
mov byte [esi], 0
mov dword [esi + 4], edi
jmp 0x4ba778
push eax
call fcn.004bbed0
add esp, 4
jmp 0x4ba5c9
xor eax, eax
xor edx, edx
mov dword [esp], eax
mov dword [esp + 4], edx
push edi
call fcn.0048e540
add esp, 4
cmp dword [esp + 4], 0
mov edi, eax
je 0x4ba5ef
lea eax, [esp + 4]
push eax
call fcn.004bbc80
add esp, 4
movzx eax, byte [esp + 0x2e]
movzx ecx, word [esp + 0x2c]
mov byte [esi + 3], al
mov word [esi + 1], cx
mov byte [esi], 0
mov dword [esi + 4], edi
jmp 0x4ba785
lea eax, [esp + 0x1c]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], ecx
push eax
call fcn.004bbd70
add esp, 4
push ebp
call fcn.004bbd70
add esp, 4
push ebx
call fcn.004bbd70
add esp, 4
push esi
call fcn.004bbd70
add esp, 4
mov eax, dword [0x57407c]
mov eax, dword [eax]
cmp eax, 4
jb 0x4ba698
lea eax, [esp + 0x38]
lea ecx, [esp + 0x1c]
mov dword [esp + 8], 0x563b74
mov dword [esp + 0xc], 1
mov dword [esp], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], 0x4bbbf0
mov dword [esp + 0x14], 1
sub esp, 4
push 0
push 0xd3
push 0x563ad4
push 4
push edi
call fcn.004bc640
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call fcn.004bbd70
add esp, 4
mov ecx, dword [esp + 0x30]
mov eax, dword [0x57407c]
mov esi, dword [esp + 0x54]
mov dword [esp + 0x1c], ecx
mov eax, dword [eax]
cmp eax, 3
jbe 0x4ba702
mov dword [esp + 8], 0x563a6c
mov dword [esp + 0xc], 1
mov dword [esp], 0
mov dword [esp + 0x10], 0x563a38
mov dword [esp + 0x14], 0
sub esp, 4
push 0
push 0xa5
push 0x563ad4
push 4
push edi
call fcn.004bc640
mov ecx, dword [esp + 0x48]
add esp, 0x18
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push ecx
mov ebx, ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x4ba725
mov dword [esi + 4], ebx
mov byte [esi], 0x12
jmp 0x4ba778
push eax
call fcn.004bbed0
add esp, 4
mov dword [esp], eax
mov dword [esp + 4], edx
push edi
call fcn.0048e540
add esp, 4
cmp dword [esp + 4], 0
mov edi, eax
je 0x4ba754
lea eax, [esp + 4]
push eax
call fcn.004bbc80
add esp, 4
movzx eax, byte [esp + 0x1a]
mov byte [esi + 3], al
movzx eax, word [esp + 0x18]
mov word [esi + 1], ax
lea eax, [esp + 0x1c]
mov dword [esi + 4], edi
mov byte [esi], 0
push eax
call fcn.004bbc80
add esp, 4
lea eax, [esp + 0x24]
push eax
call fcn.004bbc80
add esp, 4
mov eax, esi
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret