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

Disassembly:
sub esp, 0x6ec
mov eax, dword [0x4a99c8]
xor eax, esp
mov dword [esp + 0x6e8], eax
mov eax, dword [esp + 0x6f8]
push ebx
mov ebx, dword [esp + 0x70c]
push ebp
mov ebp, dword [esp + 0x6fc]
push esi
mov esi, dword [esp + 0x708]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x70c]
push edi
mov edi, dword [esp + 0x720]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x714]
push 0x68
push 0
push ebx
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
mov byte [esp + 0x104], 0
call fcn.0041db20
mov eax, dword [esp + 0x70c]
add esp, 0xc
cmp dword [eax + 0x174], 0
jne 0x40a7aa
cmp dword [eax + 0x1d8], 0
je 0x40ab15
mov eax, dword [esi + 0x78]
test eax, eax
je 0x40aae8
cmp dword [esi + 0x7c], 0
je 0x40aae8
push eax
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.004082f0
add esp, 0xc
test eax, eax
jle 0x40ab0a
cmp dword [esi + 0x7c], 0
je 0x40ab0a
push eax
push ebp
call fcn.004037b0
add esp, 8
test eax, eax
js 0x40ab15
push 0x28
lea eax, [esp + 0x28]
push eax
push ebp
call fcn.00403770
add esp, 0xc
test eax, eax
js 0x40ab15
push dword [esp + 0x30]
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.004082f0
add esp, 0xc
test eax, eax
js 0x40ab15
push eax
push ebp
call fcn.004037b0
add esp, 8
test eax, eax
js 0x40ab15
push 0x100
lea eax, [esp + 0xfc]
push eax
push ebp
call fcn.00403680
add esp, 0xc
test eax, eax
je 0x40ab15
lea eax, [esp + 0xf8]
push eax
call fcn.00408e80
mov esi, dword [esp + 0x704]
add esp, 4
cmp dword [esi + 0x140], 0
je 0x40a8b2
lea eax, [esp + 0xf8]
push eax
call fcn.004091a0
add esp, 4
test eax, eax
jns 0x40a8b2
push 0x2e
push edi
call fcn.00408650
add esp, 8
cmp dword [esi + 0x78], 0
je 0x40a8b2
lea eax, [esp + 0xf8]
push eax
push str._Unknown_DLL_Name___s_n
call fcn.00414b20
add esp, 8
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x40a8da
push dword [esp + 0x44]
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.004083c0
add esp, 0xc
test eax, eax
js 0x40ab15
mov eax, dword [esp + 0x3c]
mov dword [ebx + 4], 1
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
test eax, eax
je 0x40ab15
mov eax, dword [esp + 0x44]
test eax, eax
je 0x40ab15
push eax
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.004082f0
add esp, 0xc
mov dword [esp + 0x20], eax
test eax, eax
jg 0x40a927
push 0x21
push edi
call fcn.00408650
add esp, 8
cmp dword [esi + 0x17c], 0
je 0x40a93d
lea eax, [esp + 0x4c]
push eax
call fcn.00419300
add esp, 4
mov edi, dword [esp + 0x18]
push str.Exports
push edi
call fcn.0041a180
lea eax, [esp + 0x100]
push eax
push 0x440bbc
push edi
call fcn.0041a220
add esp, 0x14
mov dword [esp + 0x1c], 0
cmp dword [esp + 0x3c], 0
jle 0x40aa9a
mov edi, dword [esp + 0x20]
nop dword [eax]
push edi
push ebp
call fcn.004037b0
add esp, 8
test eax, eax
js 0x40aa96
push ebp
call fcn.00403590
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.004082f0
push eax
push ebp
call fcn.004037b0
add esp, 0x18
test eax, eax
js 0x40aa80
push 0x100
lea eax, [esp + 0x1fc]
push eax
push ebp
call fcn.00403680
add esp, 0xc
test eax, eax
js 0x40aa80
lea eax, [esp + 0x1f8]
push eax
push 0x440bbc
push dword [esp + 0x20]
call fcn.0041a710
inc dword [ebx + 8]
add esp, 0xc
cmp dword [esi + 0x17c], 0
je 0x40aa35
push 1
lea eax, [esp + 0x1fc]
push eax
lea eax, [esp + 0x100]
push eax
lea eax, [esp + 0x304]
push 0x400
push eax
call fcn.00403830
push eax
lea eax, [esp + 0x310]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.00419330
add esp, 0x20
cmp dword [esi + 0x1d8], 0
je 0x40aa80
mov ecx, str.CPlApplet
lea eax, [esp + 0x1f8]
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40aa70
test dl, dl
je 0x40aa6c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40aa70
add eax, 2
add ecx, 2
test dl, dl
jne 0x40aa50
xor eax, eax
jmp 0x40aa75
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40aa80
mov dword [ebx + 0x64], 1
mov eax, dword [esp + 0x1c]
add edi, 4
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x3c]
jl 0x40a980
mov edi, dword [esp + 0x18]
push edi
call fcn.0041a5c0
add esp, 4
cmp dword [esi + 0x17c], 0
je 0x40ab15
cmp dword [ebx + 8], 0
je 0x40ab15
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0xe8]
push eax
call fcn.004191d0
lea esi, [ebx + 0x14]
push esi
lea eax, [esp + 0xf0]
push 0x10
push eax
call fcn.00403940
push esi
push str.ExportHash_:__s
push edi
call fcn.0041a710
add esp, 0x20
jmp 0x40ab15
push dword [esp + 0x10]
call fcn.004038d0
add esp, 4
test eax, eax
je 0x40ab15
cmp dword [esi + 0x88], 0
jne 0x40ab15
cmp dword [esi + 0xe8], 0
jne 0x40ab15
push 0x21
push edi
call fcn.00408650
add esp, 8
mov ecx, dword [esp + 0x6f8]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041c143
add esp, 0x6ec
ret