Function at 0x4080c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4cfdb2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4e4
push ebx
push ebp
push esi
xor ebx, ebx
push edi
lea eax, [esp + 0xb0]
push eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
call fcn.00408e00
mov dword [esp + 0x4fc], ebx
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [esp + 0x64]
push ecx
mov dword [esp + 0x20], ebx
call esi
lea edx, [esp + 0x74]
push edx
call esi
lea eax, [esp + 0x84]
push eax
call esi
lea ecx, [esp + 0xcc]
push ecx
call esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push str.__CLASS
call esi
mov ebp, eax
push str.WmiDataId
mov dword [esp + 0xac], ebp
call esi
push str.EventType
mov dword [esp + 0x48], eax
call esi
push str.EventTypeName
mov dword [esp + 0x4c], eax
call esi
push str.DisplayName
mov dword [esp + 0x3c], eax
call esi
mov edi, dword [esp + 0x504]
mov edx, dword [edi]
mov ecx, dword [edx + 0x10]
push ebx
push ebx
mov dword [esp + 0x54], eax
lea eax, [esp + 0x6c]
push eax
push ebx
push ebp
push edi
call ecx
cmp eax, ebx
jne 0x40883c
mov edx, dword [esp + 0x6c]
push edx
lea eax, [esp + 0xe0]
push 0x104
push eax
call fcn.0049ee55
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
je 0x4081c5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], ebx
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
lea ecx, [esp + 0x14]
push ecx
push edi
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push ebx
lea edx, [esp + 0xd0]
push edx
mov edx, dword [esp + 0x54]
push ebx
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp eax, ebx
jne 0x408212
mov eax, dword [esp + 0xd4]
cmp eax, ebx
je 0x408212
push eax
lea ecx, [esp + 0xe0]
push 0x104
push ecx
call fcn.0049ee55
add esp, 0xc
push 0x40
call fcn.0049e995
add esp, 4
mov dword [esp + 0x40], eax
mov byte [esp + 0x4fc], 1
cmp eax, ebx
je 0x408247
mov edi, dword [esp + 0x508]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
call fcn.00407630
mov edi, eax
mov dword [esp + 0x28], edi
jmp 0x40824d
mov dword [esp + 0x28], ebx
mov edi, ebx
mov byte [esp + 0x4fc], bl
mov dword [esp + 0x24], edi
cmp edi, ebx
je 0x40883c
lea ebx, [esp + 0xdc]
mov ecx, edi
call fcn.00401060
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax + 4]
lea ebx, [eax + 4]
lea edx, [esp + 0x24]
push edx
push ecx
push eax
mov dword [esp + 0x3c], edi
call fcn.00409490
lea ecx, [esp + 0xb0]
mov edi, eax
call fcn.004094d0
mov dword [ebx], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
mov edx, dword [esp + 0x6c]
push edx
call esi
lea edx, [esp + 0x58]
push edx
xor ebp, ebp
push ebp
mov esi, eax
mov eax, dword [0x4fee1c]
mov ecx, dword [eax]
push 0x20001
push esi
push eax
mov eax, dword [ecx + 0x30]
call eax
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edi, eax
call esi
cmp edi, ebp
jne 0x408842
mov dword [esp + 0x60], 1
nop
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x60]
push edx
lea edx, [esp + 0x1c]
push edx
push 1
mov dword [esp + 0x24], ebp
mov ecx, dword [eax]
push 0x1388
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
je 0x408318
mov eax, dword [esp + 0x504]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
mov dword [esp + 0x1c], eax
call edx
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40832c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x74]
push ecx
call ebx
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push ebp
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x50]
push ebp
push ecx
push eax
call edx
cmp eax, ebp
jne 0x40869b
xor esi, esi
mov edi, 0x2000
mov dword [esp + 0x34], esi
test dword [esp + 0x74], edi
je 0x408596
mov ebp, dword [esp + 0x7c]
lea eax, [esp + 0x84]
push eax
mov dword [esp + 0x44], ebp
call ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push esi
lea edx, [esp + 0x88]
push edx
mov edx, dword [esp + 0x40]
push esi
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x4083c6
test dword [esp + 0x84], edi
je 0x4083c6
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x34], ecx
mov esi, ecx
test ebp, ebp
je 0x4088e4
lea edx, [esp + 0xa4]
push edx
push 1
push ebp
call dword [sym.imp.OLEAUT32.dll_SafeArrayLock]
test eax, eax
jne 0x4088e4
lea eax, [esp + 0x3c]
push eax
push 1
push ebp
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetLBound]
test eax, eax
jne 0x4088e4
cmp dword [esp + 0x3c], eax
jl 0x4088e4
mov edi, dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
lea ecx, [esp + 0x9c]
push ecx
push ebp
call edi
test esi, esi
je 0x408460
lea edx, [esp + 0xac]
push edx
push 1
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayLock]
test eax, eax
jne 0x4088e4
lea eax, [esp + 0x5c]
push eax
push 1
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetLBound]
test eax, eax
jne 0x4088e4
cmp dword [esp + 0x5c], eax
jl 0x4088e4
lea ecx, [esp + 0x98]
push ecx
push esi
call edi
mov eax, dword [esp + 0xa4]
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
jg 0x408558
jmp 0x408480
mov edx, dword [esp + 0x9c]
mov ebp, dword [edx + eax*4]
push 0x40
call fcn.0049e995
add esp, 4
mov dword [esp + 0x24], eax
mov byte [esp + 0x4fc], 2
test eax, eax
je 0x4084c6
mov ecx, dword [esp + 0x510]
mov edx, dword [esp + 0x50c]
mov edi, dword [esp + 0x508]
push ecx
push edx
push ebp
push eax
call fcn.00407630
mov edi, eax
jmp 0x4084c8
xor edi, edi
mov byte [esp + 0x4fc], 0
mov dword [esp + 0x24], edi
test edi, edi
je 0x40853b
lea eax, [esp + 0x24]
lea ebx, [esp + 0xb0]
call fcn.00408ee0
mov ebx, dword [esp + 0x28]
mov eax, ebx
call fcn.00406910
test eax, eax
je 0x408504
mov esi, ebx
mov eax, edi
call fcn.004075e0
mov esi, dword [esp + 0x34]
cmp word [esp + 0x514], bp
jne 0x408512
mov dword [esp + 0x30], edi
test esi, esi
je 0x40853b
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0xac]
jl 0x40853f
cmp eax, dword [esp + 0x5c]
jg 0x40853f
mov edx, dword [esp + 0x98]
mov ebx, dword [edx + eax*4]
lea ecx, [edi + 0x34]
call fcn.00401060
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
jle 0x408480
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ebp, dword [esp + 0x40]
mov edi, dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
push ebp
call edi
push ebp
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov ebp, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [esp + 0x74]
push eax
call ebp
test esi, esi
je 0x408699
push esi
call edi
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
lea ecx, [esp + 0x84]
push ecx
call ebp
jmp 0x408699
push 2
push ebp
lea edx, [esp + 0x7c]
push edx
mov eax, edx
push eax
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
movzx ebp, word [esp + 0x7c]
lea ecx, [esp + 0x84]
push ecx
call ebx
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push 0
lea ecx, [esp + 0x88]
push ecx
mov ecx, dword [esp + 0x40]
push 0
push ecx
push eax
call edx
test eax, eax
jne 0x4085f6
mov eax, dword [esp + 0x8c]
push eax
lea ecx, [esp + 0x2e8]
push 0x104
push ecx
call fcn.0049ee55
add esp, 0xc
jmp 0x408600
xor edx, edx
mov word [esp + 0x2e4], dx
push 0x40
call fcn.0049e995
add esp, 4
mov dword [esp + 0x40], eax
mov byte [esp + 0x4fc], 3
test eax, eax
je 0x40863c
mov ecx, dword [esp + 0x510]
mov edx, dword [esp + 0x50c]
mov edi, dword [esp + 0x508]
push ecx
push edx
push ebp
push eax
call fcn.00407630
mov edi, eax
jmp 0x40863e
xor edi, edi
mov byte [esp + 0x4fc], 0
mov dword [esp + 0x24], edi
test edi, edi
je 0x408699
lea eax, [esp + 0x24]
lea ebx, [esp + 0xb0]
call fcn.00408ee0
mov ebx, dword [esp + 0x28]
mov eax, ebx
call fcn.00406910
test eax, eax
je 0x408676
mov esi, ebx
mov eax, edi
call fcn.004075e0
cmp word [esp + 0x514], bp
jne 0x408684
mov dword [esp + 0x30], edi
lea ecx, [edi + 0x34]
lea ebx, [esp + 0x2e4]
call fcn.00401060
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor ebp, ebp
lea eax, [esp + 0x64]
push eax
call ebx
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x44]
mov ecx, 3
mov word [esp + 0x64], cx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x68]
push ecx
push 3
mov esi, 1
mov dword [esp + 0x78], esi
mov dword [esp + 0x28], ebp
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
push ebx
push eax
call edx
test eax, eax
jne 0x408824
mov edi, edi
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0xa0]
push eax
push 1
push ecx
call dword [sym.imp.OLEAUT32.dll_SafeArrayLock]
cmp eax, ebp
jne 0x408824
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x50]
push edx
push 1
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetLBound]
cmp eax, ebp
jne 0x408824
mov ecx, dword [esp + 0x50]
cmp ecx, ebp
jl 0x408824
mov eax, dword [esp + 0xa0]
cmp eax, ecx
mov dword [esp + 0x20], eax
jg 0x4087ef
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayPutElement]
cmp eax, ebp
jne 0x4087ef
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push ebp
lea edx, [esp + 0x58]
push edx
mov edx, dword [esp + 0x34]
push ebp
push ebp
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp eax, ebp
jne 0x4087ef
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x408784
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x30]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
cmp eax, ebp
jne 0x4087ef
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x14]
push ecx
call fcn.00407c10
test dword [esp + 0x54], 0x2000
mov edi, eax
je 0x4087c3
mov eax, dword [esp + 0x14]
call fcn.00407ba0
jmp 0x4087c8
mov eax, 1
mov edx, dword [esp + 0x2c]
push eax
push edi
push edx
lea eax, [esp + 0xbc]
push eax
call fcn.00407900
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x50]
mov dword [esp + 0x20], eax
jle 0x408736
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x68]
push ecx
push 3
inc esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x78], esi
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
push ebx
push eax
call edx
test eax, eax
je 0x4086e0
lea eax, [esp + 0xb0]
push eax
call fcn.00407a20
cmp dword [esp + 0x60], 1
je 0x4082e0
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x64]
push ecx
call ebx
lea edx, [esp + 0x74]
push edx
call ebx
lea eax, [esp + 0xcc]
push eax
call ebx
mov ecx, dword [esp + 0xa8]
push ecx
call esi
mov edx, dword [esp + 0x44]
push edx
call esi
mov eax, dword [esp + 0x48]
push eax
call esi
mov ecx, dword [esp + 0x38]
push ecx
call esi
mov edx, dword [esp + 0x4c]
push edx
call esi
lea eax, [esp + 0xb0]
push eax
call fcn.00407a20
lea esi, [esp + 0xb0]
mov dword [esp + 0x4fc], 4
call fcn.00409200
mov dword [esp + 0x4fc], 0xffffffff
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.0049e96f
mov ecx, dword [esp + 0x4f8]
mov eax, dword [esp + 0x34]
add esp, 4
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4f0
ret 0x14
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x408848