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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb0
mov esi, dword [ecx]
test esi, esi
je 0x491b84
mov eax, ecx
lea ecx, [esp + 8]
push dword [eax + 0x18]
mov dword [esp + 4], eax
call fcn.0054f8a8
mov dword [esp + 0x1c], esi
sub esi, dword [esp + 8]
mov ebx, esi
sar ebx, 0x1f
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], ebx
lea ecx, [esp + 8]
mov eax, dword [esp]
push dword [eax + 0x18]
call fcn.0054f8a8
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], 0
xor edi, edi
sub ecx, esi
mov edx, 0
sbb edx, ebx
mov eax, dword [esp]
mov eax, dword [eax + 8]
cmp ecx, eax
mov ecx, dword [esp]
sbb edx, dword [ecx + 0xc]
mov edx, dword [esp]
lea esi, [edx + 8]
jae 0x4918be
mov ecx, dword [edx + 0x1c]
mov dword [esp + 0x98], str.unable_to_read_data_at_0x
lea eax, [esp + 0x90]
mov dword [esp + 0xa0], eax
mov word [esp + 0xa8], 0xf03
lea eax, [esp + 0x98]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], str._of_size_0x
mov word [esp + 0x30], 0x302
lea eax, [esp + 0x20]
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], esi
mov word [esp + 0x58], 0xf02
lea eax, [esp + 0x48]
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], 0x556c1d
mov word [esp + 0x44], 0x302
mov eax, dword [edx + 0x2c]
mov edx, dword [edx + 0x30]
lea esi, [esp + 0x34]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edx
mov word [esp + 0x6c], 0x502
lea eax, [esp + 0x5c]
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], str._:_it_goes_past_the_end_of_the_file_of_size_0x
mov word [esp + 0x80], 0x302
lea eax, [esp + 0x70]
mov dword [esp + 8], eax
lea eax, [esp + 0x88]
mov dword [esp + 0x10], eax
mov word [esp + 0x18], 0xf02
lea eax, [esp + 8]
push eax
call fcn.005394d0
mov esi, dword [esp + 0x1c]
jmp 0x491b86
lea ebx, [esp + 8]
test al, 7
jne 0x4918df
mov ecx, dword [edx + 0x10]
xor ecx, 8
or ecx, dword [edx + 0x14]
jne 0x4918df
sar eax, 3
mov edi, eax
mov esi, dword [esp + 0x1c]
jmp 0x491b86
mov dword [esp + 0x84], esi
xorps xmm0, xmm0
movsd qword [esp + 0x48], xmm0
mov dword [esp + 0x50], 0
movzx ecx, byte [edx + 0x20]
mov eax, ecx
and al, 1
mov esi, dword [esp + 0x1c]
je 0x491911
mov ecx, dword [edx + 0x24]
test ecx, ecx
jne 0x49191b
jmp 0x491a01
shr ecx, 1
test ecx, ecx
je 0x491a01
lea ebx, [ecx + 5]
cmp ebx, 0xfffffff8
jae 0x491b92
cmp ebx, 0xa
ja 0x491948
movsd qword [esp + 8], xmm0
mov dword [esp + 0x10], 0
add bl, bl
mov dword [esp + 4], ebx
mov byte [esp + 8], bl
xor ebx, ebx
jmp 0x49198c
mov eax, ebx
or eax, 7
mov dword [esp + 4], eax
inc eax
push eax
mov edi, ecx
call sub.libc.dll_operator_new_unsigned_int_
mov ecx, edi
mov edx, dword [esp + 4]
add esp, 4
mov edi, eax
mov eax, dword [esp + 4]
add eax, 2
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
movzx eax, byte [edx + 0x20]
and al, 1
mov ebx, dword [esp + 4]
mov dword [esp + 4], ebx
mov ebx, edi
test byte [esp + 4], 1
lea edi, [esp + 9]
cmove ebx, edi
test al, al
je 0x4919a1
mov eax, dword [edx + 0x28]
jmp 0x4919a4
lea eax, [edx + 0x21]
push ecx
push eax
push ebx
mov edi, ecx
call sub.msvcrt.dll_memmove
add esp, 0xc
mov dword [ebx + edi], 0x73616820
mov word [ebx + edi + 4], 0x20
movzx eax, byte [esp + 8]
test al, 1
je 0x4919d6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
lea ebx, [esp + 8]
jmp 0x4919e0
shr eax, 1
lea ebx, [esp + 8]
lea edx, [esp + 9]
lea ecx, [esp + 0x48]
push eax
push edx
call fcn.0054f9aa
test byte [esp + 8], 1
je 0x4919fe
push dword [esp + 0x10]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov edx, dword [esp]
mov word [esp + 0x44], 0x503
mov dword [esp + 0x34], str.invalid
mov eax, dword [edx + 0x2c]
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 0x30]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], str.__0x
mov word [esp + 0x6c], 0x302
lea edi, [esp + 0x5c]
mov dword [esp + 0x70], edi
mov eax, dword [esp + 0x84]
mov dword [esp + 0x78], eax
mov word [esp + 0x80], 0xf02
lea eax, [esp + 0x70]
mov dword [esp + 8], eax
mov dword [esp + 0x10], 0x5564e0
mov word [esp + 0x18], 0x302
lea ecx, [esp + 0x20]
push ebx
call fcn.0054f5a2
movzx eax, byte [esp + 0x20]
test al, 1
je 0x491a86
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
jmp 0x491a8c
shr eax, 1
lea edx, [esp + 0x21]
lea ecx, [esp + 0x48]
push eax
push edx
call fcn.0054f9aa
test byte [esp + 0x20], 1
je 0x491aaa
push dword [esp + 0x28]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov edx, dword [esp]
mov eax, dword [edx + 0x38]
test eax, eax
je 0x491b59
mov word [esp + 0x44], 0x503
mov dword [esp + 0x34], str._or
mov ecx, dword [edx + 0x34]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x70], edi
lea eax, [edx + 0x10]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x70]
mov dword [esp + 8], eax
mov dword [esp + 0x64], str.__0x
mov word [esp + 0x6c], 0x302
mov word [esp + 0x80], 0xf02
mov dword [esp + 0x10], 0x5564e0
mov word [esp + 0x18], 0x302
lea ecx, [esp + 0x20]
push ebx
call fcn.0054f5a2
movzx eax, byte [esp + 0x20]
test al, 1
je 0x491b32
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
jmp 0x491b38
shr eax, 1
lea edx, [esp + 0x21]
lea ecx, [esp + 0x48]
push eax
push edx
call fcn.0054f9aa
test byte [esp + 0x20], 1
je 0x491b56
push dword [esp + 0x28]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov edx, dword [esp]
mov ecx, dword [edx + 0x1c]
mov word [esp + 0x18], 0x104
lea eax, [esp + 0x48]
mov dword [esp + 8], eax
push ebx
call fcn.005394d0
test byte [esp + 0x48], 1
je 0x491b84
push dword [esp + 0x50]
call sub.libc.dll_operator_delete_void_
add esp, 4
xor edi, edi
mov eax, esi
mov edx, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 8]
call fcn.00407790
int3