Function at 0x50fc80
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 0x5100a4
mov eax, ecx
lea ecx, [esp + 8]
push dword [eax + 0x18]
mov dword [esp + 4], eax
call fcn.0054aa44
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.0054aa44
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 0x50fdde
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], 0x551c1d
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.00539490
mov esi, dword [esp + 0x1c]
jmp 0x5100a6
lea ebx, [esp + 8]
test al, 0xf
jne 0x50fdff
mov ecx, dword [edx + 0x10]
xor ecx, 0x10
or ecx, dword [edx + 0x14]
jne 0x50fdff
sar eax, 4
mov edi, eax
mov esi, dword [esp + 0x1c]
jmp 0x5100a6
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 0x50fe31
mov ecx, dword [edx + 0x24]
test ecx, ecx
jne 0x50fe3b
jmp 0x50ff21
shr ecx, 1
test ecx, ecx
je 0x50ff21
lea ebx, [ecx + 5]
cmp ebx, 0xfffffff8
jae 0x5100b2
cmp ebx, 0xa
ja 0x50fe68
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 0x50feac
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 0x50fec1
mov eax, dword [edx + 0x28]
jmp 0x50fec4
lea eax, [edx + 0x21]
push ecx
push eax
push ebx
mov edi, ecx
call sub.api_ms_win_crt_private_l1_1_0.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 0x50fef6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
lea ebx, [esp + 8]
jmp 0x50ff00
shr eax, 1
lea ebx, [esp + 8]
lea edx, [esp + 9]
lea ecx, [esp + 0x48]
push eax
push edx
call fcn.0054ab46
test byte [esp + 8], 1
je 0x50ff1e
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], 0x5514e0
mov word [esp + 0x18], 0x302
lea ecx, [esp + 0x20]
push ebx
call fcn.0054a73e
movzx eax, byte [esp + 0x20]
test al, 1
je 0x50ffa6
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
jmp 0x50ffac
shr eax, 1
lea edx, [esp + 0x21]
lea ecx, [esp + 0x48]
push eax
push edx
call fcn.0054ab46
test byte [esp + 0x20], 1
je 0x50ffca
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 0x510079
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], 0x5514e0
mov word [esp + 0x18], 0x302
lea ecx, [esp + 0x20]
push ebx
call fcn.0054a73e
movzx eax, byte [esp + 0x20]
test al, 1
je 0x510052
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
jmp 0x510058
shr eax, 1
lea edx, [esp + 0x21]
lea ecx, [esp + 0x48]
push eax
push edx
call fcn.0054ab46
test byte [esp + 0x20], 1
je 0x510076
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.00539490
test byte [esp + 0x48], 1
je 0x5100a4
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.00407760
int3