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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
and esp, 0xfffffff0
sub esp, 0xa0
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x48], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x28], eax
movzx eax, byte [ecx + 8]
mov dword [esp + 0x2c], edx
xor edx, edx
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x44], ecx
mov eax, dword [eax + 0x24]
mov dword [esp + 0x24], eax
call fcn.0040f3f0
mov edi, eax
test eax, eax
je 0x40f8e0
mov eax, dword [edi + 0x74]
test eax, eax
je 0x40f900
mov eax, dword [esi + 8]
xor edx, edx
mov eax, dword [eax + 0x178]
mov eax, dword [eax + 0xd4]
movzx ecx, byte [eax + 3]
mov eax, edx
imul ecx, dword [edi + 0x50]
cmp ecx, dword [edi + 0x30]
sbb eax, dword [edi + 0x34]
jae 0x40f890
mov ebx, dword [esp + 0x44]
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 0x38], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], edx
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], esi
mov dword [esp + 0x3c], edx
call fcn.0043a840
mov dword [esp + 0x58], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x5c], edx
mov edx, dword [ebx + 0x1c]
mov dword [esp + 0x38], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], edx
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], esi
mov dword [esp + 0x3c], edx
call fcn.0043a840
mov dword [esp + 0x70], eax
mov eax, dword [ebx + 0x30]
mov dword [esp + 0x74], edx
mov edx, dword [ebx + 0x34]
mov dword [esp + 0x38], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov eax, dword [ebp + 0x1c]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x3c], edx
mov dword [esp + 4], eax
call fcn.0043a840
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x38], eax
mov dword [esp + 0x88], eax
mov eax, 0xfffffffd
cmp eax, edx
mov eax, 0xffffffff
mov dword [esp + 0x30], edx
sbb eax, ecx
mov dword [esp + 0x34], ecx
jb 0x40f840
mov eax, dword [ebp + 8]
test eax, eax
je 0x40f7b8
mov eax, dword [esp + 0x48]
test byte [eax], 0x10
je 0x40f653
mov eax, dword [ebp + 8]
test byte [eax + 0x6a], 2
jne 0x40f7b8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
cmp eax, 0xffffffff
je 0x40f7f7
test eax, eax
sete dl
cmp dword [esp + 0x40], 3
je 0x40f682
test dl, dl
je 0x40f682
mov edx, dword [ebp + 0x18]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
add dword [edx], ecx
adc dword [edx + 4], ebx
mov edx, dword [esi + 8]
mov edx, dword [edx + 0x178]
mov ebx, dword [edx + 0xd4]
mov dword [esp + 0x28], ebx
movzx ebx, byte [ebx + 0xc]
mov byte [esp + 0x48], bl
cmp bl, 2
je 0x40f8b0
shl eax, 8
xor edx, edx
xor ecx, ecx
xor ebx, ebx
add eax, 3
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x7c], ebx
mov ebx, dword [ebp + 0x1c]
mov eax, dword [eax + 0x40]
mov dword [esp + 0x78], ecx
mov ecx, dword [ebx + 0x38]
mov ebx, dword [ebx + 0x3c]
mov dword [esp + 0x64], edx
add ecx, dword [eax + 0x18]
adc ebx, dword [eax + 0x1c]
mov dword [esp + 0x90], 0
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x94], 0
add eax, ecx
adc edx, ebx
add dword [esp + 0x70], ecx
adc dword [esp + 0x74], ebx
add ecx, dword [esp + 0x38]
mov dword [esp + 0x58], eax
adc ebx, dword [esp + 0x3c]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ebx
xor ebx, ebx
cmp byte [esp + 0x48], 2
mov edx, dword [edi + 0x74]
mov eax, dword [edi + 0x50]
jne 0x40f820
shl eax, 4
mov dword [esp], esi
add eax, edx
mov dword [esp + 8], eax
lea eax, [esp + 0x58]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
call dword [eax + 0x38]
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x50]
test edx, edx
je 0x40f770
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x98]
test edx, edx
je 0x40f808
cmp eax, edx
jb 0x40f808
add eax, 1
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 0x94]
or dword [eax + 8], 1
test ebx, ebx
jne 0x40f7a5
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x178]
mov dword [esp], esi
call dword [eax + 0xc0]
cmp eax, 1
je 0x40f920
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40f8c8
cmp dword [ebp + 0xc], 0x484fc0
je 0x40f7f7
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0x9c]
test ebx, ebx
je 0x40f8c8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 0x94]
mov ecx, dword [eax + 0xa8]
test ecx, ecx
je 0x40f9e3
xor eax, eax
mov edx, 1
jmp 0x40f667
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x98], eax
jmp 0x40f770
lea eax, [edx + eax*8]
mov dword [esp], esi
mov dword [esp + 8], eax
lea eax, [esp + 0x58]
mov dword [esp + 4], eax
call fcn.0041dbc0
jmp 0x40f74d
mov eax, dword [esi + 8]
pxor xmm0, xmm0
mov ebx, 1
movups xmmword [esp + 0x88], xmm0
mov eax, dword [eax + 0x178]
movups xmmword [esp + 0x58], xmm0
movups xmmword [esp + 0x68], xmm0
mov eax, dword [eax + 0xd4]
movups xmmword [esp + 0x78], xmm0
movups xmmword [esp + 0x90], xmm0
mov dword [esp + 0x28], eax
movzx eax, byte [eax + 0xc]
mov byte [esp + 0x48], al
jmp 0x40f721
mov dword [esp + 4], 0xf02
mov dword [esp], str..._.._bfd_elfxx_mips.c
call fcn.00402e90
jmp 0x40f55e
mov edx, eax
mov ecx, 0x12
mov eax, 3
xor ebx, ebx
jmp 0x40f6b2
mov dword [esp], 0x10
call fcn.00402b90
xor eax, eax
jmp 0x40f7aa
mov dword [esp + 4], 0xf00
mov dword [esp], str..._.._bfd_elfxx_mips.c
call fcn.00402e90
mov eax, dword [edi + 0x74]
test eax, eax
jne 0x40f537
nop
mov dword [esp + 4], 0xf01
mov dword [esp], str..._.._bfd_elfxx_mips.c
call fcn.00402e90
jmp 0x40f537
mov eax, dword [esp + 0x24]
mov dword [esp + 4], str..compact_rel
mov dword [esp], eax
call fcn.00405300
mov ebx, eax
test eax, eax
je 0x40f7a5
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x1c]
mov ecx, dword [esi + 8]
mov eax, dword [eax + 0x40]
mov edx, dword [edi + 0x38]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x44], ebx
add edx, dword [eax + 0x18]
mov eax, edx
add eax, dword [edi]
cmp dword [esp + 0x40], 3
mov edi, eax
mov eax, dword [ebp + 0x18]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x50]
mov dword [esp + 0x4c], edx
lea edx, [eax + eax*2]
mov eax, dword [ebx + 0x74]
mov dword [esp + 4], 0
lea ebx, [eax + edx*4 + 0x18]
mov edx, 0x50000000
mov eax, 0x58000000
cmove eax, edx
mov dword [esp + 8], ebx
or eax, 0x80000000
mov dword [esp], eax
call dword [ecx + 0x54]
lea eax, [ebx + 4]
mov ecx, dword [esi + 8]
xor edx, edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x48]
add ebx, 8
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [ecx + 0x54]
mov eax, dword [esi + 8]
mov dword [esp + 8], ebx
mov dword [esp], edi
mov dword [esp + 4], 0
call dword [eax + 0x54]
mov ebx, dword [esp + 0x44]
add dword [ebx + 0x50], 1
jmp 0x40f7a5
mov dword [esp + 8], str.mips_elf_create_dynamic_relocation
mov dword [esp + 4], 0xf4b
mov dword [esp], str..._.._bfd_elfxx_mips.c
call fcn.00402ec0
nop