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

Disassembly:
push 0xffffffffffffffff
push 0x41a670
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebp
xor ebp, ebp
lea ecx, [esp + 0x70]
push ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x18], ebp
call fcn.00411ff0
test al, al
jne 0x40e551
cmp dword [esp + 0x70], ebp
jne 0x40e295
push 0x80004003
call fcn.00419a1e
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x10]
push eax
call fcn.0040e730
push ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 1
call fcn.00411ff0
test al, al
jne 0x40e548
push ebx
push esi
push edi
mov dword [esp + 0x10], ebp
mov byte [esp + 0x74], 2
cmp dword [esp + 0x1c], ebp
jne 0x40e2d6
push 0x80004003
call fcn.00419a1e
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.0040e780
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x78], 3
call fcn.00412540
cmp eax, ebp
jge 0x40e304
cmp eax, 0x80004002
je 0x40e304
push eax
call fcn.00419a1e
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x74], 2
cmp ecx, ebp
lea ecx, [esp + 0x24]
setne bl
call fcn.00411f80
test bl, bl
je 0x40e53c
cmp dword [esp + 0x10], ebp
jne 0x40e333
push 0x80004003
call fcn.00419a1e
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x28]
push edx
call fcn.0040e7d0
mov ecx, dword [eax]
mov byte [esp + 0x74], 4
cmp ecx, ebp
je 0x40e353
call fcn.0040e6a0
jmp 0x40e355
xor eax, eax
mov ecx, dword [esp + 0x80]
push ecx
push eax
call fcn.00419ce0
add esp, 8
lea ecx, [esp + 0x28]
test eax, eax
sete bl
mov byte [esp + 0x74], 2
call fcn.0040e570
test bl, bl
je 0x40e2c6
cmp dword [esp + 0x10], ebp
jne 0x40e391
push 0x80004003
call fcn.00419a1e
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x4c]
push edx
call fcn.0040e870
mov esi, eax
mov dword [esp + 0x14], ebp
cmp word [esi], 8
mov byte [esp + 0x74], 5
jne 0x40e3bf
mov eax, dword [esi + 8]
lea ecx, [esp + 0x14]
push eax
call fcn.0040e5c0
jmp 0x40e403
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push esi
push 8
lea ecx, [esp + 0x34]
mov byte [esp + 0x7c], 6
call fcn.0040e6d0
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x14]
push edx
call fcn.0040e5c0
lea eax, [esp + 0x2c]
mov byte [esp + 0x74], 5
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebp
jge 0x40e403
push eax
call fcn.00419a1e
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40e41a
mov eax, dword [eax]
cmp eax, ebp
je 0x40e41a
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
jmp 0x40e41c
xor eax, eax
inc eax
push eax
call fcn.0041311d
mov esi, eax
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], esi
call fcn.0040e570
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 2
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebp
jge 0x40e44f
push eax
call fcn.00419a1e
cmp esi, ebp
je 0x40e2c6
cmp dword [esp + 0x10], ebp
jne 0x40e467
push 0x80004003
call fcn.00419a1e
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x5c]
push edx
call fcn.0040e870
mov esi, eax
mov dword [esp + 0x18], ebp
cmp word [esi], 8
mov byte [esp + 0x74], 7
jne 0x40e495
mov eax, dword [esi + 8]
lea ecx, [esp + 0x18]
push eax
call fcn.0040e5c0
jmp 0x40e4d9
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push esi
push 8
lea ecx, [esp + 0x44]
mov byte [esp + 0x7c], 8
call fcn.0040e6d0
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x18]
push edx
call fcn.0040e5c0
lea eax, [esp + 0x3c]
mov byte [esp + 0x74], 7
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebp
jge 0x40e4d9
push eax
call fcn.00419a1e
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x74], 9
cmp ecx, ebp
je 0x40e4ed
call fcn.0040e6a0
jmp 0x40e4ef
xor eax, eax
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.0040e570
lea eax, [esp + 0x5c]
mov byte [esp + 0x74], 2
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebp
jge 0x40e2c6
push eax
call fcn.00419a1e
jmp 0x40e2c6
lea ecx, [esp + 0x10]
call fcn.00411f80
pop edi
pop esi
pop ebx
lea ecx, [esp + 0x10]
call fcn.00411f80
lea ecx, [esp + 0x70]
call fcn.00411f80
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x14]
pop ebp
mov dword fs:[0], ecx
add esp, 0x68
ret 8