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

Disassembly:
push 0xffffffffffffffff
push 0x443878
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov ecx, dword [esp + 0x6c]
xor ebp, ebp
cmp ecx, ebp
mov dword [esp + 0x64], ebp
jne 0x40a97f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret
lea eax, [esp + 0x10]
push eax
call fcn.00411810
mov eax, dword [esp + 0x10]
mov byte [esp + 0x64], 1
cmp eax, ebp
jne 0x40a9ce
lea ecx, [esp + 0x10]
call fcn.00404020
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x64], 0xffffffff
cmp eax, ebp
je 0x40aa97
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret
mov edx, dword [esp + 0x74]
mov esi, dword [edx + 4]
cmp esi, ebp
jne 0x40a9de
mov esi, 0x448010
mov ebx, 8
push esi
mov word [esp + 0x40], bx
call fcn.004303d9
cmp eax, ebp
mov dword [esp + 0x44], eax
jne 0x40aa04
cmp esi, ebp
je 0x40aa04
push 0x8007000e
call fcn.0043032c
mov eax, dword [esp + 0x10]
mov byte [esp + 0x64], 2
cmp eax, ebp
jne 0x40aa1b
push 0x80004003
call fcn.0043032c
lea eax, [esp + 0x3c]
push 0x45b7f8
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.004113d0
mov eax, dword [eax]
mov byte [esp + 0x64], 3
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x40aa48
mov edx, dword [eax]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x28]
mov byte [esp + 0x64], 5
call fcn.00404020
mov eax, dword [esp + 0x18]
cmp eax, ebp
jne 0x40aaac
lea eax, [esp + 0x3c]
mov byte [esp + 0x64], 1
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebp
jge 0x40aa78
push eax
call fcn.0043032c
lea ecx, [esp + 0x10]
call fcn.00404020
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x64], 0xffffffff
cmp eax, ebp
je 0x40aa97
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebp
mov edx, dword [eax]
push ecx
push 0x456660
push eax
call dword [edx]
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x64], 6
cmp ecx, ebp
je 0x40ae59
xor edi, edi
mov word [esp + 0x4c], 2
mov word [esp + 0x54], bp
lea edx, [esp + 0x4c]
push 0x45b7f8
lea eax, [esp + 0x30]
push edx
push eax
mov byte [esp + 0x70], 7
call fcn.004113d0
mov eax, dword [eax]
mov byte [esp + 0x64], bl
cmp eax, ebp
mov dword [esp + 0x74], ebp
je 0x40ab14
mov ecx, dword [eax]
lea edx, [esp + 0x74]
push edx
push 0x456540
push eax
call dword [ecx]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 0xa
call fcn.00404020
mov ecx, dword [esp + 0x74]
cmp ecx, ebp
je 0x40ac83
lea eax, [esp + 0x30]
push eax
call fcn.0040f330
mov ecx, dword [eax]
mov byte [esp + 0x64], 0xb
cmp ecx, ebp
je 0x40ab4a
call fcn.004085b0
jmp 0x40ab4c
xor eax, eax
push eax
lea ecx, [esp + 0x24]
call fcn.004394f8
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], 0xc
push ecx
call fcn.0040af40
add esp, 4
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0x64], 0xb
call fcn.004394ce
lea ecx, [esp + 0x30]
mov byte [esp + 0x64], 0xa
call fcn.00402480
mov ebx, dword [esp + 0x70]
cmp ebx, esi
je 0x40ad0e
cmp esi, 6
jne 0x40ac31
mov eax, dword [esp + 0x74]
xor ecx, ecx
cmp eax, ebp
mov dword [esp + 0x1c], ecx
je 0x40abbc
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push 0x4565d0
push eax
call dword [edx]
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
mov byte [esp + 0x64], 0xd
je 0x40ac23
lea edx, [esp + 0x34]
push edx
call fcn.00411590
mov ecx, dword [eax]
mov byte [esp + 0x64], 0xe
cmp ecx, ebp
je 0x40abe1
call fcn.004085b0
jmp 0x40abe3
xor eax, eax
push eax
lea ecx, [esp + 0x28]
call fcn.004394f8
lea eax, [esp + 0x24]
mov byte [esp + 0x64], 0xf
push eax
call fcn.0040af40
add esp, 4
cmp ebx, eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x64], 0xe
sete bl
call fcn.004394ce
lea ecx, [esp + 0x34]
call fcn.00402480
test bl, bl
jne 0x40ada2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 0xa
call fcn.00404020
mov esi, dword [esp + 0x14]
inc edi
push 0x45b7f8
push edi
lea ecx, [esp + 0x54]
call fcn.0040aee0
lea ecx, [esp + 0x3c]
push eax
push ecx
mov ecx, esi
call fcn.004113d0
mov eax, dword [eax]
push 0x456540
lea edx, [esp + 0x78]
push eax
push edx
mov byte [esp + 0x70], 0x10
call fcn.00408760
lea ecx, [esp + 0x38]
mov byte [esp + 0x64], 0xa
call fcn.00404020
mov ecx, dword [esp + 0x74]
cmp ecx, ebp
jne 0x40ab2e
lea ecx, [esp + 0x74]
mov byte [esp + 0x64], 7
call fcn.00404020
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x4c]
push ecx
mov byte [esp + 0x68], 6
call esi
cmp eax, ebp
jge 0x40acad
push eax
call fcn.0043032c
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], 5
call fcn.00404020
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 2
call fcn.00404020
lea edx, [esp + 0x3c]
mov byte [esp + 0x64], 1
push edx
call esi
cmp eax, ebp
jge 0x40acdf
push eax
call fcn.0043032c
lea ecx, [esp + 0x10]
call fcn.00404020
lea ecx, [esp + 0x6c]
mov dword [esp + 0x64], 0xffffffff
call fcn.00404020
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret
mov edi, dword [esp + 0x74]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x4c]
mov dword [esp + 0x74], ebp
push eax
mov byte [esp + 0x68], 6
call esi
cmp eax, ebp
jge 0x40ad32
push eax
call fcn.0043032c
mov eax, dword [esp + 0x14]
mov byte [esp + 0x64], 5
cmp eax, ebp
je 0x40ad45
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x64], 2
cmp eax, ebp
je 0x40ad58
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea eax, [esp + 0x3c]
mov byte [esp + 0x64], 1
push eax
call esi
cmp eax, ebp
jge 0x40ad6e
push eax
call fcn.0043032c
lea ecx, [esp + 0x10]
call fcn.00404020
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x64], 0xffffffff
cmp eax, ebp
je 0x40ad8d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x74]
xor eax, eax
cmp ecx, ebp
mov dword [esp + 0x74], eax
mov byte [esp + 0x64], 0xa
je 0x40adc3
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, dword [esp + 0x74]
cmp eax, ebp
mov byte [esp + 0x64], 7
je 0x40add2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [esp + 0x4c]
push edx
mov byte [esp + 0x68], 6
call esi
cmp eax, ebp
jge 0x40adee
push eax
call fcn.0043032c
mov eax, dword [esp + 0x14]
mov byte [esp + 0x64], 5
cmp eax, ebp
je 0x40ae01
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x64], 2
cmp eax, ebp
je 0x40ae14
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea eax, [esp + 0x3c]
mov byte [esp + 0x64], 1
push eax
call esi
cmp eax, ebp
jge 0x40ae2a
push eax
call fcn.0043032c
lea ecx, [esp + 0x10]
call fcn.00404020
lea ecx, [esp + 0x6c]
mov dword [esp + 0x64], 0xffffffff
call fcn.00404020
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x70]
push eax
call fcn.00411b00
mov esi, dword [esp + 0x70]
lea ecx, [esp + 0x70]
mov dword [esp + 0x70], ebp
call fcn.00404020
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], 5
call fcn.00404020
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 2
call fcn.00404020
lea ecx, [esp + 0x3c]
mov byte [esp + 0x64], 1
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebp
jge 0x40aeae
push eax
call fcn.0043032c
lea ecx, [esp + 0x10]
call fcn.00404020
lea ecx, [esp + 0x6c]
mov dword [esp + 0x64], 0xffffffff
call fcn.00404020
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret