Function at 0x50acd0
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.005054a0
test byte [esp + 0x20], 1
jne 0x50ad61
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x64], 0x43a590
mov dword [esp + 0x78], 0x43abc0
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.00501040
test byte [esp + 0xc], 1
jne 0x50ae6d
mov esi, dword [esp]
and byte [esi + 8], 0xfe
movsd xmm0, qword [esp + 4]
movsd qword [esi], xmm0
jmp 0x50b1b5
lea ecx, [esp + 0x10]
push ebp
call fcn.00500940
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.0054a5d0
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], 0x902
lea ebx, [esp + 0x64]
lea edi, [esp + 0x58]
mov ecx, edi
push ebx
call fcn.0054a73e
mov ecx, edi
push str.invalid_section_linked_to
push 0
call fcn.0054ab52
mov ecx, dword [eax + 8]
mov dword [esp + 0xc], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 4], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
lea ecx, [esp + 4]
push 0x551440
call fcn.0054ab40
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x10], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
xor eax, eax
test byte [esp + 0x20], 1
je 0x50ae3a
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.0054a6b4
add esp, 8
movzx eax, byte [esp + 0x44]
test al, 1
mov esi, dword [esp]
je 0x50af72
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
jmp 0x50af78
lea ecx, [esp + 0x10]
push ebp
call fcn.00500940
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.0054a5d0
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], 0x902
lea edi, [esp + 0x44]
mov ecx, edi
push ebx
call fcn.0054a73e
mov ecx, edi
push str.invalid_string_table_linked_to
push 0
call fcn.0054ab52
mov ecx, dword [eax + 8]
mov dword [esp + 0x60], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x58], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
lea ecx, [esp + 0x58]
push 0x551440
call fcn.0054ab40
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x10], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
xor eax, eax
test byte [esp + 0xc], 1
je 0x50af42
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.0054a6b4
add esp, 8
movzx eax, byte [esp + 0x38]
test al, 1
je 0x50b082
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
jmp 0x50b088
shr eax, 1
lea edx, [esp + 0x45]
lea ecx, [esp + 0x10]
push eax
push edx
call fcn.0054ab46
mov ecx, dword [eax + 8]
mov dword [esp + 0x2c], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x24], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 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.0054a58e
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.0054a3a8
or byte [esi + 8], 1
mov dword [esi], edi
test byte [esp + 0x24], 1
jne 0x50b01e
test byte [esp + 0x44], 1
jne 0x50b031
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x50b004
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x10], 1
jne 0x50b047
test byte [esp + 4], 1
jne 0x50b05a
test byte [esp + 0x58], 1
jne 0x50b071
jmp 0x50b1b5
push dword [esp + 0x2c]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x44], 1
je 0x50aff7
push dword [esp + 0x4c]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0x54]
test ecx, ecx
jne 0x50afff
jmp 0x50b004
push dword [esp + 0x18]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 4], 1
je 0x50b012
push dword [esp + 0xc]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x58], 1
je 0x50b1b5
push dword [esp + 0x60]
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x50b1b5
shr eax, 1
lea edx, [esp + 0x39]
mov esi, dword [esp]
lea ecx, [esp + 0x10]
push eax
push edx
call fcn.0054ab46
mov ecx, dword [eax + 8]
mov dword [esp + 0x2c], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x24], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 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.0054a58e
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.0054a3a8
or byte [esi + 8], 1
mov dword [esi], edi
test byte [esp + 0x24], 1
jne 0x50b13e
test byte [esp + 0x38], 1
jne 0x50b151
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x50b120
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x10], 1
jne 0x50b167
test byte [esp + 0x58], 1
jne 0x50b17a
test byte [esp + 0x44], 1
jne 0x50b18d
test byte [esp + 0xc], 1
jne 0x50b1a0
jmp 0x50b1b5
push dword [esp + 0x2c]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x38], 1
je 0x50b113
push dword [esp + 0x40]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0x50]
test ecx, ecx
jne 0x50b11b
jmp 0x50b120
push dword [esp + 0x18]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x58], 1
je 0x50b12e
push dword [esp + 0x60]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x44], 1
je 0x50b135
push dword [esp + 0x4c]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0xc], 1
je 0x50b1b5
mov ecx, dword [esp + 4]
mov dword [esp + 4], 0
test ecx, ecx
je 0x50b1b5
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x20], 1
je 0x50b1d1
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], 0
test ecx, ecx
je 0x50b1d1
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
add esp, 0x88
pop esi
pop edi
pop ebx
pop ebp
ret 8