Function at 0x416710
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 0x416739
mov eax, dword [esp + 0xa8]
mov dword [eax], 0
movzx eax, byte [ebx + 0x28]
test al, 8
je 0x416a60
and eax, 7
cmp al, 3
ja 0x416a60
test al, al
jne 0x416be0
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x416d36
mov eax, dword [0x4d7170]
shl eax, 3
mov dword [esp], eax
call fcn.00417ba0
test eax, eax
mov edi, eax
je 0x416b5e
movzx eax, byte [ebx + 0x28]
movzx edx, byte [esp + 0xa4]
mov dword [esp + 0x44], 0
and edx, 7
and eax, 0xfffffff8
or eax, edx
test byte [ebx + 0x2b], 4
mov byte [ebx + 0x28], al
mov eax, dword [ebx + 4]
mov dword [esp + 0x1c], eax
je 0x416a79
mov eax, dword [0x4d7170]
mov ebp, dword [0x4be2ec]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp]
test eax, eax
je 0x416ec4
lea ecx, [ebx + 0x48]
xor esi, esi
mov edx, 0x100
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], 0
mov esi, edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], edi
jmp 0x416813
add ebp, 4
mov eax, dword [ebp]
test eax, eax
je 0x4169e5
cmp eax, 0x4d7200
je 0x416805
test byte [ebx + 0x2b], 4
jne 0x416826
cmp dword [esp + 0x1c], eax
je 0x416805
movzx eax, byte [eax + 0x1b]
cmp eax, esi
jg 0x416805
and dword [ebx + 0x28], 0xfff9001f
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0x84], 0x4c57a0
mov dword [esp], ebx
call fcn.0041b780
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.0047cb40
test eax, eax
jne 0x416bd0
mov dword [esp], 3
call fcn.00415490
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
mov edi, eax
je 0x416bb9
cmp dword [ebp], 0x4e2900
movzx ecx, byte [eax + 0x1b]
je 0x416bfb
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4168dc
lea eax, [esp + 0x60]
mov byte [esp + 0x28], cl
mov dword [esp], eax
call fcn.00417160
movzx ecx, byte [esp + 0x28]
mov dword [esp + 0x44], 0
movzx eax, byte [ebx + 0x28]
and eax, 7
cmp al, 2
je 0x416b80
cmp edi, dword [0x4be2e4]
je 0x416ea1
mov eax, dword [esp + 0x24]
test eax, eax
je 0x416906
mov edx, dword [esp + 0x20]
mov dword [eax + edx*4], edi
add dword [esp + 0x20], 1
cmp ecx, esi
jl 0x416b70
add dword [esp + 0x2c], 1
mov ecx, esi
mov esi, ecx
mov dword [esp + 0x30], edi
mov eax, dword [ebx + 0xa0]
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x84]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x28]
shr eax, 5
and eax, 0xfffff
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0x64]
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 0x68]
mov dword [esp + 0x58], eax
mov eax, dword [ebx + 0x6c]
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x4c]
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 0x50]
mov dword [esp + 0x68], eax
mov eax, dword [ebx + 0x54]
mov dword [esp + 0x6c], eax
mov eax, dword [ebx + 0x58]
mov dword [esp + 0x70], eax
mov eax, dword [ebx + 0x5c]
mov dword [esp + 0x74], eax
mov eax, dword [ebx + 0x60]
mov dword [esp + 4], 1
mov dword [esp], ebx
mov dword [esp + 0x78], eax
call fcn.00419690
mov ecx, dword [ebx + 0xac]
test eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x7c], ecx
je 0x416bd0
mov eax, dword [esp + 0x34]
mov dword [esp + 8], 0xb8
mov dword [esp + 4], fcn.0041b6a0
mov dword [esp], eax
call fcn.00417130
test eax, eax
je 0x416bd0
add ebp, 4
mov eax, dword [ebp]
mov dword [esp + 0x28], edi
test eax, eax
jne 0x416813
cmp dword [esp + 0x2c], 1
mov edi, dword [esp + 0x24]
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x30]
je 0x416c65
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x416c07
mov eax, dword [esp + 0x38]
cmp dword [0x4be2e4], eax
je 0x416eb3
mov eax, dword [esp + 0x3c]
sub eax, dword [0x4d7170]
test edi, edi
mov dword [esp + 0x20], eax
je 0x416c0b
cmp eax, 1
jle 0x416c0b
lea edx, [eax*4]
mov eax, dword [0x4d7170]
mov dword [esp], edi
mov dword [esp + 8], edx
lea eax, [edi + eax*4]
mov dword [esp + 4], eax
call fcn.004bc590
jmp 0x416c16
mov dword [esp], 5
call fcn.00415490
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.0047cb40
test eax, eax
je 0x416e67
mov eax, dword [esp + 0x1c]
and byte [ebx + 0x28], 0xf8
test edi, edi
mov dword [ebx + 4], eax
je 0x416ab8
mov dword [esp], edi
call sub.msvcrt.dll_free
mov edx, dword [esp + 0x44]
test edx, edx
je 0x416b5e
lea eax, [ebx + 0x48]
mov dword [esp], eax
call fcn.00417160
mov eax, dword [esp + 0x48]
mov dword [ebx + 0xa0], eax
mov eax, dword [esp + 0x50]
mov dword [ebx + 0x84], eax
mov eax, dword [esp + 0x4c]
and eax, 0xfffff
shl eax, 5
mov edx, eax
mov eax, dword [ebx + 0x28]
and eax, 0xfe00001f
or eax, edx
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0x60]
mov dword [ebx + 0x48], eax
mov eax, dword [esp + 0x64]
mov dword [ebx + 0x4c], eax
mov eax, dword [esp + 0x68]
mov dword [ebx + 0x50], eax
mov eax, dword [esp + 0x6c]
mov dword [ebx + 0x54], eax
mov eax, dword [esp + 0x70]
mov dword [ebx + 0x58], eax
mov eax, dword [esp + 0x74]
mov dword [ebx + 0x5c], eax
mov eax, dword [esp + 0x78]
mov dword [ebx + 0x60], eax
mov eax, dword [esp + 0x54]
mov dword [ebx + 0x64], eax
mov eax, dword [esp + 0x58]
mov dword [ebx + 0x68], eax
mov eax, dword [esp + 0x5c]
mov dword [ebx + 0x6c], eax
mov eax, dword [esp + 0x7c]
mov dword [ebx + 0xac], eax
mov eax, dword [esp + 0x44]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00419c80
xor eax, eax
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x2c], 1
jmp 0x41691a
cmp byte [ebx + 0x2b], 0
js 0x416d4c
mov eax, dword [esp + 0x38]
cmp dword [0x4be2e4], eax
je 0x416b9d
mov eax, dword [ebp]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x416baf
mov eax, dword [ebp]
mov edx, dword [esp + 0x3c]
mov dword [ecx + edx*4], eax
add dword [esp + 0x3c], 1
jmp 0x416920
call fcn.004151c0
cmp eax, 3
je 0x416805
mov esi, esi
lea edi, [edi]
mov edi, dword [esp + 0x24]
jmp 0x416aa1
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
movzx ecx, byte [0x4e291b]
jmp 0x4168b7
mov dword [esp + 0x38], esi
cmp dword [esp + 0x20], 1
jle 0x416f4e
mov dword [esp + 0xa0], ebx
mov ebp, dword [0x4be2e0]
mov ebx, dword [esp + 0x24]
mov esi, esi
lea edi, [edi]
add ebp, 4
mov edx, dword [ebp - 4]
test edx, edx
je 0x416f02
mov eax, dword [esp + 0x20]
sub eax, 1
js 0x416c30
mov esi, dword [edi + eax*4]
cmp esi, edx
jne 0x416c42
movzx ecx, byte [edx + 0x1b]
cmp ecx, ebx
jg 0x416c42
mov ebx, dword [esp + 0xa0]
mov dword [esp + 0x2c], 1
mov ebp, dword [esp + 0x44]
test ebp, ebp
je 0x416d12
lea eax, [ebx + 0x48]
mov dword [esp], eax
call fcn.00417160
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [ebx + 0xa0], eax
mov eax, dword [esp + 0x50]
and edx, 0xfffff
shl edx, 5
mov dword [ebx + 0x84], eax
mov eax, dword [ebx + 0x28]
and eax, 0xfe00001f
or eax, edx
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0x60]
mov dword [ebx + 0x48], eax
mov eax, dword [esp + 0x64]
mov dword [ebx + 0x4c], eax
mov eax, dword [esp + 0x68]
mov dword [ebx + 0x50], eax
mov eax, dword [esp + 0x6c]
mov dword [ebx + 0x54], eax
mov eax, dword [esp + 0x70]
mov dword [ebx + 0x58], eax
mov eax, dword [esp + 0x74]
mov dword [ebx + 0x5c], eax
mov eax, dword [esp + 0x78]
mov dword [ebx + 0x60], eax
mov eax, dword [esp + 0x54]
mov dword [ebx + 0x64], eax
mov eax, dword [esp + 0x58]
mov dword [ebx + 0x68], eax
mov eax, dword [esp + 0x5c]
mov dword [ebx + 0x6c], eax
mov eax, dword [esp + 0x7c]
mov dword [ebx + 0xac], eax
mov eax, dword [esp + 0x44]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00419c80
mov dword [esp + 0x44], 0
cmp dword [esp + 0x2c], 1
je 0x416d68
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jne 0x416e06
mov dword [esp], 0xc
call fcn.00415490
jmp 0x416aa1
mov eax, dword [0x4be2e0]
mov eax, dword [eax]
test eax, eax
jne 0x416767
xor edi, edi
jmp 0x416781
mov byte [esp + 0x28], cl
call fcn.004151c0
cmp eax, 4
movzx ecx, byte [esp + 0x28]
jne 0x4168eb
jmp 0x416b8a
cmp esi, dword [esp + 0x28]
mov dword [ebx + 4], esi
je 0x416dd5
and dword [ebx + 0x28], 0xfff9001f
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0x84], 0x4c57a0
mov dword [esp], ebx
call fcn.0041b780
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], ebx
call fcn.0047cb40
test eax, eax
jne 0x416aa1
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 0x416ee9
movzx eax, byte [ebx + 0x28]
and eax, 0x18
cmp al, 0x18
je 0x416eaa
test edi, edi
mov eax, 1
je 0x416a6e
mov dword [esp], edi
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x1c]
jmp 0x416a6e
mov eax, dword [esp + 0x1c]
and byte [ebx + 0x28], 0xf8
mov dword [ebx + 4], eax
mov dword [esp], 0xd
call fcn.00415490
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x416b5e
mov eax, dword [esp + 0xa8]
mov dword [eax], edi
mov eax, dword [esp + 0x2c]
mov dword [edi + eax*4], 0
sub eax, 1
js 0x416b5e
lea esi, [esi]
mov edx, dword [edi + eax*4]
mov edx, dword [edx]
mov dword [edi + eax*4], edx
sub eax, 1
cmp eax, 0xffffffff
jne 0x416e50
xor eax, eax
jmp 0x416b60
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 0x416dd5
cmp dword [esp + 0xa4], 2
jne 0x4167b1
cmp dword [esp + 0x1c], 0x4d7200
jne 0x4167b1
jmp 0x416d25
mov edi, dword [esp + 0x24]
jmp 0x416dd5
or byte [ebx + 0x2b], 0x40
jmp 0x416de4
mov esi, dword [esp + 0x38]
mov dword [esp + 0x2c], 1
jmp 0x416c65
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0x100
mov dword [esp + 0x38], 0
jmp 0x416a08
mov dword [esp + 4], 0x1c5
mov dword [esp], str..._.._.._binutils_2.28_bfd_format.c
call fcn.004153a0
jmp 0x416dd5
test edi, edi
mov ebx, dword [esp + 0xa0]
je 0x416f3f
mov ebp, dword [esp + 0x20]
cmp dword [esp + 0x2c], ebp
je 0x416f3f
mov ecx, dword [esp + 0x24]
xor eax, eax
lea esi, [esi]
mov esi, dword [edi + eax*4]
movzx edx, byte [esi + 0x1b]
cmp edx, ecx
jle 0x416f32
add eax, 1
cmp eax, ebp
jl 0x416f20
mov dword [esp + 0x2c], 1
jmp 0x416c65
mov eax, dword [esp + 0x20]
xor esi, esi
mov dword [esp + 0x2c], eax
jmp 0x416c65
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x2c], eax
jmp 0x416c65