Function at 0x51c3a0
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.0051c940
add esp, 0x10
cmp dword [esp + 0xb0], 0
jne 0x51c4e5
mov edi, ebp
mov ebp, dword [esp]
mov esi, dword [ebp + 0x3c]
lea ecx, [esp + 0x24]
push esi
call fcn.00500980
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.0054f434
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.0054f5a2
mov ecx, ebx
push str.could_not_identify_function_symbol_for_stack_size_entry_in
push 0
call fcn.0054f9b6
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.005394d0
test byte [esp + 0xc], 1
je 0x51c4bd
push dword [esp + 0x14]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x30], 1
je 0x51c4d0
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.0054f55a
mov ebx, dword [esp + 4]
test ebx, ebx
je 0x51c615
mov dword [esp + 8], ebx
mov eax, dword [esp]
mov edi, dword [eax + 0x3c]
lea ecx, [esp + 0x24]
push edi
call fcn.00500980
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.0054f434
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.0054f5a2
mov ecx, edi
push str.could_not_extract_a_valid_stack_size_from
push 0
call fcn.0054f9b6
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 0x556440
call fcn.0054f9a4
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.0054f518
add esp, 8
movzx eax, byte [esp + 0x78]
test al, 1
je 0x51c71c
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
jmp 0x51c722
mov ebp, dword [esp + 0xb0]
test ebp, ebp
je 0x51c898
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 0x51c67b
add esi, 4
cmp ebp, esi
je 0x51c80a
mov ecx, ebx
mov edx, dword [esp]
mov eax, dword [esp + 0x8c]
push dword [eax + esi]
call fcn.00513a00
add esp, 4
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
lea edx, [ecx + 1]
cmp edx, dword [esp + 0x44]
ja 0x51c6e3
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 0x51c670
push dword [esp + 0x14]
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x51c670
lea ecx, [ecx + ecx*2]
lea ecx, [eax + ecx*4]
cmp ecx, ebx
seta cl
cmp eax, ebx
ja 0x51c6f6
test cl, cl
jne 0x51c706
lea ecx, [esp + 0x3c]
push edx
call fcn.0045b410
mov eax, dword [esp + 0x3c]
jmp 0x51c6a3
mov edi, ebx
sub edi, eax
lea ecx, [esp + 0x3c]
push edx
call fcn.0045b410
mov eax, dword [esp + 0x3c]
add edi, eax
jmp 0x51c6a5
shr eax, 1
lea edx, [esp + 0x79]
lea ecx, [esp + 0x24]
push eax
push edx
call fcn.0054f9aa
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.005394d0
test byte [esp + 0xc], 1
jne 0x51c79c
test byte [esp + 0x78], 1
mov ebx, dword [esp + 8]
jne 0x51c7b3
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x51c77f
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x24], 1
jne 0x51c7cc
test byte [esp + 0x30], 1
jne 0x51c7df
test byte [esp + 0xa0], 1
jne 0x51c7f9
jmp 0x51c903
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 0x51c772
push dword [esp + 0x80]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x51c77a
jmp 0x51c77f
push dword [esp + 0x2c]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x30], 1
je 0x51c78d
push dword [esp + 0x38]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0xa0], 1
je 0x51c903
push dword [esp + 0xa8]
call sub.libc.dll_operator_delete_void_
jmp 0x51c900
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 0x51c8ee
shl eax, 2
lea edi, [eax + eax*2]
mov ebx, dword [esp + 8]
jmp 0x51c875
add edi, 0xfffffff4
je 0x51c88a
test byte [esi + edi - 0xc], 1
je 0x51c870
push dword [esi + edi - 4]
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x51c870
mov esi, dword [esp + 0x3c]
lea eax, [esp + 0x48]
cmp esi, eax
jne 0x51c8fa
jmp 0x51c903
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 0x51c903
push dword [esp + 0x44]
jmp 0x51c800
mov ebx, dword [esp + 8]
lea eax, [esp + 0x48]
cmp esi, eax
je 0x51c903
push esi
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x51c910
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0xac]
lea ecx, [esp + 0xb8]
cmp eax, ecx
je 0x51c92b
push eax
call sub.msvcrt.dll_free
add esp, 4
test ebx, ebx
sete al
add esp, 0xec
pop esi
pop edi
pop ebx
pop ebp
ret