Function at 0x503ef0
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 0x504325
mov eax, ecx
lea ecx, [esp + 8]
push dword [eax + 0x18]
mov dword [esp + 4], eax
call fcn.00550e3a
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.00550e3a
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 0x50404e
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], 0xe03
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], 0xe02
lea eax, [esp + 0x48]
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], 0x558815
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], 0xe02
lea eax, [esp + 8]
push eax
call fcn.0053aad0
mov esi, dword [esp + 0x1c]
jmp 0x504327
lea ebx, [esp + 8]
test al, 0xf
jne 0x50406f
mov ecx, dword [edx + 0x10]
xor ecx, 0x10
or ecx, dword [edx + 0x14]
jne 0x50406f
sar eax, 4
mov edi, eax
mov esi, dword [esp + 0x1c]
jmp 0x504327
mov dword [esp + 0x84], esi
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], 0
movzx ecx, byte [edx + 0x20]
mov eax, ecx
and al, 1
mov esi, dword [esp + 0x1c]
je 0x5040a8
mov ecx, dword [edx + 0x24]
test ecx, ecx
jne 0x5040b2
jmp 0x5041a2
shr ecx, 1
test ecx, ecx
je 0x5041a2
lea ebx, [ecx + 5]
cmp ebx, 0xfffffff0
jae 0x504333
cmp ebx, 0xa
ja 0x5040e9
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
add bl, bl
mov dword [esp + 4], ebx
mov byte [esp + 8], bl
xor ebx, ebx
jmp 0x50412d
mov eax, ebx
or eax, 0xf
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 0x504142
mov eax, dword [edx + 0x28]
jmp 0x504145
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 0x504177
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
lea ebx, [esp + 8]
jmp 0x504181
shr eax, 1
lea ebx, [esp + 8]
lea edx, [esp + 9]
lea ecx, [esp + 0x48]
push eax
push edx
call fcn.00550f3c
test byte [esp + 8], 1
je 0x50419f
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 eax, [esp + 0x5c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x78], eax
mov word [esp + 0x80], 0xe02
lea edi, [esp + 0x70]
mov dword [esp + 8], edi
mov dword [esp + 0x10], 0x5580d8
mov word [esp + 0x18], 0x302
lea ecx, [esp + 0x20]
push ebx
call fcn.00550b46
movzx eax, byte [esp + 0x20]
test al, 1
je 0x504227
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
jmp 0x50422d
shr eax, 1
lea edx, [esp + 0x21]
lea ecx, [esp + 0x48]
push eax
push edx
call fcn.00550f3c
test byte [esp + 0x20], 1
je 0x50424b
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 0x5042fa
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
lea eax, [esp + 0x5c]
mov dword [esp + 0x70], eax
lea eax, [edx + 0x10]
mov dword [esp + 0x78], eax
mov dword [esp + 8], edi
mov dword [esp + 0x64], str.__0x
mov word [esp + 0x6c], 0x302
mov word [esp + 0x80], 0xe02
mov dword [esp + 0x10], 0x5580d8
mov word [esp + 0x18], 0x302
lea ecx, [esp + 0x20]
push ebx
call fcn.00550b46
movzx eax, byte [esp + 0x20]
test al, 1
je 0x5042d3
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
jmp 0x5042d9
shr eax, 1
lea edx, [esp + 0x21]
lea ecx, [esp + 0x48]
push eax
push edx
call fcn.00550f3c
test byte [esp + 0x20], 1
je 0x5042f7
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.0053aad0
test byte [esp + 0x48], 1
je 0x504325
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