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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xf8
mov esi, edx
lea eax, [ecx + 0xc]
mov dword [esp + 0x68], eax
mov dword [ecx], eax
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0xd
cmp byte [edx + 0x260], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0x2c], ecx
je 0x51c9d0
mov eax, dword [esi + 0x250]
mov ebx, dword [esi + 0x25c]
test ebx, ebx
je 0x51d068
mov ecx, dword [ebp + 8]
lea edx, [ecx + ecx*8]
lea edi, [ecx + edx*4]
mov dword [esp + 4], ebx
lea ecx, [ebx - 1]
mov dword [esp], ecx
and edi, ecx
lea edx, [edi + edi*2]
mov ebx, dword [eax + edx*8 + 4]
mov dword [esp + 0x14], ebx
xor ebx, dword [ebp + 0xc]
mov ecx, dword [eax + edx*8]
mov esi, ecx
xor esi, dword [ebp + 8]
or esi, ebx
jne 0x51d019
lea edx, [eax + edx*8]
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 4]
jmp 0x51d06e
lea ebx, [esi + 0x250]
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
mov byte [esi + 0x260], 1
mov eax, dword [esi + 0x220]
test eax, eax
je 0x51c979
mov edi, ecx
lea ecx, [esp + 0x30]
push eax
push dword [esi + 0x3c]
call fcn.005074a0
test byte [esp + 0x38], 1
jne 0x51cee9
mov eax, dword [esp + 0x34]
test eax, eax
je 0x51cf80
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x30]
lea eax, [eax + eax*2]
lea ecx, [ebx + eax*8]
mov edx, 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 0x28], ecx
jmp 0x51ca5a
test byte [esp + 0x14], 1
mov ecx, dword [esp + 0x28]
jne 0x51cfc1
add ebx, 0x18
cmp ebx, ecx
je 0x51cfbc
inc edx
cmp word [ebx + 6], 0
je 0x51ca4f
movzx eax, byte [ebx + 4]
and al, 0xf
cmp al, 2
jne 0x51ca4f
mov eax, esi
mov esi, dword [esi + 0x38]
mov edi, dword [eax + 0x220]
test edi, edi
mov dword [esp + 4], edx
je 0x51caab
lea eax, [esi + 0x1c]
lea ecx, [esp + 0x84]
push eax
call fcn.00500980
mov ecx, dword [esp + 0x84]
test byte [esp + 0x8c], 1
jne 0x51cab1
sub edi, ecx
shr edi, 6
mov eax, dword [esp + 4]
jmp 0x51cac9
xor eax, eax
xor edi, edi
jmp 0x51cac9
mov dword [esp + 0x84], 0
xor edi, edi
test ecx, ecx
je 0x51cac7
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], edi
mov eax, dword [esi]
sub esp, 0xc
movsd xmm0, qword [esp + 0x90]
movsd qword [esp + 4], xmm0
mov dword [esp], esi
lea esi, [esp + 0x5c]
mov ecx, esi
call dword [eax + 0x2c]
movzx eax, byte [esp + 0x58]
mov byte [esp + 0x14], al
test al, 1
jne 0x51cb2a
mov ecx, dword [esp + 0x24]
push esi
call fcn.0045ed10
mov edi, dword [eax + 0xc]
mov esi, dword [eax + 0x10]
cmp edi, esi
jae 0x51cbdb
mov edx, dword [esp + 4]
mov dword [edi], edx
add edi, 4
jmp 0x51ce2b
lea edi, [esp + 0x78]
mov ecx, edi
mov esi, dword [esp + 0x10]
mov edx, esi
push dword [esp + 4]
call fcn.00513a00
add esp, 4
push edi
push str.unable_to_get_address_of_symbol_
lea edi, [esp + 0x74]
push edi
call fcn.0054f9f8
add esp, 0xc
mov ecx, edi
push 0x560200
call fcn.0054f9a4
mov ecx, dword [eax + 8]
mov dword [esp + 0x48], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x40], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
xor eax, eax
test byte [esp + 0x58], 1
je 0x51cb95
mov eax, dword [esp + 0x50]
mov dword [esp + 0x50], 0
mov dword [esp + 0xa4], eax
lea eax, [esp + 0xa4]
push eax
lea eax, [esp + 0xbc]
push eax
call fcn.0054f518
add esp, 8
movzx eax, byte [esp + 0xb8]
test al, 1
mov edi, dword [esp + 0x2c]
je 0x51cc5e
mov edx, dword [esp + 0xc0]
mov eax, dword [esp + 0xbc]
jmp 0x51cc67
mov dword [esp + 0x1c], eax
mov ecx, eax
add ecx, 8
mov eax, dword [ecx]
mov edx, edi
mov dword [esp], eax
sub edx, eax
mov dword [esp + 8], edx
sar edx, 2
mov eax, edx
mov dword [esp + 0x18], edx
inc edx
cmp edx, 0x40000000
jae 0x51d469
sub esi, dword [esp]
mov ecx, esi
sar ecx, 1
cmp ecx, edx
cmovbe ecx, edx
cmp esi, 0x7ffffffc
mov eax, 0x3fffffff
cmovae ecx, eax
test ecx, ecx
mov dword [esp + 0xc4], ecx
je 0x51cd86
cmp ecx, 0x40000000
jae 0x51d46e
lea eax, [ecx*4]
push eax
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 8]
mov dword [esp], edx
mov edi, dword [ecx + 0xc]
jmp 0x51cd88
shr eax, 1
lea edx, [esp + 0xb9]
lea ecx, [esp + 0x40]
push eax
push edx
call fcn.0054f9aa
mov ecx, dword [eax + 8]
mov dword [esp + 0xb0], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0xa8], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
mov word [esp + 0x94], 0x104
lea eax, [esp + 0xa8]
mov dword [esp + 0x84], eax
mov ecx, esi
lea eax, [esp + 0x84]
push eax
call fcn.005394d0
test byte [esp + 0xa8], 1
jne 0x51cd25
test byte [esp + 0xb8], 1
jne 0x51cd3e
mov ecx, dword [esp + 0xa4]
test ecx, ecx
je 0x51cce2
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x40], 1
jne 0x51cd5a
test byte [esp + 0x6c], 1
jne 0x51cd6d
test byte [esp + 0x78], 1
je 0x51cd06
push dword [esp + 0x80]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov al, 1
mov dword [esp + 0xc], eax
mov eax, 1
mov edx, dword [esp + 4]
test byte [esp + 0x58], 1
je 0x51ca40
jmp 0x51ce43
push dword [esp + 0xb0]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0xb8], 1
je 0x51ccd2
push dword [esp + 0xc0]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0xa4]
test ecx, ecx
jne 0x51ccdd
jmp 0x51cce2
push dword [esp + 0x48]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x6c], 1
je 0x51ccf0
push dword [esp + 0x74]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x78], 1
jne 0x51ccf7
jmp 0x51cd06
xor eax, eax
mov esi, dword [esp + 0x18]
lea ecx, [eax + esi*4]
mov edx, dword [esp + 4]
mov dword [eax + esi*4], edx
mov esi, edi
sub esi, dword [esp]
mov dword [esp + 0x20], eax
je 0x51cde2
add esi, 0xfffffffc
cmp esi, 0x1c
jb 0x51cdc0
mov dword [esp + 0x64], esi
add dword [esp + 8], eax
mov esi, edi
sub esi, dword [esp + 8]
cmp esi, 0x20
jae 0x51ce6b
mov esi, edi
mov edi, dword [esp]
nop word cs:[eax + eax]
mov eax, dword [esi - 4]
add esi, 0xfffffffc
mov dword [ecx - 4], eax
add ecx, 0xfffffffc
cmp esi, edi
jne 0x51cdd0
jmp 0x51cde5
mov edi, dword [esp]
mov dword [esp], edi
mov eax, dword [esp + 0xc4]
mov esi, dword [esp + 0x20]
lea eax, [esi + eax*4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
lea edi, [esi + eax*4 + 4]
mov eax, dword [esp + 0x1c]
mov dword [eax + 8], ecx
mov ecx, dword [esp]
mov dword [eax + 0xc], edi
mov esi, dword [esp + 8]
mov dword [eax + 0x10], esi
test ecx, ecx
je 0x51ce2b
push ecx
mov esi, edx
call sub.libc.dll_operator_delete_void_
mov eax, dword [esp + 0x20]
mov edx, esi
add esp, 4
mov esi, dword [esp + 0x10]
mov dword [eax + 0xc], edi
xor eax, eax
mov edi, dword [esp + 0x2c]
test byte [esp + 0x58], 1
je 0x51ca40
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x50], 0
test ecx, ecx
je 0x51ca40
mov dword [esp], eax
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp]
mov edx, dword [esp + 4]
jmp 0x51ca40
mov eax, dword [esp + 0x64]
shr eax, 2
inc eax
mov dword [esp + 0x64], eax
and eax, 0xfffffff8
mov dword [esp + 0x98], eax
lea eax, [eax*4]
sub ecx, eax
mov esi, edi
sub esi, eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
lea eax, [edx + eax*4]
add eax, 0xfffffff0
mov edx, dword [esp + 0x98]
neg edx
mov dword [esp + 8], edx
xor edx, edx
nop dword [eax + eax]
movups xmm0, xmmword [edi + edx*4 - 0x20]
movups xmm1, xmmword [edi + edx*4 - 0x10]
movups xmmword [eax + edx*4], xmm1
movups xmmword [eax + edx*4 - 0x10], xmm0
add edx, 0xfffffff8
cmp dword [esp + 8], edx
jne 0x51ceb0
mov eax, dword [esp + 0x98]
cmp dword [esp + 0x64], eax
mov edx, dword [esp + 4]
mov edi, dword [esp]
jne 0x51cdd0
jmp 0x51cde5
mov eax, dword [esp + 0x30]
mov dword [esp + 0x30], 0
mov dword [esp + 0xa0], eax
lea eax, [esp + 0xa0]
lea ebx, [esp + 0x78]
push eax
push ebx
call fcn.0054f518
add esp, 8
mov ecx, ebx
push str.unable_to_read_the_symbol_table:
push 0
call fcn.0054f9b6
mov ecx, dword [eax + 8]
mov dword [esp + 0x58], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x50], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
mov word [esp + 0x94], 0x104
lea eax, [esp + 0x50]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x84]
mov ecx, esi
push eax
call fcn.005394d0
test byte [esp + 0x50], 1
jne 0x51cf8d
test byte [esp + 0x78], 1
jne 0x51cfa0
mov ecx, dword [esp + 0xa0]
test ecx, ecx
je 0x51cf80
mov eax, dword [ecx]
call dword [eax + 4]
mov bl, 1
xor edx, edx
test byte [esp + 0x38], 1
jne 0x51cfd1
jmp 0x51cfee
push dword [esp + 0x58]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x78], 1
je 0x51cf70
push dword [esp + 0x80]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0xa0]
test ecx, ecx
jne 0x51cf7b
jmp 0x51cf80
mov eax, 2
test al, 1
sete bl
mov edx, dword [esp + 0xc]
test byte [esp + 0x38], 1
je 0x51cfee
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x30], 0
test ecx, ecx
je 0x51cfee
mov eax, dword [ecx]
mov dword [esp + 0xc], edx
call dword [eax + 4]
mov edx, dword [esp + 0xc]
test bl, bl
jne 0x51c979
test dl, 1
jne 0x51d461
mov eax, dword [edi]
cmp eax, dword [esp + 0x68]
je 0x51d461
push eax
call sub.msvcrt.dll_free
add esp, 4
jmp 0x51d461
mov dword [esp + 8], edi
mov edi, 1
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 4]
and ecx, dword [esp + 0x14]
cmp ecx, 0xffffffff
je 0x51d068
mov edx, dword [esp + 8]
add edx, edi
inc edi
and edx, dword [esp]
mov dword [esp + 8], edx
lea edx, [edx + edx*2]
mov ebx, dword [eax + edx*8]
mov esi, dword [eax + edx*8 + 4]
mov dword [esp + 0x14], esi
xor esi, dword [ebp + 0xc]
mov ecx, ebx
xor ebx, dword [ebp + 8]
or ebx, esi
mov ebx, dword [esp + 4]
mov esi, dword [esp + 0x10]
lea edx, [eax + edx*8]
je 0x51d06e
jmp 0x51d02a
lea edx, [ebx + ebx*2]
lea edx, [eax + edx*8]
lea ecx, [ebx + ebx*2]
lea eax, [eax + ecx*8]
cmp edx, eax
mov edi, dword [esp + 0x2c]
je 0x51d461
mov ebx, dword [edx + 8]
mov eax, dword [edx + 0xc]
mov dword [esp + 0x14], eax
cmp ebx, eax
je 0x51d461
cmp byte [ebp + 0x14], 0
jne 0x51d0fb
mov eax, dword [edi + 4]
nop dword [eax + eax]
mov esi, dword [ebx]
lea edx, [eax + 1]
cmp edx, dword [edi + 8]
ja 0x51d0c4
mov ecx, dword [edi]
mov dword [ecx + eax*4], esi
mov eax, dword [edi + 4]
inc eax
mov dword [edi + 4], eax
add ebx, 4
cmp ebx, dword [esp + 0x14]
jne 0x51d0a0
jmp 0x51d461
mov ecx, edi
push 4
push edx
push dword [esp + 0x70]
call fcn.0054f2cc
mov eax, dword [edi + 4]
jmp 0x51d0aa
mov ecx, dword [esi]
mov edx, dword [esp + 8]
mov dword [ecx + eax*4], edx
inc dword [esi + 4]
add ebx, 4
cmp ebx, dword [esp + 0x14]
mov esi, edi
je 0x51d461
mov eax, dword [ebx]
lea ecx, [esp + 0xc8]
mov dword [esp + 8], eax
push eax
push dword [esi + 0x220]
push dword [esi + 0x3c]
call fcn.00513de0
mov edi, dword [esi + 0x220]
mov dword [esp + 4], 0
test edi, edi
mov dword [esp], edi
je 0x51d170
mov edx, dword [esi + 0x22c]
mov esi, dword [esi + 0x238]
test esi, esi
je 0x51d1d0
mov ecx, edi
shr ecx, 4
mov eax, edi
shr eax, 9
xor eax, ecx
mov dword [esp + 0x28], esi
lea ecx, [esi - 1]
mov dword [esp + 0x1c], ecx
and eax, ecx
lea ecx, [eax + eax*2]
mov esi, dword [edx + ecx*4]
mov dword [esp + 0xc], esi
cmp esi, edi
jne 0x51d174
lea ecx, [edx + ecx*4]
mov esi, dword [esp + 0x28]
jmp 0x51d1d6
xor eax, eax
jmp 0x51d1f3
mov dword [esp + 0x18], 1
mov esi, dword [esp + 0x28]
cmp dword [esp + 0xc], 0xfffff000
je 0x51d1d0
mov ecx, dword [esp + 0x18]
add eax, ecx
inc ecx
mov dword [esp + 0x18], ecx
and eax, dword [esp + 0x1c]
lea ecx, [eax + eax*2]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
lea ecx, [edx + ecx*4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
mov edx, dword [edx + ecx*4]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xc], edx
cmp edx, edi
mov edx, dword [esp + 0x24]
je 0x51d1d6
jmp 0x51d180
lea eax, [esi + esi*2]
lea ecx, [edx + eax*4]
lea eax, [esi + esi*2]
lea edx, [edx + eax*4]
mov eax, 0
cmp ecx, edx
mov esi, dword [esp + 0x10]
je 0x51d1f3
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0xc8]
mov edi, esi
mov edx, dword [esi + 0x3c]
mov esi, dword [esp + 4]
mov dword [esp + 0xd0], esi
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], 0
mov byte [esp + 0xe0], 1
mov dword [esp + 0xe8], 0
sub esp, 0x2c
movups xmm0, xmmword [esp + 0xfc]
movups xmm1, xmmword [esp + 0x10c]
movups xmmword [esp + 0x1c], xmm1
movups xmmword [esp + 0xc], xmm0
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
lea ecx, [esp + 0x98]
call fcn.0051c290
test byte [esp + 0x70], 1
jne 0x51d2a4
mov eax, dword [ebp + 0x10]
cmp dword [esp + 0x6c], eax
mov esi, dword [esp + 0x2c]
jne 0x51d0ec
mov eax, dword [esi + 4]
lea edx, [eax + 1]
cmp edx, dword [esi + 8]
jbe 0x51d0e0
mov ecx, esi
push 4
push edx
push dword [esp + 0x70]
call fcn.0054f2cc
mov eax, dword [esi + 4]
jmp 0x51d0e0
lea esi, [esp + 0x50]
mov ecx, esi
mov edx, edi
push dword [esp + 8]
call fcn.00513a00
add esp, 4
lea ebx, [esp + 0xa8]
push esi
push str.unable_to_get_section_of_symbol_
push ebx
call fcn.0054f9f8
add esp, 0xc
mov ecx, ebx
push 0x560200
call fcn.0054f9a4
mov ecx, dword [eax + 8]
mov dword [esp + 0x80], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x78], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
xor eax, eax
test byte [esp + 0x70], 1
je 0x51d311
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.0054f518
add esp, 8
movzx eax, byte [esp + 0x40]
test al, 1
je 0x51d344
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x10]
jmp 0x51d34e
shr eax, 1
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x41]
lea ecx, [esp + 0x78]
push eax
push edx
call fcn.0054f9aa
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
mov word [esp + 0x94], 0x104
lea eax, [esp + 0x30]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x84]
mov ecx, esi
push eax
call fcn.005394d0
test byte [esp + 0x30], 1
jne 0x51d3de
test byte [esp + 0x40], 1
jne 0x51d3f1
mov ecx, dword [esp + 0x9c]
test ecx, ecx
je 0x51d3ba
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x78], 1
jne 0x51d40a
test byte [esp + 0xa8], 1
jne 0x51d423
test byte [esp + 0x50], 1
jne 0x51d439
test byte [esp + 0x70], 1
jne 0x51d44c
jmp 0x51d461
push dword [esp + 0x38]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x40], 1
je 0x51d3aa
push dword [esp + 0x48]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0x9c]
test ecx, ecx
jne 0x51d3b5
jmp 0x51d3ba
push dword [esp + 0x80]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0xa8], 1
je 0x51d3cb
push dword [esp + 0xb0]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x50], 1
je 0x51d3d2
push dword [esp + 0x58]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x70], 1
je 0x51d461
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x6c], 0
test ecx, ecx
je 0x51d461
mov eax, dword [ecx]
call dword [eax + 4]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00425990
call fcn.004077b0
int3