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

Disassembly:
push 0xffffffffffffffff
push 0x427b2d
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x4312c8]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4312c8]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
mov ebp, ecx
xor ebx, ebx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x14]
push eax
push 0x429ba0
push 1
push ebx
push 0x42b8c8
mov byte [esp + 0xc8], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [ebp + 8]
push 0x42b8b8
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40ea70
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x44], ebx
mov ecx, dword [eax]
push 0x429b90
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
mov dword [esp + 0x20], ebx
cmp esi, ebx
mov byte [esp + 0xb4], 2
jl 0x40efba
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x58]
call eax
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x24], ebx
mov eax, dword [ebp]
mov ecx, dword [eax]
lea edx, [esp + 0x48]
push edx
push eax
mov eax, dword [ecx + 0x54]
mov byte [esp + 0xbc], 3
call eax
mov esi, eax
cmp esi, ebx
jge 0x40eafb
mov ecx, dword [esp + 0x24]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ecx
call edi
mov edx, dword [esp + 0x20]
push edx
call edi
jmp 0x40efc1
cmp word [esp + 0x48], 2
jne 0x40ebbc
mov eax, dword [ebp]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [ecx + 0x64]
call eax
mov edi, eax
cmp edi, ebx
jge 0x40eb6a
mov ecx, dword [esp + 0x24]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ecx
call esi
mov edx, dword [esp + 0x20]
push edx
call esi
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov byte [esp + 0xb4], bl
je 0x40eb48
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0xb4], 0xffffffff
je 0x40eb63
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
jmp 0x40eff5
cmp dword [esp + 0x24], ebx
jne 0x40ebbc
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebx
call esi
mov eax, dword [esp + 0x20]
push eax
call esi
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov byte [esp + 0xb4], bl
je 0x40eb97
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0xb4], 0xffffffff
je 0x40ebb2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 0x80004005
jmp 0x40eff5
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jne 0x40ebf0
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push eax
call esi
mov ecx, dword [esp + 0x20]
push ecx
call esi
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov byte [esp + 0xb4], bl
je 0x40eb97
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x40eb97
mov ecx, dword [eax]
lea edx, [esp + 0x58]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
xor edi, edi
cmp dword [esp + 0x58], ebx
mov esi, eax
mov dword [esp + 0x50], edi
jbe 0x40eae2
mov ebp, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [esp + 0x88]
push ecx
call ebp
mov edx, dword [esp + 0x74]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x88]
push edx
push edi
push eax
mov eax, dword [ecx + 0x24]
mov byte [esp + 0xc0], 4
call eax
mov eax, dword [esp + 0x90]
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x3c], ebx
mov ecx, dword [eax]
push 0x42b7a8
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
cmp esi, ebx
jl 0x40ef96
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x54]
mov dword [esp + 0x54], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
cmp dword [esp + 0x54], 1
mov esi, eax
jne 0x40ef8a
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x4c]
mov dword [esp + 0x4c], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x4c]
call eax
mov esi, eax
cmp esi, ebx
jl 0x40ef8a
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x34], ebx
mov ecx, dword [eax]
push 0x42b7e8
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
cmp esi, ebx
jl 0x40ef7e
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x44]
mov dword [esp + 0x44], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
xor edi, edi
cmp dword [esp + 0x44], ebx
mov esi, eax
jbe 0x40ef6e
lea esp, [esp]
lea ecx, [esp + 0x78]
push ecx
call ebp
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
lea ecx, [esp + 0x78]
push ecx
push edi
push eax
mov byte [esp + 0xc0], 5
call edx
mov eax, dword [esp + 0x80]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax]
push 0x42b7d8
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
cmp esi, ebx
jl 0x40ef4e
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [ecx + 0x3c]
mov byte [esp + 0xbc], 6
call eax
lea ecx, [esp + 0x60]
push ecx
mov esi, eax
call ebp
cmp word [esp + 0x48], 2
mov byte [esp + 0xb4], 7
jne 0x40edb7
mov dword [esp + 0x3c], ebx
mov edx, dword [esp + 0x24]
push 1
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0xbc], 8
mov dword [esp + 0x78], edx
call fcn.00407560
lea ecx, [esp + 0x3c]
call fcn.00406be0
push eax
lea ecx, [esp + 0x64]
call fcn.0040cec0
lea ecx, [esp + 0x3c]
mov byte [esp + 0xb4], 7
call fcn.00407050
jmp 0x40edca
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x60]
push edx
push eax
mov eax, dword [ecx + 0x44]
call eax
mov esi, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x40ef1f
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jbe 0x40ef1f
test dword [esp + 0x60], 0x2000
je 0x40ef1b
lea ecx, [esp + 0x60]
call fcn.0040d130
test eax, eax
jbe 0x40ef1b
mov dword [esp + 0x28], ebx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x98]
push ecx
push edx
mov dword [esp + 0x64], 0xffffffff
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov dword [esp + 0x34], ebx
lea eax, [esp + 0x34]
push eax
push 0x429bb0
push 0x17
push ebx
lea ecx, [esp + 0xa8]
push ecx
mov byte [esp + 0xc8], 0xa
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x40eee1
mov edx, dword [esp + 0x20]
cmp edx, ebx
je 0x40eea1
mov ebp, dword [esp + 0x60]
mov ecx, dword [esp + 0x34]
mov esi, dword [ecx]
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x2c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov ebp, dword [esp + 0x7c]
mov dword [eax + 4], ebp
mov ebp, dword [esp + 0x80]
mov dword [eax + 8], ebp
mov ebp, dword [esp + 0x84]
push edx
push ecx
mov ecx, dword [esi + 0x1c]
mov dword [eax + 0xc], ebp
call ecx
mov ebp, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov esi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x5c]
mov edx, dword [eax]
mov edx, dword [edx + 0x68]
push ecx
push eax
call edx
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x40eed6
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x40eed6
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x70]
call eax
lea ecx, [esp + 0x34]
call fcn.0040ce00
jmp 0x40eeee
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x68]
push ebx
push eax
call edx
mov eax, dword [esp + 0x34]
cmp eax, ebx
mov byte [esp + 0xb4], 9
je 0x40ef06
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x28]
push eax
mov byte [esp + 0xb8], 7
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x40ef2c
push 8
jmp 0x40ef20
push ebx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x68]
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea edx, [esp + 0x78]
push edx
mov byte [esp + 0xb8], 4
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
add edi, 1
cmp edi, dword [esp + 0x44]
jb 0x40ecf0
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
add edi, 1
cmp edi, dword [esp + 0x58]
mov dword [esp + 0x50], edi
jb 0x40ec15
jmp 0x40eae2
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov byte [esp + 0xb4], bl
je 0x40efd8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0xb4], 0xffffffff
je 0x40eff3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00418ff5
add esp, 0xa4
ret