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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd8
mov dword [esp + 0x74], edx
mov eax, dword [ecx + 0x3c]
mov dword [esp + 0xb0], 0x56530c
mov dword [esp + 4], ecx
mov dword [esp + 0xb4], ecx
lea ebx, [esp + 0xb0]
mov dword [esp + 0xc0], ebx
lea ecx, [esp + 0x90]
push ebx
push eax
call fcn.00550e9a
mov ecx, dword [esp + 0xc0]
cmp ecx, ebx
je 0x51c1d0
test ecx, ecx
je 0x51c1de
mov eax, dword [ecx]
add eax, 0x14
mov ebx, ecx
jmp 0x51c1da
mov eax, dword [esp + 0xb0]
add eax, 0x10
mov ecx, ebx
call dword [eax]
test byte [esp + 0xac], 1
jne 0x51c4fc
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x51c593
mov esi, dword [esp + 0xa0]
lea eax, [esi + eax*8]
mov dword [esp + 0x70], eax
jmp 0x51c29f
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax]
cmp byte [eax + 5], 1
mov eax, dword [esp + 0x78]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0xc], eax
sete byte [esp + 0x10]
mov byte [esp + 0x11], 8
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x84]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
lea eax, [esp + 0x54]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x44], eax
lea eax, [esp + 8]
mov dword [esp + 0x48], eax
mov ecx, ebx
lea eax, [esp + 0x2f]
push eax
push 0x51e6e0
lea eax, [esp + 0x38]
push eax
push 0x51ca90
push 0
call fcn.005066a0
add esp, 0x14
mov esi, dword [esp + 0x4c]
add esi, 8
cmp esi, dword [esp + 0x70]
je 0x51c593
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x51c62d
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ebx, dword [esi]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x4c], esi
mov eax, dword [esi + 4]
mov dword [esp + 0x54], eax
test eax, eax
je 0x51c340
mov ecx, dword [esp + 4]
mov esi, dword [ecx + 0x44]
mov edi, dword [ecx + 0x40]
mov eax, dword [ebx + 0x28]
mov ebx, ecx
bswap eax
lea ecx, [esp + 0x60]
push eax
push dword [ebx + 0x3c]
call fcn.00506ca0
test byte [esp + 0x64], 1
jne 0x51c632
mov eax, dword [esp + 0x60]
mov dword [esp + 0x20], eax
push dword [ebx + 0x38]
call fcn.005509de
add esp, 4
mov dword [esp + 0x84], eax
mov dword [esp + 0x68], edx
mov esi, dword [ebx + 0x44]
mov edi, dword [ebx + 0x40]
lea ecx, [esp + 0x78]
push dword [esp + 0x58]
push dword [ebx + 0x3c]
call fcn.0050ce10
test byte [esp + 0x80], 1
je 0x51c210
jmp 0x51c640
mov eax, dword [esp + 4]
mov edi, dword [eax + 0x3c]
lea ecx, [esp + 0x20]
push edi
call fcn.00502220
mov esi, ebx
sub esi, dword [esp + 0x20]
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 + 0x18], 0x305
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], str._section_with_index
lea edi, [esp + 8]
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], esi
mov word [esp + 0x40], 0x802
lea ebx, [esp + 0x84]
mov ecx, ebx
lea esi, [esp + 0x30]
push esi
call fcn.00550b46
mov ecx, ebx
push str..stack_sizes__
push 0
call fcn.00550f48
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
lea ecx, [esp + 0x20]
push str.__does_not_have_a_corresponding_relocation_section
call fcn.00550f36
movsd xmm0, qword [eax]
movsd qword [esp + 8], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov word [esp + 0x40], 0x104
mov dword [esp + 0x30], edi
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
call fcn.00550996
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], 3
sub esp, 0xc
movsd xmm0, qword [esp + 0x74]
movsd qword [esp + 4], xmm0
mov dword [esp], esi
mov ecx, ebx
call fcn.005507bc
mov dword [esp + 0x50], ebx
mov eax, dword [esp + 4]
movsd xmm0, qword [eax + 0x40]
movsd qword [esp + 0xcc], xmm0
sub esp, 0xc
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x5c]
mov dword [esp], eax
call fcn.0052dc80
add esp, 0xc
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x51c495
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 8], 1
jne 0x51c4b7
test byte [esp + 0x20], 1
mov esi, dword [esp + 0x4c]
jne 0x51c4ce
test byte [esp + 0x84], 1
je 0x51c292
jmp 0x51c4e8
push dword [esp + 0x10]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x20], 1
mov esi, dword [esp + 0x4c]
je 0x51c4a7
push dword [esp + 0x28]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x84], 1
je 0x51c292
push dword [esp + 0x8c]
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x51c292
mov eax, dword [esp + 0x90]
mov dword [esp + 0x90], 0
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x5c]
lea edi, [esp + 0x20]
push eax
push edi
call fcn.00550abc
add esp, 8
mov ecx, edi
push str.unable_to_get_stack_size_map_section_s_:
push 0
call fcn.00550f48
movsd xmm0, qword [eax]
movsd qword [esp + 8], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov word [esp + 0x40], 0x104
lea eax, [esp + 8]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
mov ecx, dword [esp + 4]
push eax
call fcn.0053aad0
test byte [esp + 8], 1
jne 0x51c5f9
test byte [esp + 0x20], 1
jne 0x51c610
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x51c593
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0xac], 1
jne 0x51c5d6
lea ecx, [esp + 0xac]
mov eax, dword [esp + 0xa0]
cmp eax, ecx
je 0x51c5b8
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, dword [esp + 0x9c]
shl eax, 3
push 4
push eax
push dword [esp + 0x98]
call fcn.005508a6
add esp, 0xc
jmp 0x51c5f1
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x90], 0
test ecx, ecx
je 0x51c5f1
mov eax, dword [ecx]
call dword [eax + 4]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [esp + 0x10]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x20], 1
je 0x51c586
push dword [esp + 0x28]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0x5c]
test ecx, ecx
jne 0x51c58e
jmp 0x51c593
call fcn.0043e9e0
mov eax, dword [esp + 0x60]
mov dword [esp + 0x60], 0
jmp 0x51c64c
mov eax, dword [esp + 0x78]
mov dword [esp + 0x78], 0
mov dword [esp + 8], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], esi
sub esp, 0xc
movsd xmm0, qword [esp + 0x3c]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x14]
mov dword [esp], eax
call fcn.0052da00
int3