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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb8
mov esi, dword [ecx]
test esi, esi
je 0x50c0ea
mov eax, ecx
lea ecx, [esp + 8]
push dword [eax + 0x18]
mov dword [esp + 8], eax
call fcn.0054f8a8
mov dword [esp + 0x20], esi
sub esi, dword [esp + 8]
mov ebx, esi
sar ebx, 0x1f
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], ebx
lea ecx, [esp + 8]
mov eax, dword [esp + 4]
push dword [eax + 0x18]
call fcn.0054f8a8
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], 0
sub eax, esi
mov ecx, 0
sbb ecx, ebx
mov esi, dword [edx + 8]
mov edi, esi
cmp eax, esi
mov esi, dword [edx + 0xc]
sbb ecx, esi
lea ebx, [edx + 8]
jae 0x50c0f6
mov ecx, dword [edx + 0x1c]
mov dword [esp + 0xa0], str.unable_to_read_data_at_0x
lea eax, [esp + 0x98]
mov dword [esp + 0xa8], eax
mov word [esp + 0xb0], 0xf03
lea eax, [esp + 0xa0]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], str._of_size_0x
mov word [esp + 0x38], 0x302
lea eax, [esp + 0x28]
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], ebx
mov word [esp + 0x60], 0xf02
lea eax, [esp + 0x50]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], 0x556c1d
mov word [esp + 0x4c], 0x302
mov eax, dword [edx + 0x2c]
mov edx, dword [edx + 0x30]
lea esi, [esp + 0x3c]
mov dword [esp + 0x64], esi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], edx
mov word [esp + 0x74], 0x502
lea eax, [esp + 0x64]
mov dword [esp + 0x78], eax
mov dword [esp + 0x80], str._:_it_goes_past_the_end_of_the_file_of_size_0x
mov word [esp + 0x88], 0x302
lea eax, [esp + 0x78]
mov dword [esp + 8], eax
lea eax, [esp + 0x90]
mov dword [esp + 0x10], eax
mov word [esp + 0x18], 0xf02
lea eax, [esp + 8]
push eax
call fcn.005394d0
mov esi, dword [esp + 0x20]
xor edx, edx
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x8c], ebx
mov ecx, esi
mov dword [esp + 0x24], edi
shld ecx, edi, 0x1d
mov ebx, esi
shr ebx, 3
mov edi, ecx
add edi, ebx
adc edi, 0
mov eax, edi
mov edx, 0xaaaaaaab
mul edx
shr edx, 1
lea eax, [edx + edx*2]
sub edi, eax
sub ecx, edi
sbb ebx, 0
mov eax, ecx
mov edx, 0xaaaaaaab
mul edx
imul edi, ecx, 0xaaaaaaaa
add edi, edx
imul ecx, ebx, 0xaaaaaaab
add ecx, edi
mov edx, 0x18
mov edi, eax
mul edx
lea ecx, [ecx + ecx*2]
lea ecx, [edx + ecx*8]
mov edx, dword [esp + 4]
mov ebx, dword [esp + 0x24]
sub ebx, eax
sbb esi, ecx
or esi, ebx
jne 0x50c176
mov eax, dword [edx + 0x10]
xor eax, 0x18
or eax, dword [edx + 0x14]
jne 0x50c176
mov esi, dword [esp + 0x20]
mov edx, edi
jmp 0x50c0ec
xorps xmm0, xmm0
movsd qword [esp + 0x50], xmm0
mov dword [esp + 0x58], 0
movzx ecx, byte [edx + 0x20]
mov eax, ecx
and al, 1
mov esi, dword [esp + 0x20]
je 0x50c1a5
mov ecx, dword [edx + 0x24]
lea ebx, [esp + 8]
test ecx, ecx
jne 0x50c1b3
jmp 0x50c286
shr ecx, 1
lea ebx, [esp + 8]
test ecx, ecx
je 0x50c286
lea ebx, [ecx + 5]
cmp ebx, 0xfffffff8
jae 0x50c41a
cmp ebx, 0xa
ja 0x50c1dc
movsd qword [esp + 8], xmm0
mov dword [esp + 0x10], 0
add bl, bl
mov byte [esp + 8], bl
xor edi, edi
jmp 0x50c216
mov eax, ebx
or eax, 7
mov dword [esp + 0x24], eax
inc eax
push eax
mov esi, ecx
call sub.libc.dll_operator_new_unsigned_int_
mov ecx, esi
mov edx, dword [esp + 8]
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x24]
add eax, 2
mov dword [esp + 8], eax
mov esi, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
movzx eax, byte [edx + 0x20]
and al, 1
mov ebx, esi
test bl, 1
lea esi, [esp + 9]
cmove edi, esi
test al, al
je 0x50c229
mov eax, dword [edx + 0x28]
jmp 0x50c22c
lea eax, [edx + 0x21]
push ecx
push eax
push edi
mov ebx, ecx
call sub.msvcrt.dll_memmove
add esp, 0xc
mov dword [edi + ebx], 0x73616820
mov word [edi + ebx + 4], 0x20
movzx eax, byte [esp + 8]
test al, 1
je 0x50c25a
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
jmp 0x50c25c
shr eax, 1
lea ecx, [esp + 0x50]
push eax
push esi
call fcn.0054f9aa
test byte [esp + 8], 1
lea ebx, [esp + 8]
je 0x50c27e
push dword [esp + 0x10]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 4]
mov word [esp + 0x4c], 0x503
mov dword [esp + 0x3c], str.invalid
mov eax, dword [edx + 0x2c]
mov dword [esp + 0x44], eax
mov eax, dword [edx + 0x30]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], str.__0x
mov word [esp + 0x74], 0x302
lea edi, [esp + 0x64]
mov dword [esp + 0x78], edi
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x80], eax
mov word [esp + 0x88], 0xf02
lea eax, [esp + 0x78]
mov dword [esp + 8], eax
mov dword [esp + 0x10], 0x5564e0
mov word [esp + 0x18], 0x302
lea ecx, [esp + 0x28]
push ebx
call fcn.0054f5a2
movzx eax, byte [esp + 0x28]
test al, 1
je 0x50c30e
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
jmp 0x50c314
shr eax, 1
lea edx, [esp + 0x29]
lea ecx, [esp + 0x50]
push eax
push edx
call fcn.0054f9aa
test byte [esp + 0x28], 1
je 0x50c332
push dword [esp + 0x30]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov edx, dword [esp + 4]
mov eax, dword [edx + 0x38]
test eax, eax
je 0x50c3e6
mov word [esp + 0x4c], 0x503
mov dword [esp + 0x3c], str._or
mov ecx, dword [edx + 0x34]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x64], eax
mov dword [esp + 0x78], edi
lea eax, [edx + 0x10]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x78]
mov dword [esp + 8], eax
mov dword [esp + 0x6c], str.__0x
mov word [esp + 0x74], 0x302
mov word [esp + 0x88], 0xf02
mov dword [esp + 0x10], 0x5564e0
mov word [esp + 0x18], 0x302
lea ecx, [esp + 0x28]
push ebx
call fcn.0054f5a2
movzx eax, byte [esp + 0x28]
test al, 1
je 0x50c3be
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
jmp 0x50c3c4
shr eax, 1
lea edx, [esp + 0x29]
lea ecx, [esp + 0x50]
push eax
push edx
call fcn.0054f9aa
test byte [esp + 0x28], 1
je 0x50c3e2
push dword [esp + 0x30]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov edx, dword [esp + 4]
mov ecx, dword [edx + 0x1c]
mov word [esp + 0x18], 0x104
lea eax, [esp + 0x50]
mov dword [esp + 8], eax
push ebx
call fcn.005394d0
test byte [esp + 0x50], 1
je 0x50c0ea
push dword [esp + 0x58]
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x50c0ea
lea ecx, [esp + 8]
call fcn.00407790
int3