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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x88
mov dword [esp + 0x2c], edx
mov ebp, ecx
lea ecx, [esp + 0x7c]
push dword [ebp + 0x3c]
call fcn.00502220
mov eax, dword [esp + 0x80]
test eax, eax
je 0x51f599
mov edi, dword [esp + 0x7c]
mov esi, edi
add esi, 4
shl eax, 6
mov dword [esp + 0xc], ebp
jmp 0x51f2e3
add esi, 0x40
add edi, 0x40
mov eax, dword [esp + 0x30]
add eax, 0xffffffc0
je 0x51f599
mov dword [esp + 0x30], eax
lea ebx, [esi - 4]
mov eax, dword [ebp + 0x3c]
mov dword [esp + 0x54], 0x43ad10
mov dword [esp + 0x68], 0x43b380
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], ecx
sub esp, 0x10
movsd xmm0, qword [esp + 0x78]
movsd qword [esp + 8], xmm0
mov dword [esp + 4], ebx
mov dword [esp], eax
lea ecx, [esp + 0x10]
call fcn.00506570
test byte [esp + 8], 1
jne 0x51f370
mov eax, dword [esp + 0x9c]
cmp dword [esp + 4], eax
jne 0x51f2d0
cmp dword [esp + 0x9c], 0
je 0x51f59b
push dword [esp + 0x9c]
push dword [esp + 0x30]
push dword [esp + 8]
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x51f2d0
jmp 0x51f59b
mov ebp, dword [ebp + 0x3c]
lea ecx, [esp + 0x20]
push ebp
call fcn.00502220
mov ebx, edi
sub ebx, dword [esp + 0x20]
mov eax, dword [ebp]
movzx eax, word [eax + 0x12]
rol ax, 8
sar ebx, 6
movzx eax, ax
mov ecx, dword [esi]
bswap ecx
push ecx
push eax
call fcn.005509d8
add esp, 8
mov word [esp + 0x44], 0x305
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], str._section_with_index
lea eax, [esp + 0x34]
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], ebx
mov word [esp + 0x64], 0x802
lea ebx, [esp + 0x70]
mov ecx, ebx
lea ebp, [esp + 0x54]
push ebp
call fcn.00550b46
mov ecx, ebx
push str.unable_to_read_the_name_of
push 0
call fcn.00550f48
movsd xmm0, qword [eax]
movsd qword [esp + 0x48], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0x50], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
lea ecx, [esp + 0x48]
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
xor eax, eax
test byte [esp + 8], 1
mov ebx, ebp
je 0x51f457
mov eax, dword [esp]
mov dword [esp], 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00550abc
add esp, 8
movzx eax, byte [esp + 0x14]
test al, 1
je 0x51f480
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
jmp 0x51f486
shr eax, 1
lea edx, [esp + 0x15]
mov ebp, dword [esp + 0xc]
lea ecx, [esp + 0x20]
push eax
push edx
call fcn.00550f3c
movsd xmm0, qword [eax]
movsd qword [esp + 0x34], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0x3c], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov word [esp + 0x64], 0x104
lea eax, [esp + 0x34]
mov dword [esp + 0x54], eax
mov ecx, ebp
push ebx
call fcn.0053aad0
test byte [esp + 0x34], 1
jne 0x51f510
test byte [esp + 0x14], 1
jne 0x51f523
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x51f4ec
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x20], 1
jne 0x51f540
test byte [esp + 0x48], 1
jne 0x51f553
test byte [esp + 0x70], 1
jne 0x51f566
test byte [esp + 8], 1
je 0x51f2d0
jmp 0x51f57d
push dword [esp + 0x3c]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x14], 1
je 0x51f4df
push dword [esp + 0x1c]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x51f4e7
jmp 0x51f4ec
push dword [esp + 0x28]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x48], 1
je 0x51f4fa
push dword [esp + 0x50]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x70], 1
je 0x51f501
push dword [esp + 0x78]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 8], 1
je 0x51f2d0
mov ecx, dword [esp]
mov dword [esp], 0
test ecx, ecx
je 0x51f2d0
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x51f2d0
xor ebx, ebx
mov eax, ebx
add esp, 0x88
pop esi
pop edi
pop ebx
pop ebp
ret