Function at 0x51b4d0
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.00500940
mov esi, dword [esp + 0x70]
test esi, esi
je 0x51b740
mov ebx, dword [esp + 0x6c]
shl esi, 6
add esi, ebx
mov dword [esp + 4], edi
mov dword [esp + 0x38], esi
jmp 0x51b52b
mov edi, dword [esp + 4]
mov esi, dword [esp + 0x38]
nop dword [eax + eax]
add ebx, 0x40
cmp ebx, esi
je 0x51b740
mov ecx, edi
mov edx, ebx
call fcn.00504290
cmp edx, 0xc
jne 0x51b520
push 0xc
push str..stack_sizes
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x51b520
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x51b77f
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.0050b4b0
test byte [esp + 0x48], 1
jne 0x51b748
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 0x51b510
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 0x51b65d
cmp ecx, dword [esp + 0x10]
sbb edx, 0
jae 0x51b65d
movzx eax, byte [esp + 0x15]
lea ecx, [esp + 0xc]
push 0
push eax
lea esi, [esp + 0x20]
push esi
call fcn.0054a6fc
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.0051c360
add esp, 0x20
test al, al
jne 0x51b5c0
jmp 0x51b510
mov eax, dword [esp + 4]
mov edi, dword [eax + 0x3c]
lea ecx, [esp + 0x78]
push edi
call fcn.00500940
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.0054a5d0
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], 0x902
lea edi, [esp + 0x60]
mov ecx, edi
lea esi, [esp + 0x4c]
push esi
call fcn.0054a73e
mov ecx, edi
push str._ended_while_trying_to_extract_a_stack_size_entry
call fcn.0054ab40
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x20], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
mov word [esp + 0x5c], 0x104
lea eax, [esp + 0x20]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 4]
push esi
call fcn.00539490
test byte [esp + 0x20], 1
je 0x51b724
push dword [esp + 0x28]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x60], 1
je 0x51b510
push dword [esp + 0x68]
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x51b510
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
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.0052c4c0
call fcn.0043e2e0
int3