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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x84
mov edi, edx
mov esi, ecx
mov ebp, dword [esp + 0x98]
lea ecx, [esp + 8]
push ebp
push edx
call fcn.0050ce10
test byte [esp + 0x10], 1
jne 0x51504d
mov edx, dword [esp + 8]
lea ecx, [esp + 0x54]
push dword [esp + 0xc]
call fcn.00454cc0
add esp, 4
movzx ebx, byte [esp + 0x60]
test bl, 1
jne 0x515064
and byte [esi + 0xc], 0xfe
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esp], esi
mov dword [esi + 8], 0
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
mov ebp, esi
sub ebp, edi
sub esi, edi
je 0x515036
js 0x5152a1
sar ebp, 3
push esi
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov ecx, dword [esp]
mov dword [ecx], eax
lea ebp, [eax + ebp*8]
mov dword [ecx + 8], ebp
push esi
push edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp]
mov dword [eax + 4], ebp
test bl, 1
jne 0x51526f
test edi, edi
je 0x51527a
push edi
jmp 0x515265
mov eax, dword [esp + 8]
mov dword [esp + 8], 0
or byte [esi + 0xc], 1
mov dword [esi], eax
jmp 0x515281
lea ecx, [esp + 0x20]
push edi
call fcn.00502220
mov ebx, ebp
sub ebx, dword [esp + 0x20]
mov eax, dword [edi]
movzx eax, word [eax + 0x12]
rol ax, 8
sar ebx, 6
movzx eax, ax
mov ecx, dword [ebp + 4]
bswap ecx
push ecx
push eax
call fcn.005509d8
add esp, 8
mov word [esp + 0x3c], 0x305
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], str._section_with_index
lea ebp, [esp + 0x2c]
mov dword [esp + 0x64], ebp
mov dword [esp + 0x6c], ebx
mov word [esp + 0x74], 0x802
lea ebx, [esp + 0x64]
lea edi, [esp + 0x78]
mov ecx, edi
push ebx
call fcn.00550b46
mov ecx, edi
push str.unable_to_decode
push 0
call fcn.00550f48
movsd xmm0, qword [eax]
movsd qword [esp + 0x40], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0x48], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
lea ecx, [esp + 0x40]
push 0x558038
call fcn.00550f36
movsd xmm0, qword [eax]
movsd qword [esp + 0x20], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
lea eax, [esp + 4]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00550abc
add esp, 8
movzx eax, byte [esp + 0x14]
test al, 1
je 0x515160
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
jmp 0x515166
shr eax, 1
lea edx, [esp + 0x15]
lea ecx, [esp + 0x20]
push eax
push edx
call fcn.00550f3c
movsd xmm0, qword [eax]
movsd qword [esp + 0x2c], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0x34], 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 + 0x50], eax
mov dword [esp + 0x4c], 3
sub esp, 0xc
movsd xmm0, qword [esp + 0x58]
movsd qword [esp + 4], xmm0
mov dword [esp], ebx
mov ecx, edi
call fcn.005507bc
or byte [esi + 0xc], 1
mov dword [esi], edi
test byte [esp + 0x2c], 1
jne 0x51520f
test byte [esp + 0x14], 1
jne 0x515222
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x5151f8
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x20], 1
jne 0x515238
test byte [esp + 0x40], 1
jne 0x51524b
test byte [esp + 0x78], 1
jne 0x51525e
jmp 0x51527a
push dword [esp + 0x34]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x14], 1
je 0x5151eb
push dword [esp + 0x1c]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x5151f3
jmp 0x5151f8
push dword [esp + 0x28]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x40], 1
je 0x515206
push dword [esp + 0x48]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x78], 1
je 0x51527a
push dword [esp + 0x80]
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x51527a
test edi, edi
je 0x51527a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
test byte [esp + 0x10], 1
je 0x515296
mov ecx, dword [esp + 8]
mov dword [esp + 8], 0
test ecx, ecx
je 0x515296
mov eax, dword [ecx]
call dword [eax + 4]
add esp, 0x84
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp]
call fcn.004550d0
int3