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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b89a8
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x6d2e20]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x6d2e20]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
cmp byte [0x6dc68c], 0
mov eax, dword [ebp + 8]
mov ebx, edx
lea esi, [ebx + 4]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], esi
jne 0x405129
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [esi + 8], eax
test eax, eax
jl 0x405129
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jge 0x4050cb
cmp eax, 0x80010119
jne 0x405122
lea edi, [esi + 4]
push edi
push 0x6a6b8c
push 1
push 0
push 0x6a6c5c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x405129
mov eax, dword [edi]
mov edx, dword [eax]
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push str.rootCIMV2
push eax
mov eax, dword [edx + 0xc]
call eax
test eax, eax
jl 0x405129
mov ecx, dword [esi]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jl 0x405129
mov byte [0x6dc68c], 1
lea edx, [ebx + 0x10]
push edx
call fcn.0041f4b0
lea esi, [ebx + 0x178]
mov ecx, esi
call fcn.00429a10
push 0xe
push str.Serverlist.ini
mov eax, esi
call fcn.0040e0c0
mov edi, 8
cmp dword [esi + 0x18], edi
jb 0x40515c
mov eax, dword [esi + 4]
jmp 0x40515f
lea eax, [esi + 4]
push 0
push eax
call fcn.005aa4d1
add esp, 8
test eax, eax
je 0x405175
xor eax, eax
jmp 0x4054a2
cmp dword [esi + 0x18], edi
jb 0x40517f
mov ecx, dword [esi + 4]
jmp 0x405182
lea ecx, [esi + 4]
lea edi, [ebx + 0x3d8]
push str.SubmitEventUpdt
lea esi, [ebx + 0x3f0]
mov edx, edi
call fcn.00407d40
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4053b1
mov edx, dword [esp + 0x1c]
xor ebx, ebx
xor ecx, ecx
mov eax, edx
mov dword [esp + 0x9c], 7
mov dword [esp + 0x98], ebx
mov word [esp + 0x88], cx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4051e0
sub eax, esi
sar eax, 1
push eax
mov eax, edx
lea esi, [esp + 0x88]
call fcn.0040e1e0
mov dword [esp + 0xb0], ebx
mov esi, dword [edi + 0xc]
cmp esi, dword [edi + 0x10]
jbe 0x405212
call fcn.0058abb2
mov ebx, dword [edi]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
lea esp, [esp]
mov esi, dword [edi + 0x10]
cmp dword [edi + 0xc], esi
jbe 0x40522d
call fcn.0058abb2
mov eax, dword [edi]
test ebx, ebx
je 0x405237
cmp ebx, eax
je 0x40523c
call fcn.0058abb2
cmp dword [esp + 0x18], esi
je 0x405388
test ebx, ebx
jne 0x4052c6
call fcn.0058abb2
mov edx, dword [esp + 0x18]
cmp edx, dword [ebx + 0x10]
jb 0x40525d
call fcn.0058abb2
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
call fcn.00411090
mov byte [esp + 0xb0], 1
cmp dword [esp + 0x64], 0x10
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x2c], 0
jae 0x4052a3
lea ebx, [esp + 0x50]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x30]
call fcn.0042a510
mov ebx, dword [eax + 0x14]
mov esi, 8
add esp, 4
cmp dword [eax + 0x18], esi
jb 0x4052ca
mov eax, dword [eax + 4]
jmp 0x4052cd
mov ebx, dword [ebx]
jmp 0x40524f
add eax, 4
push eax
lea eax, [esp + 0x88]
call fcn.0040d180
mov ebx, eax
cmp dword [esp + 0x48], esi
jb 0x4052ef
mov edx, dword [esp + 0x34]
push edx
call fcn.0044fdf0
add esp, 4
cmp ebx, 0xffffffff
je 0x40533f
mov byte [esp + 0xb0], 0
cmp dword [esp + 0x64], 0x10
jb 0x405310
mov eax, dword [esp + 0x50]
push eax
call fcn.0044fdf0
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40533b
call fcn.0058abb2
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x10]
jb 0x40532d
call fcn.0058abb2
add dword [esp + 0x18], 0x1c
mov ebx, dword [esp + 0x14]
jmp 0x405220
mov eax, dword [eax]
jmp 0x40531f
cmp dword [esp + 0x64], 0x10
jb 0x405353
mov edx, dword [esp + 0x50]
push edx
call fcn.0044fdf0
add esp, 4
xor eax, eax
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], eax
mov byte [esp + 0x50], al
cmp dword [esp + 0x9c], esi
jb 0x40537e
mov eax, dword [esp + 0x88]
push eax
call fcn.0044fdf0
add esp, 4
mov eax, 0xb
jmp 0x4054a2
mov dword [esp + 0xb0], 0xffffffff
cmp dword [esp + 0x9c], 8
jb 0x4053ad
mov ecx, dword [esp + 0x88]
push ecx
call fcn.0044fdf0
add esp, 4
mov ebx, dword [esp + 0x24]
xor edi, edi
push edi
push 0x6a6f4e
lea ecx, [esp + 0x70]
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], edi
mov byte [esp + 0x74], 0
call fcn.00411450
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ebx
lea edx, [esp + 0x74]
mov dword [esp + 0xbc], 2
call fcn.00402700
cmp dword [ebx + 0x190], 8
jb 0x40540c
mov ecx, dword [ebx + 0x17c]
jmp 0x405412
lea ecx, [ebx + 0x17c]
push ebx
mov edx, str.SubmitEventUpdt
call fcn.00404d80
sub esp, 0x18
mov edx, esp
mov dword [esp + 0x38], esp
lea ecx, [ebx + 0x3c0]
push edx
call fcn.0040c2e0
cmp dword [esp + 0x98], 0x10
mov eax, dword [esp + 0x84]
jae 0x40544a
lea eax, [esp + 0x84]
push 6
push 6
push eax
mov ecx, ebx
call fcn.00404a40
mov esi, dword [esp + 0x28]
mov ebx, eax
mov eax, dword [esi]
cmp eax, edi
je 0x40546c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40547e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 4], edi
cmp dword [esi + 8], edi
jne 0x405489
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x80], 0x10
jb 0x4054a0
mov eax, dword [esp + 0x6c]
push eax
call fcn.0044fdf0
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0058848d
mov esp, ebp
pop ebp
ret 8