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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov dword [esp + 0x3c], edx
mov edi, ecx
lea ecx, [esp + 0x6c]
push dword [edi + 0x3c]
call fcn.00502220
mov esi, dword [esp + 0x70]
test esi, esi
je 0x51c8f6
mov ebx, dword [esp + 0x6c]
shl esi, 6
add esi, ebx
mov dword [esp + 4], edi
mov dword [esp + 0x38], esi
jmp 0x51c6db
mov edi, dword [esp + 4]
mov esi, dword [esp + 0x38]
nop dword [eax + eax]
add ebx, 0x40
cmp ebx, esi
je 0x51c8f6
mov ecx, edi
mov edx, ebx
call fcn.00505ab0
cmp edx, 0xc
jne 0x51c6d0
push 0xc
push str..stack_sizes
push eax
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x51c6d0
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x51c8fe
mov eax, dword [ecx]
call dword [eax + 0x18]
mov eax, dword [edi + 0x44]
mov dword [esp + 8], eax
mov esi, dword [edi + 0x40]
lea ecx, [esp + 0x40]
push ebx
push dword [edi + 0x3c]
call fcn.0050ce10
test byte [esp + 0x48], 1
jne 0x51c903
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ecx, dword [edi + 0x3c]
mov ecx, dword [ecx]
cmp byte [ecx + 5], 1
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 0x10], edx
sete byte [esp + 0x14]
mov byte [esp + 0x15], 8
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
nop word [eax + eax]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp edi, dword [esp + 8]
mov ecx, eax
sbb ecx, 0
jae 0x51c6c0
mov ecx, edi
add ecx, 8
mov edx, eax
adc edx, 0
mov esi, 0xfffffff6
cmp esi, edi
mov edi, 0xffffffff
sbb edi, eax
jb 0x51c80d
cmp ecx, dword [esp + 0x10]
sbb edx, 0
jae 0x51c80d
movzx eax, byte [esp + 0x15]
lea ecx, [esp + 0xc]
push 0
push eax
lea esi, [esp + 0x20]
push esi
call fcn.00550b04
sub esp, 0x20
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
movsd xmm0, qword [esp + 0x2c]
movsd qword [esp + 0x10], xmm0
mov dword [esp + 0x1c], esi
mov dword [esp + 0xc], ebx
mov dword [esp], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 0x24]
mov edx, eax
call fcn.0051d520
add esp, 0x20
test al, al
jne 0x51c770
jmp 0x51c6c0
mov eax, dword [esp + 4]
mov edi, dword [eax + 0x3c]
lea ecx, [esp + 0x78]
push edi
call fcn.00502220
mov esi, ebx
sub esi, dword [esp + 0x78]
mov eax, dword [edi]
movzx eax, word [eax + 0x12]
rol ax, 8
sar esi, 6
movzx eax, ax
mov ecx, dword [ebx + 4]
bswap ecx
push ecx
push eax
call fcn.005509d8
add esp, 8
mov word [esp + 0x30], 0x305
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], str._section_with_index
lea edi, [esp + 0x20]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x54], esi
mov word [esp + 0x5c], 0x802
lea edi, [esp + 0x60]
mov ecx, edi
lea esi, [esp + 0x4c]
push esi
call fcn.00550b46
mov ecx, edi
push str._ended_while_trying_to_extract_a_stack_size_entry
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 word [esp + 0x5c], 0x104
lea eax, [esp + 0x20]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 4]
push esi
call fcn.0053aad0
test byte [esp + 0x20], 1
je 0x51c8da
push dword [esp + 0x28]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x60], 1
je 0x51c6c0
push dword [esp + 0x68]
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x51c6c0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0043e9e0
mov eax, dword [esp + 0x40]
mov dword [esp + 0x40], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x4c], esi
mov eax, dword [esp + 8]
mov dword [esp + 0x50], eax
sub esp, 0xc
movsd xmm0, qword [esp + 0x58]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x2c]
mov dword [esp], eax
call fcn.0052da00
int3