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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x88
mov dword [esp], ecx
mov esi, dword [esp + 0xa0]
mov ebp, dword [esp + 0x9c]
mov eax, dword [esi + 0x28]
bswap eax
lea ecx, [esp + 0x1c]
push eax
push ebp
call fcn.00506ca0
test byte [esp + 0x20], 1
jne 0x50c681
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x64], 0x43ad10
mov dword [esp + 0x78], 0x43b380
lea ebx, [esp + 0x64]
mov dword [esp + 0x7c], ebx
sub esp, 0x10
movsd xmm0, qword [esp + 0x88]
movsd qword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], ebp
lea ecx, [esp + 0x14]
call fcn.00502920
test byte [esp + 0xc], 1
jne 0x50c799
mov esi, dword [esp]
and byte [esi + 8], 0xfe
movsd xmm0, qword [esp + 4]
movsd qword [esi], xmm0
jmp 0x50caf9
lea ecx, [esp + 0x10]
push ebp
call fcn.00502220
mov ebx, esi
sub ebx, dword [esp + 0x10]
mov eax, dword [ebp]
movzx eax, word [eax + 0x12]
rol ax, 8
sar ebx, 6
movzx eax, ax
mov ecx, dword [esi + 4]
bswap ecx
push ecx
push eax
call fcn.005509d8
add esp, 8
mov word [esp + 0x34], 0x305
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], str._section_with_index
lea ebp, [esp + 0x24]
mov dword [esp + 0x64], ebp
mov dword [esp + 0x6c], ebx
mov word [esp + 0x74], 0x802
lea ebx, [esp + 0x64]
lea edi, [esp + 0x58]
mov ecx, edi
push ebx
call fcn.00550b46
mov ecx, edi
push str.invalid_section_linked_to
push 0
call fcn.00550f48
movsd xmm0, qword [eax]
movsd qword [esp + 4], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0xc], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
lea ecx, [esp + 4]
push 0x558038
call fcn.00550f36
movsd xmm0, qword [eax]
movsd qword [esp + 0x10], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
xor eax, eax
test byte [esp + 0x20], 1
je 0x50c766
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x54], eax
lea eax, [esp + 0x54]
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.00550abc
add esp, 8
movzx eax, byte [esp + 0x44]
test al, 1
mov esi, dword [esp]
je 0x50c8aa
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
jmp 0x50c8b0
lea ecx, [esp + 0x10]
push ebp
call fcn.00502220
mov edi, esi
sub edi, dword [esp + 0x10]
mov eax, dword [ebp]
movzx eax, word [eax + 0x12]
rol ax, 8
sar edi, 6
movzx eax, ax
mov ecx, dword [esi + 4]
bswap ecx
push ecx
push eax
call fcn.005509d8
add esp, 8
mov word [esp + 0x34], 0x305
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], str._section_with_index
lea ebp, [esp + 0x24]
mov dword [esp + 0x64], ebp
mov dword [esp + 0x6c], edi
mov word [esp + 0x74], 0x802
lea edi, [esp + 0x44]
mov ecx, edi
push ebx
call fcn.00550b46
mov ecx, edi
push str.invalid_string_table_linked_to
push 0
call fcn.00550f48
movsd xmm0, qword [eax]
movsd qword [esp + 0x58], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0x60], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
lea ecx, [esp + 0x58]
push 0x558038
call fcn.00550f36
movsd xmm0, qword [eax]
movsd qword [esp + 0x10], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
xor eax, eax
test byte [esp + 0xc], 1
je 0x50c87a
mov eax, dword [esp + 4]
mov dword [esp + 4], 0
mov dword [esp + 0x50], eax
lea eax, [esp + 0x50]
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.00550abc
add esp, 8
movzx eax, byte [esp + 0x38]
test al, 1
je 0x50c9c0
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
jmp 0x50c9c6
shr eax, 1
lea edx, [esp + 0x45]
lea ecx, [esp + 0x10]
push eax
push edx
call fcn.00550f3c
movsd xmm0, qword [eax]
movsd qword [esp + 0x24], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0x2c], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov word [esp + 0x74], 0x104
mov dword [esp + 0x64], ebp
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov edi, eax
call fcn.00550996
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], 3
sub esp, 0xc
movsd xmm0, qword [esp + 0x44]
movsd qword [esp + 4], xmm0
mov dword [esp], ebx
mov ecx, edi
call fcn.005507bc
or byte [esi + 8], 1
mov dword [esi], edi
test byte [esp + 0x24], 1
jne 0x50c95c
test byte [esp + 0x44], 1
jne 0x50c96f
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x50c942
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x10], 1
jne 0x50c985
test byte [esp + 4], 1
jne 0x50c998
test byte [esp + 0x58], 1
jne 0x50c9af
jmp 0x50caf9
push dword [esp + 0x2c]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x44], 1
je 0x50c935
push dword [esp + 0x4c]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0x54]
test ecx, ecx
jne 0x50c93d
jmp 0x50c942
push dword [esp + 0x18]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 4], 1
je 0x50c950
push dword [esp + 0xc]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x58], 1
je 0x50caf9
push dword [esp + 0x60]
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x50caf9
shr eax, 1
lea edx, [esp + 0x39]
mov esi, dword [esp]
lea ecx, [esp + 0x10]
push eax
push edx
call fcn.00550f3c
movsd xmm0, qword [eax]
movsd qword [esp + 0x24], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0x2c], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov word [esp + 0x74], 0x104
mov dword [esp + 0x64], ebp
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov edi, eax
call fcn.00550996
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], 3
sub esp, 0xc
movsd xmm0, qword [esp + 0x8c]
movsd qword [esp + 4], xmm0
mov dword [esp], ebx
mov ecx, edi
call fcn.005507bc
or byte [esi + 8], 1
mov dword [esi], edi
test byte [esp + 0x24], 1
jne 0x50ca82
test byte [esp + 0x38], 1
jne 0x50ca95
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x50ca64
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x10], 1
jne 0x50caab
test byte [esp + 0x58], 1
jne 0x50cabe
test byte [esp + 0x44], 1
jne 0x50cad1
test byte [esp + 0xc], 1
jne 0x50cae4
jmp 0x50caf9
push dword [esp + 0x2c]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x38], 1
je 0x50ca57
push dword [esp + 0x40]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0x50]
test ecx, ecx
jne 0x50ca5f
jmp 0x50ca64
push dword [esp + 0x18]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x58], 1
je 0x50ca72
push dword [esp + 0x60]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x44], 1
je 0x50ca79
push dword [esp + 0x4c]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0xc], 1
je 0x50caf9
mov ecx, dword [esp + 4]
mov dword [esp + 4], 0
test ecx, ecx
je 0x50caf9
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x20], 1
je 0x50cb15
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], 0
test ecx, ecx
je 0x50cb15
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
add esp, 0x88
pop esi
pop edi
pop ebx
pop ebp
ret 8