Function at 0x50ad10
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.005054e0
test byte [esp + 0x20], 1
jne 0x50ada1
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x64], 0x43a5a0
mov dword [esp + 0x78], 0x43abd0
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.00501080
test byte [esp + 0xc], 1
jne 0x50aead
mov esi, dword [esp]
and byte [esi + 8], 0xfe
movsd xmm0, qword [esp + 4]
movsd qword [esi], xmm0
jmp 0x50b1f5
lea ecx, [esp + 0x10]
push ebp
call fcn.00500980
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.0054f434
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.0054f5a2
mov ecx, edi
push str.invalid_section_linked_to
push 0
call fcn.0054f9b6
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 0x556440
call fcn.0054f9a4
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 0x50ae7a
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.0054f518
add esp, 8
movzx eax, byte [esp + 0x44]
test al, 1
mov esi, dword [esp]
je 0x50afb2
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
jmp 0x50afb8
lea ecx, [esp + 0x10]
push ebp
call fcn.00500980
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.0054f434
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.0054f5a2
mov ecx, edi
push str.invalid_string_table_linked_to
push 0
call fcn.0054f9b6
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 0x556440
call fcn.0054f9a4
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 0x50af82
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.0054f518
add esp, 8
movzx eax, byte [esp + 0x38]
test al, 1
je 0x50b0c2
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
jmp 0x50b0c8
shr eax, 1
lea edx, [esp + 0x45]
lea ecx, [esp + 0x10]
push eax
push edx
call fcn.0054f9aa
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.0054f3f2
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.0054f20c
or byte [esi + 8], 1
mov dword [esi], edi
test byte [esp + 0x24], 1
jne 0x50b05e
test byte [esp + 0x44], 1
jne 0x50b071
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x50b044
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x10], 1
jne 0x50b087
test byte [esp + 4], 1
jne 0x50b09a
test byte [esp + 0x58], 1
jne 0x50b0b1
jmp 0x50b1f5
push dword [esp + 0x2c]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x44], 1
je 0x50b037
push dword [esp + 0x4c]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0x54]
test ecx, ecx
jne 0x50b03f
jmp 0x50b044
push dword [esp + 0x18]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 4], 1
je 0x50b052
push dword [esp + 0xc]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x58], 1
je 0x50b1f5
push dword [esp + 0x60]
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x50b1f5
shr eax, 1
lea edx, [esp + 0x39]
mov esi, dword [esp]
lea ecx, [esp + 0x10]
push eax
push edx
call fcn.0054f9aa
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.0054f3f2
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.0054f20c
or byte [esi + 8], 1
mov dword [esi], edi
test byte [esp + 0x24], 1
jne 0x50b17e
test byte [esp + 0x38], 1
jne 0x50b191
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x50b160
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x10], 1
jne 0x50b1a7
test byte [esp + 0x58], 1
jne 0x50b1ba
test byte [esp + 0x44], 1
jne 0x50b1cd
test byte [esp + 0xc], 1
jne 0x50b1e0
jmp 0x50b1f5
push dword [esp + 0x2c]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x38], 1
je 0x50b153
push dword [esp + 0x40]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0x50]
test ecx, ecx
jne 0x50b15b
jmp 0x50b160
push dword [esp + 0x18]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x58], 1
je 0x50b16e
push dword [esp + 0x60]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x44], 1
je 0x50b175
push dword [esp + 0x4c]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0xc], 1
je 0x50b1f5
mov ecx, dword [esp + 4]
mov dword [esp + 4], 0
test ecx, ecx
je 0x50b1f5
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x20], 1
je 0x50b211
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], 0
test ecx, ecx
je 0x50b211
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
add esp, 0x88
pop esi
pop edi
pop ebx
pop ebp
ret 8