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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x4881e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x40], edi
mov edx, dword [edi]
cmp dword [edx + 0x14], esi
jle 0x401e44
mov eax, dword [edx + 0x18]
push dword [ebp - 0x4c]
mov ecx, dword [eax + esi*4]
mov eax, dword [edx + 0x10]
mov eax, dword [eax + ecx*4]
lea ecx, [edi + 0x90]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
push 0
lea eax, [ebp - 0x50]
push eax
call fcn.0040186c
mov edx, dword [edi]
inc esi
cmp esi, dword [edx + 0x14]
jl 0x401e15
mov eax, dword [edi]
cmp dword [eax + 0x1c], 0
jle 0x401e70
push str.Weak_imports_are_not_supported.
lea ecx, [ebp - 0x1c]
call fcn.00401b64
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00401dd3
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00403d30
mov eax, dword [edi]
xor esi, esi
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
cmp dword [eax + 0xc], esi
jle 0x401f68
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x10]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
call fcn.0044d5be
lea eax, [ebp - 0x38]
push eax
lea ecx, [edi + 0x90]
call fcn.00404142
test eax, eax
jne 0x401ec9
push dword [ebp - 0x4c]
lea eax, [ebp - 0x38]
push eax
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [edi + 0x98]
call fcn.0040186c
mov eax, dword [edi]
inc esi
cmp esi, dword [eax + 0xc]
jl 0x401e89
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
cmp ebx, esi
je 0x401f68
lea ecx, [edi + 0x24]
add esi, 0xfffffffc
push ecx
mov dword [ebp - 0xc], esi
mov eax, dword [esi]
mov dword [ebp - 0x38], eax
mov ecx, dword [eax + 4]
call fcn.00404093
test eax, eax
je 0x401f1e
push str.Imported_proto_must_be_in_the_same_package.
lea ecx, [ebp - 0x34]
call fcn.00401b64
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.00401dd3
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00403d30
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov dword [ebp - 0x48], ecx
cmp dword [eax + 0x14], ecx
jle 0x401f5d
mov edi, eax
mov eax, dword [edi + 0x18]
mov ecx, dword [eax + ecx*4]
mov eax, dword [edi + 0x10]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
call fcn.0044d5be
mov ecx, dword [ebp - 0x48]
inc ecx
mov dword [ebp - 0x48], ecx
cmp ecx, dword [edi + 0x14]
jl 0x401f2d
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x40]
lea ecx, [edi + 0x24]
cmp ebx, esi
jne 0x401ee2
mov esi, dword [edi + 0x78]
xor ecx, ecx
mov ebx, dword [edi + 0x7c]
xor eax, eax
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, dword [edi + 0x7c]
cmova ebx, ecx
mov dword [ebp - 0x4c], ebx
test ebx, ebx
jmp 0x402055
mov ecx, dword [esi]
and dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], ecx
cmp dword [ecx + 0x18], 0
jle 0x40204f
mov ebx, dword [ebp - 0x40]
xor ecx, ecx
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x38], ecx
mov eax, dword [esi + 0x1c]
add eax, ecx
cmp dword [eax + 0x20], 0xb
jne 0x401ff2
mov eax, dword [eax + 0x3c]
lea ecx, [edi + 0x90]
mov dword [ebp - 0x40], eax
mov eax, dword [eax + 8]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00404142
test eax, eax
jne 0x402035
push dword [ebp - 0x4c]
mov eax, dword [ebp - 0x40]
lea ecx, [edi + 0xa0]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push 0
lea eax, [ebp - 0x58]
push eax
call fcn.0040186c
jmp 0x402035
cmp dword [eax + 0x20], 0xe
jne 0x402035
mov eax, dword [eax + 0x40]
lea ecx, [edi + 0x90]
mov dword [ebp - 0x40], eax
mov eax, dword [eax + 8]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00404142
test eax, eax
jne 0x402035
push dword [ebp - 0x4c]
mov eax, dword [ebp - 0x40]
lea ecx, [edi + 0xa8]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push 0
lea eax, [ebp - 0x60]
push eax
call fcn.0040186c
add dword [ebp - 0x38], 0x58
inc ebx
mov ecx, dword [ebp - 0x38]
cmp ebx, dword [esi + 0x18]
jl 0x401fa8
mov esi, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x44]
add esi, 4
inc eax
cmp eax, ebx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], esi
jne 0x401f8a
lea ecx, [ebp - 0x10]
call fcn.00418bff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044f81b
mov esp, ebp
pop ebp
ret