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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xec
mov eax, edx
mov edx, ecx
mov esi, dword [esp + 0x11c]
lea edi, [esp + 0x110]
mov ebp, dword [esp + 0x10c]
lea ecx, [esp + 0xac]
mov dword [esp], edx
push dword [esp + 0x108]
push dword [esp + 0x108]
push dword [esp + 0x108]
push eax
call fcn.0051c900
add esp, 0x10
cmp dword [esp + 0xb0], 0
jne 0x51c4a5
mov edi, ebp
mov ebp, dword [esp]
mov esi, dword [ebp + 0x3c]
lea ecx, [esp + 0x24]
push esi
call fcn.00500940
mov ebx, edi
sub ebx, dword [esp + 0x24]
mov eax, dword [esi]
movzx eax, word [eax + 0x12]
rol ax, 8
sar ebx, 6
movzx eax, ax
mov ecx, dword [edi + 4]
bswap ecx
push ecx
push eax
call fcn.0054a5d0
add esp, 8
mov word [esp + 0x1c], 0x305
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], str._section_with_index
lea esi, [esp + 0xc]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x44], ebx
mov word [esp + 0x4c], 0x902
lea edi, [esp + 0x3c]
lea ebx, [esp + 0x30]
mov ecx, ebx
push edi
call fcn.0054a73e
mov ecx, ebx
push str.could_not_identify_function_symbol_for_stack_size_entry_in
push 0
call fcn.0054ab52
mov ecx, dword [eax + 8]
mov dword [esp + 0x14], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0xc], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
mov word [esp + 0x4c], 0x104
mov dword [esp + 0x3c], esi
mov ecx, ebp
push edi
call fcn.00539490
test byte [esp + 0xc], 1
je 0x51c47d
push dword [esp + 0x14]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x30], 1
je 0x51c490
push dword [esp + 0x38]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ebp, dword [esp + 0x10c]
mov esi, dword [esp + 0x11c]
lea edi, [esp + 0x110]
mov dword [esp + 4], 0
lea eax, [esp + 4]
mov ecx, edi
push eax
push esi
call fcn.0054a6f6
mov ebx, dword [esp + 4]
test ebx, ebx
je 0x51c5d5
mov dword [esp + 8], ebx
mov eax, dword [esp]
mov edi, dword [eax + 0x3c]
lea ecx, [esp + 0x24]
push edi
call fcn.00500940
mov esi, ebp
sub esi, dword [esp + 0x24]
mov eax, dword [edi]
movzx eax, word [eax + 0x12]
rol ax, 8
sar esi, 6
movzx eax, ax
mov ecx, dword [ebp + 4]
bswap ecx
push ecx
push eax
call fcn.0054a5d0
add esp, 8
mov word [esp + 0x1c], 0x305
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], str._section_with_index
lea ebx, [esp + 0xc]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], esi
mov word [esp + 0x4c], 0x902
lea ebp, [esp + 0x3c]
lea edi, [esp + 0xa0]
mov ecx, edi
push ebp
call fcn.0054a73e
mov ecx, edi
push str.could_not_extract_a_valid_stack_size_from
push 0
call fcn.0054ab52
mov ecx, dword [eax + 8]
mov dword [esp + 0x38], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x30], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
lea ecx, [esp + 0x30]
push 0x551440
call fcn.0054ab40
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 eax, dword [esp + 4]
mov dword [esp + 0x20], eax
mov dword [esp + 4], 0
lea eax, [esp + 0x20]
lea ecx, [esp + 0x78]
push eax
push ecx
call fcn.0054a6b4
add esp, 8
movzx eax, byte [esp + 0x78]
test al, 1
je 0x51c6dc
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
jmp 0x51c6e2
mov ebp, dword [esp + 0xb0]
test ebp, ebp
je 0x51c858
mov dword [esp + 8], ebx
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 4
mov eax, dword [esp + 0xac]
mov dword [esp + 0x8c], eax
shl ebp, 2
xor esi, esi
lea ebx, [esp + 0xc]
jmp 0x51c63b
add esi, 4
cmp ebp, esi
je 0x51c7ca
mov ecx, ebx
mov edx, dword [esp]
mov eax, dword [esp + 0x8c]
push dword [eax + esi]
call fcn.005139c0
add esp, 4
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
lea edx, [ecx + 1]
cmp edx, dword [esp + 0x44]
ja 0x51c6a3
mov edi, ebx
mov ecx, dword [esp + 0x40]
lea ecx, [ecx + ecx*2]
mov edx, dword [edi + 8]
mov dword [eax + ecx*4 + 8], edx
movsd xmm0, qword [edi]
movsd qword [eax + ecx*4], xmm0
xorps xmm0, xmm0
movsd qword [edi], xmm0
mov dword [edi + 8], 0
inc dword [esp + 0x40]
test byte [esp + 0xc], 1
je 0x51c630
push dword [esp + 0x14]
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x51c630
lea ecx, [ecx + ecx*2]
lea ecx, [eax + ecx*4]
cmp ecx, ebx
seta cl
cmp eax, ebx
ja 0x51c6b6
test cl, cl
jne 0x51c6c6
lea ecx, [esp + 0x3c]
push edx
call fcn.0045b3d0
mov eax, dword [esp + 0x3c]
jmp 0x51c663
mov edi, ebx
sub edi, eax
lea ecx, [esp + 0x3c]
push edx
call fcn.0045b3d0
mov eax, dword [esp + 0x3c]
add edi, eax
jmp 0x51c665
shr eax, 1
lea edx, [esp + 0x79]
lea ecx, [esp + 0x24]
push eax
push edx
call fcn.0054ab46
mov ecx, dword [eax + 8]
mov dword [esp + 0x14], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0xc], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
mov word [esp + 0x4c], 0x104
mov dword [esp + 0x3c], ebx
mov ecx, dword [esp]
push ebp
call fcn.00539490
test byte [esp + 0xc], 1
jne 0x51c75c
test byte [esp + 0x78], 1
mov ebx, dword [esp + 8]
jne 0x51c773
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x51c73f
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x24], 1
jne 0x51c78c
test byte [esp + 0x30], 1
jne 0x51c79f
test byte [esp + 0xa0], 1
jne 0x51c7b9
jmp 0x51c8c3
push dword [esp + 0x14]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x78], 1
mov ebx, dword [esp + 8]
je 0x51c732
push dword [esp + 0x80]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x51c73a
jmp 0x51c73f
push dword [esp + 0x2c]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x30], 1
je 0x51c74d
push dword [esp + 0x38]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0xa0], 1
je 0x51c8c3
push dword [esp + 0xa8]
call sub.libc.dll_operator_delete_void_
jmp 0x51c8c0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
mov ecx, dword [esp]
mov edx, dword [ecx]
sub esp, 0x10
movsd xmm0, qword [esp + 0xa0]
movsd qword [esp + 8], xmm0
mov eax, dword [esp + 0x94]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x98]
mov dword [esp], eax
call dword [edx + 0x134]
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x51c8ae
shl eax, 2
lea edi, [eax + eax*2]
mov ebx, dword [esp + 8]
jmp 0x51c835
add edi, 0xfffffff4
je 0x51c84a
test byte [esi + edi - 0xc], 1
je 0x51c830
push dword [esi + edi - 4]
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x51c830
mov esi, dword [esp + 0x3c]
lea eax, [esp + 0x48]
cmp esi, eax
jne 0x51c8ba
jmp 0x51c8c3
mov word [esp + 0x3c], 0x3f02
mov byte [esp + 0x3e], 0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], 1
mov ecx, dword [esp]
mov esi, dword [ecx]
sub esp, 0x10
movsd xmm0, qword [esp + 0xa8]
movsd qword [esp + 8], xmm0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [esi + 0x134]
test byte [esp + 0x3c], 1
je 0x51c8c3
push dword [esp + 0x44]
jmp 0x51c7c0
mov ebx, dword [esp + 8]
lea eax, [esp + 0x48]
cmp esi, eax
je 0x51c8c3
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x51c8d0
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0xac]
lea ecx, [esp + 0xb8]
cmp eax, ecx
je 0x51c8eb
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
test ebx, ebx
sete al
add esp, 0xec
pop esi
pop edi
pop ebx
pop ebp
ret