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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b8978
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x65ee20]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x65ee20]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
cmp byte [0x6684bc], 0
mov eax, dword [ebp + 8]
mov esi, edx
lea edi, [esi + 4]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edi
jne 0x405d39
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [edi + 8], eax
test eax, eax
jl 0x405d39
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 0x405cdb
cmp eax, 0x80010119
jne 0x405d32
lea ebx, [edi + 4]
push ebx
push 0x632a0c
push 1
push 0
push 0x632adc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x405d39
mov eax, dword [ebx]
mov edx, dword [eax]
push edi
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 0x405d39
mov ecx, dword [edi]
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 0x405d39
mov byte [0x6684bc], 1
lea edx, [esi + 0x10]
push edx
call fcn.0041f440
mov eax, dword [esi + 0x18c]
lea ebx, [esi + 0x178]
push 0x633234
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x24], ebx
call fcn.00410070
test eax, eax
jne 0x405d79
mov ecx, ebx
call fcn.004299f0
push 0xe
push str.Serverlist.ini
mov eax, ebx
call fcn.0040e060
mov edi, 8
cmp dword [ebx + 0x18], edi
jb 0x405d88
mov eax, dword [ebx + 4]
jmp 0x405d8b
lea eax, [ebx + 4]
push 0
push eax
call fcn.005aa4a1
add esp, 8
test eax, eax
je 0x405da1
xor eax, eax
jmp 0x4060df
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x98]
mov eax, ebx
call fcn.0040d030
cmp dword [ebx + 0x18], edi
jb 0x405dbc
mov ecx, dword [ebx + 4]
jmp 0x405dbf
lea ecx, [ebx + 4]
lea edi, [esi + 0x3d8]
push str.SubmitEventDownload
add esi, 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 0x405ff1
mov edx, dword [esp + 0x18]
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]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405e20
sub eax, esi
sar eax, 1
push eax
mov eax, edx
lea esi, [esp + 0x88]
call fcn.0040e180
mov dword [esp + 0xb0], ebx
mov esi, dword [edi + 0xc]
cmp esi, dword [edi + 0x10]
jbe 0x405e52
call fcn.0058ab82
mov ebx, dword [edi]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
lea esp, [esp]
mov esi, dword [edi + 0x10]
cmp dword [edi + 0xc], esi
jbe 0x405e6d
call fcn.0058ab82
mov eax, dword [edi]
test ebx, ebx
je 0x405e77
cmp ebx, eax
je 0x405e7c
call fcn.0058ab82
cmp dword [esp + 0x14], esi
je 0x405fc8
test ebx, ebx
jne 0x405f06
call fcn.0058ab82
mov edx, dword [esp + 0x14]
cmp edx, dword [ebx + 0x10]
jb 0x405e9d
call fcn.0058ab82
mov eax, dword [esp + 0x14]
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.00411020
mov byte [esp + 0xb0], 1
cmp dword [esp + 0x64], 0x10
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x28], 0
jae 0x405ee3
lea ebx, [esp + 0x50]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0042a510
mov ebx, dword [eax + 0x14]
mov esi, 8
add esp, 4
cmp dword [eax + 0x18], esi
jb 0x405f0a
mov eax, dword [eax + 4]
jmp 0x405f0d
mov ebx, dword [ebx]
jmp 0x405e8f
add eax, 4
push eax
lea eax, [esp + 0x88]
call fcn.0040d120
mov ebx, eax
cmp dword [esp + 0x48], esi
jb 0x405f2f
mov edx, dword [esp + 0x34]
push edx
call fcn.0044f960
add esp, 4
cmp ebx, 0xffffffff
je 0x405f7f
mov byte [esp + 0xb0], 0
cmp dword [esp + 0x64], 0x10
jb 0x405f50
mov eax, dword [esp + 0x50]
push eax
call fcn.0044f960
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x405f7b
call fcn.0058ab82
xor eax, eax
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax + 0x10]
jb 0x405f6d
call fcn.0058ab82
add dword [esp + 0x14], 0x1c
mov ebx, dword [esp + 0x10]
jmp 0x405e60
mov eax, dword [eax]
jmp 0x405f5f
cmp dword [esp + 0x64], 0x10
jb 0x405f93
mov edx, dword [esp + 0x50]
push edx
call fcn.0044f960
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 0x405fbe
mov eax, dword [esp + 0x88]
push eax
call fcn.0044f960
add esp, 4
mov eax, 0xb
jmp 0x4060df
mov dword [esp + 0xb0], 0xffffffff
cmp dword [esp + 0x9c], 8
jb 0x405fed
mov ecx, dword [esp + 0x88]
push ecx
call fcn.0044f960
add esp, 4
mov ebx, dword [esp + 0x20]
xor edi, edi
push edi
push 0x632dce
lea ecx, [esp + 0x70]
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], edi
mov byte [esp + 0x74], 0
call fcn.004113e0
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push edx
push eax
push esi
lea edx, [esp + 0x74]
mov dword [esp + 0xbc], 2
call fcn.004040e0
cmp dword [ebx + 0x18], 8
jb 0x40604a
mov ebx, dword [ebx + 4]
jmp 0x40604d
add ebx, 4
push esi
mov edx, str.SubmitEventDownload
mov ecx, ebx
call fcn.00404d80
sub esp, 0x18
mov edx, esp
mov dword [esp + 0x34], esp
lea ecx, [esi + 0x3c0]
push edx
call fcn.0040c2e0
cmp dword [esp + 0x98], 0x10
mov eax, dword [esp + 0x84]
jae 0x406087
lea eax, [esp + 0x84]
push 6
push 6
push eax
mov ecx, esi
call fcn.00404a40
mov esi, dword [esp + 0x24]
mov ebx, eax
mov eax, dword [esi]
cmp eax, edi
je 0x4060a9
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 0x4060bb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 4], edi
cmp dword [esi + 8], edi
jne 0x4060c6
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x80], 0x10
jb 0x4060dd
mov eax, dword [esp + 0x6c]
push eax
call fcn.0044f960
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.0058845d
mov esp, ebp
pop ebp
ret 8