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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov eax, dword [esp + 0xa8]
mov ebx, dword [esp + 0xa0]
test eax, eax
je 0x404e79
mov eax, dword [esp + 0xa8]
mov dword [eax], 0
movzx eax, byte [ebx + 0x28]
test al, 8
je 0x405190
and eax, 7
cmp al, 3
ja 0x405190
test al, al
jne 0x405300
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x405450
mov eax, dword [0x47da90]
shl eax, 3
mov dword [esp], eax
call fcn.004062e0
test eax, eax
mov ebp, eax
je 0x405283
movzx edx, byte [ebx + 0x28]
movzx eax, byte [esp + 0xa4]
mov dword [esp + 0x48], 0
and eax, 7
and edx, 0xfffffff8
or eax, edx
test byte [ebx + 0x2b], 1
mov byte [ebx + 0x28], al
mov eax, dword [ebx + 4]
mov dword [esp + 0x1c], eax
je 0x4051a9
mov eax, dword [0x47da90]
mov edi, dword [0x47b40c]
mov dword [esp + 0x3c], eax
mov eax, dword [edi]
test eax, eax
je 0x405608
lea edx, [ebx + 0x48]
xor esi, esi
mov ecx, 0x100
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], esi
mov ebp, edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], 0
mov esi, ecx
mov dword [esp + 0x38], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x34], edx
jmp 0x404f5e
add ebp, 4
mov eax, dword [ebp]
test eax, eax
je 0x405110
cmp eax, 0x47db40
je 0x404f50
cmp dword [esp + 0x1c], eax
jne 0x404f71
test byte [ebx + 0x2b], 1
je 0x404f50
movzx eax, byte [eax + 0x1b]
cmp eax, esi
jg 0x404f50
and dword [ebx + 0x28], 0xfff9001f
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0x84], 0x47cba0
mov dword [esp], ebx
call fcn.00408770
mov eax, dword [ebp]
mov dword [ebx + 4], eax
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], ebx
call fcn.00404bd0
test eax, eax
jne 0x4052f0
mov dword [esp], 3
call fcn.00403400
movzx eax, byte [ebx + 0x28]
mov ecx, dword [ebx + 4]
mov dword [esp], ebx
and eax, 7
call dword [ecx + eax*4 + 0x64]
test eax, eax
mov edi, eax
je 0x4052d9
mov eax, dword [esp + 0x48]
test eax, eax
je 0x40500d
lea eax, [esp + 0x64]
mov dword [esp], eax
call fcn.00405840
mov dword [esp + 0x48], 0
movzx eax, byte [ebx + 0x28]
and eax, 7
cmp al, 2
je 0x4052a0
cmp edi, dword [0x47b404]
je 0x4055e5
mov eax, dword [esp + 0x24]
test eax, eax
je 0x405037
mov edx, dword [esp + 0x20]
mov dword [eax + edx*4], edi
movzx eax, byte [edi + 0x1b]
add dword [esp + 0x20], 1
cmp eax, esi
jl 0x405290
add dword [esp + 0x28], 1
mov eax, esi
mov esi, eax
mov dword [esp + 0x2c], edi
mov eax, dword [ebx + 0xa0]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0x84]
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 0x28]
shr eax, 5
and eax, 0x3ffff
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x64]
mov dword [esp + 0x58], eax
mov eax, dword [ebx + 0x68]
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x6c]
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 0x4c]
mov dword [esp + 0x68], eax
mov eax, dword [ebx + 0x50]
mov dword [esp + 0x6c], eax
mov eax, dword [ebx + 0x54]
mov dword [esp + 0x70], eax
mov eax, dword [ebx + 0x58]
mov dword [esp + 0x74], eax
mov eax, dword [ebx + 0x5c]
mov dword [esp + 0x78], eax
mov eax, dword [ebx + 0x60]
mov dword [esp + 4], 1
mov dword [esp], ebx
mov dword [esp + 0x7c], eax
call fcn.00407f50
test eax, eax
mov dword [esp + 0x48], eax
je 0x4052f0
mov eax, dword [esp + 0x34]
mov dword [esp + 8], 0xb8
mov dword [esp + 4], fcn.00408690
mov dword [esp], eax
call fcn.00405810
test eax, eax
je 0x4052f0
add ebp, 4
mov eax, dword [ebp]
mov dword [esp + 0x30], edi
test eax, eax
jne 0x404f5e
cmp dword [esp + 0x28], 1
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x2c]
je 0x4054a3
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40531b
mov eax, dword [esp + 0x38]
cmp dword [0x47b404], eax
je 0x4055f7
mov eax, dword [esp + 0x3c]
sub eax, dword [0x47da90]
cmp eax, 1
mov dword [esp + 0x20], eax
jle 0x40531f
test ebp, ebp
je 0x40531f
lea edx, [eax*4]
mov eax, dword [0x47da90]
mov dword [esp], ebp
mov dword [esp + 8], edx
lea eax, [ebp + eax*4]
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
jmp 0x40532a
mov dword [esp], 5
call fcn.00403400
xor eax, eax
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], ebx
call fcn.00404bd0
test eax, eax
je 0x4055ab
mov eax, dword [esp + 0x1c]
and byte [ebx + 0x28], 0xf8
test ebp, ebp
mov dword [ebx + 4], eax
je 0x4051e8
mov dword [esp], ebp
call sub.msvcrt.dll_free
mov edx, dword [esp + 0x48]
test edx, edx
je 0x405283
lea eax, [ebx + 0x48]
mov dword [esp], eax
call fcn.00405840
mov eax, dword [esp + 0x4c]
mov edx, dword [ebx + 0x28]
mov dword [ebx + 0xa0], eax
mov eax, dword [esp + 0x54]
and edx, 0xff80001f
mov dword [ebx + 0x84], eax
mov eax, dword [esp + 0x50]
and eax, 0x3ffff
shl eax, 5
or eax, edx
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0x64]
mov dword [ebx + 0x48], eax
mov eax, dword [esp + 0x68]
mov dword [ebx + 0x4c], eax
mov eax, dword [esp + 0x6c]
mov dword [ebx + 0x50], eax
mov eax, dword [esp + 0x70]
mov dword [ebx + 0x54], eax
mov eax, dword [esp + 0x74]
mov dword [ebx + 0x58], eax
mov eax, dword [esp + 0x78]
mov dword [ebx + 0x5c], eax
mov eax, dword [esp + 0x7c]
mov dword [ebx + 0x60], eax
mov eax, dword [esp + 0x58]
mov dword [ebx + 0x64], eax
mov eax, dword [esp + 0x5c]
mov dword [ebx + 0x68], eax
mov eax, dword [esp + 0x60]
mov dword [ebx + 0x6c], eax
mov eax, dword [esp + 0x48]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00408180
xor eax, eax
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x28], 1
jmp 0x40504f
test byte [ebx + 0x2b], 0x20
jne 0x40543d
mov eax, dword [esp + 0x38]
cmp dword [0x47b404], eax
je 0x4052bd
mov eax, dword [ebp]
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x24]
test edx, edx
je 0x4052cf
mov eax, dword [ebp]
mov ecx, dword [esp + 0x3c]
mov dword [edx + ecx*4], eax
add dword [esp + 0x3c], 1
jmp 0x405055
call fcn.004031b0
cmp eax, 3
je 0x404f50
mov esi, esi
lea edi, [edi]
mov ebp, dword [esp + 0x24]
jmp 0x4051d1
movzx eax, al
cmp eax, dword [esp + 0xa4]
sete al
add esp, 0x8c
pop ebx
movzx eax, al
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x38], esi
cmp dword [esp + 0x20], 1
jle 0x405646
mov dword [esp + 0xa0], ebx
mov ecx, dword [0x47b400]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
nop
add ecx, 4
mov esi, dword [ecx - 4]
test esi, esi
je 0x405466
mov eax, edi
sub eax, 1
js 0x405340
cmp dword [ebp + eax*4], esi
jne 0x405350
movzx edx, byte [esi + 0x1b]
cmp edx, ebx
jg 0x405350
mov ebx, dword [esp + 0xa0]
mov dword [esp + 0x20], 1
mov edi, dword [esp + 0x48]
test edi, edi
je 0x405415
lea eax, [ebx + 0x48]
mov dword [esp], eax
call fcn.00405840
mov eax, dword [esp + 0x4c]
mov edx, dword [ebx + 0x28]
mov dword [ebx + 0xa0], eax
mov eax, dword [esp + 0x54]
and edx, 0xff80001f
mov dword [ebx + 0x84], eax
mov eax, dword [esp + 0x50]
and eax, 0x3ffff
shl eax, 5
or eax, edx
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0x64]
mov dword [ebx + 0x48], eax
mov eax, dword [esp + 0x68]
mov dword [ebx + 0x4c], eax
mov eax, dword [esp + 0x6c]
mov dword [ebx + 0x50], eax
mov eax, dword [esp + 0x70]
mov dword [ebx + 0x54], eax
mov eax, dword [esp + 0x74]
mov dword [ebx + 0x58], eax
mov eax, dword [esp + 0x78]
mov dword [ebx + 0x5c], eax
mov eax, dword [esp + 0x7c]
mov dword [ebx + 0x60], eax
mov eax, dword [esp + 0x58]
mov dword [ebx + 0x64], eax
mov eax, dword [esp + 0x5c]
mov dword [ebx + 0x68], eax
mov eax, dword [esp + 0x60]
mov dword [ebx + 0x6c], eax
mov eax, dword [esp + 0x48]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00408180
mov dword [esp + 0x48], 0
cmp dword [esp + 0x20], 1
je 0x4054b0
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x40554e
mov dword [esp], 0xc
call fcn.00403400
jmp 0x4051d1
call fcn.004031b0
cmp eax, 4
jne 0x40501c
jmp 0x4052aa
mov eax, dword [0x47b400]
mov eax, dword [eax]
test eax, eax
jne 0x404ea7
xor ebp, ebp
jmp 0x404ec1
mov edi, dword [esp + 0x20]
cmp dword [esp + 0x28], edi
mov ebx, dword [esp + 0xa0]
je 0x405372
test ebp, ebp
je 0x405372
mov ecx, dword [esp + 0x24]
xor eax, eax
lea esi, [esi]
mov esi, dword [ebp + eax*4]
movzx edx, byte [esi + 0x1b]
cmp edx, ecx
jle 0x4054a3
add eax, 1
cmp eax, edi
jl 0x405490
mov dword [esp + 0x20], 1
jmp 0x405372
cmp esi, dword [esp + 0x30]
mov dword [ebx + 4], esi
je 0x40551d
and dword [ebx + 0x28], 0xfff9001f
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0x84], 0x47cba0
mov dword [esp], ebx
call fcn.00408770
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], ebx
call fcn.00404bd0
test eax, eax
jne 0x4051d1
movzx eax, byte [ebx + 0x28]
mov edx, dword [ebx + 4]
mov dword [esp], ebx
and eax, 7
call dword [edx + eax*4 + 0x64]
test eax, eax
je 0x40562d
movzx eax, byte [ebx + 0x28]
and eax, 0x18
cmp al, 0x18
je 0x4055ee
test ebp, ebp
mov eax, 1
je 0x40519e
mov dword [esp], ebp
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x1c]
jmp 0x40519e
mov eax, dword [esp + 0x1c]
and byte [ebx + 0x28], 0xf8
mov dword [ebx + 4], eax
mov dword [esp], 0xd
call fcn.00403400
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x405283
mov eax, dword [esp + 0xa8]
mov dword [eax], ebp
mov eax, dword [esp + 0x20]
mov dword [ebp + eax*4], 0
sub eax, 1
js 0x405283
mov edx, dword [ebp + eax*4]
mov edx, dword [edx]
mov dword [ebp + eax*4], edx
sub eax, 1
cmp eax, 0xffffffff
jne 0x405592
xor eax, eax
jmp 0x405285
movzx eax, byte [ebx + 0x28]
mov edx, dword [ebx + 4]
mov dword [esp], ebx
and eax, 7
call dword [edx + eax*4 + 0x64]
test eax, eax
jne 0x40551d
cmp dword [esp + 0xa4], 2
jne 0x404ef1
cmp dword [esp + 0x1c], 0x47db40
jne 0x404ef1
jmp 0x40542c
mov ebp, dword [esp + 0x24]
jmp 0x40551d
or byte [ebx + 0x2b], 0x10
jmp 0x40552c
mov esi, dword [esp + 0x38]
mov dword [esp + 0x20], 1
jmp 0x405372
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0x100
jmp 0x405133
mov dword [esp + 4], 0x1b5
mov dword [esp], str..._.._binutils_bfd_format.c
call fcn.00403350
jmp 0x40551d
mov esi, dword [esp + 0x38]
jmp 0x405372