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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x9c
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
xorps xmm0, xmm0
movups xmmword [esp + 0x88], xmm0
movups xmmword [esp + 0x78], xmm0
movups xmmword [esp + 0x68], xmm0
mov byte [esp + 0x98], 0
mov edi, dword [ecx + 0x1c]
test edi, edi
je 0x40f0ce
mov esi, ecx
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov byte [esp + 0x64], 0
movups xmmword [esp + 0x40], xmm0
movups xmmword [esp + 0x30], xmm0
movups xmmword [esp + 0x20], xmm0
mov byte [esp + 0x50], 0
lea eax, [esp + 0x20]
mov ecx, esp
push eax
call fcn.00407d20
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x40ebd8
mov dword [esp + 0x40], eax
push eax
call sub.libc.dll_operator_delete_void_
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40ebed
mov dword [esp + 0x34], eax
push eax
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ebp, dword [esp + 4]
mov dword [ebp - 0x34], 0
mov eax, dword [esp + 0xb0]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [esp + 0xb4]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
sub edx, ecx
sar edx, 2
imul ebx, edx, 0xaaaaaaab
mov edx, eax
sub edx, ebx
jbe 0x40ec3f
add ebp, 0xffffffdc
lea eax, [esp + 0x5c]
mov ecx, ebp
push eax
push edx
call fcn.00407f00
mov ebp, dword [esp + 4]
jmp 0x40ec4a
jae 0x40ec4a
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x20], eax
movzx ebx, byte [esp + 0xc0]
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
sub esi, ecx
sar esi, 3
mov edx, eax
sub edx, esi
jbe 0x40ec77
add ebp, 0xffffffe8
mov ecx, ebp
push edx
call fcn.00408160
mov ebp, dword [esp + 4]
jmp 0x40ec7f
jae 0x40ec7f
lea eax, [ecx + eax*8]
mov dword [ebp - 0x14], eax
mov eax, dword [esp + 0xb4]
sub eax, dword [esp + 0xb0]
mov dword [esp + 0x18], eax
mov dword [ebp - 0xc], edi
mov eax, dword [esp + 0xbc]
mov dword [ebp - 8], eax
mov byte [ebp - 4], bl
mov dword [esp + 0x10], 0
mov ebx, 0x3e8
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], 0
jmp 0x40ece0
mov dword [esi - 0x20], eax
push eax
call sub.libc.dll_operator_delete_void_
add esp, 4
add esi, 0xffffffcc
mov dword [esp + 4], esi
mov ebp, dword [esp + 4]
cmp dword [esp], ebp
je 0x40f0c3
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
test eax, 0xfff
jne 0x40ed01
mov eax, dword [esp + 0x1c]
shr eax, 0xc
cmp eax, dword [esp + 0x18]
jge 0x40f22b
lea edi, [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x40ed11
mov eax, dword [ecx]
push edi
call dword [eax + 8]
mov eax, dword [edi]
add eax, ebx
cmp eax, 9
ja case.0x40ed21.1
lea esi, [ebp - 0xc]
jmp dword [eax*4 + 0x40f248]
mov ebx, dword [ebp - 0x2c]
mov eax, dword [esp + 0xbc]
test al, 0x20
je 0x40ed3f
cmp ebx, dword [esp + 0xb0]
je 0x40ed5d
test dword [esp + 0xbc], 0x1000
je 0x40ef95
cmp ebx, dword [esp + 0xb4]
je 0x40ef95
mov esi, dword [esp + 4]
mov eax, dword [esi - 0x18]
test eax, eax
je 0x40ed74
mov dword [esi - 0x14], eax
push eax
call sub.libc.dll_operator_delete_void_
add esp, 4
mov eax, dword [esi - 0x24]
test eax, eax
mov ebx, 0x3e8
jne 0x40ecc0
jmp 0x40eccc
mov esi, dword [esp + 4]
mov eax, dword [esi - 0x18]
test eax, eax
je 0x40eda0
mov dword [esi - 0x14], eax
push eax
call sub.libc.dll_operator_delete_void_
add esp, 4
mov eax, dword [esi - 0x24]
test eax, eax
jne 0x40ecc0
jmp 0x40eccc
movups xmm0, xmmword [edi]
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
sub ebx, eax
je 0x40ee4d
mov dword [esp + 0x14], eax
mov eax, ebx
sar eax, 2
imul eax, eax, 0xaaaaaaab
cmp eax, 0x15555556
jae 0x40f235
push ebx
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x58], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea ecx, [eax + ebx]
mov dword [esp + 0x38], ecx
add ebx, 0xfffffff4
mov eax, ebx
mov ecx, 0xaaaaaaab
mul ecx
shr edx, 3
lea eax, [edx + edx*2]
mov dword [esp + 0x54], eax
lea eax, [eax*4 + 0xc]
push eax
push dword [esp + 0x18]
mov ebx, dword [esp + 0x60]
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x54]
lea eax, [ebx + eax*4]
add eax, 0xc
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov eax, dword [ebp - 0x18]
mov ebp, dword [ebp - 0x14]
sub ebp, eax
je 0x40eeac
mov dword [esp + 0x14], eax
js 0x40f23e
push ebp
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
add eax, ebp
mov dword [esp + 0x44], eax
and ebp, 0x7ffffff8
push ebp
push dword [esp + 0x18]
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
add ebp, ebx
mov dword [esp + 0x40], ebp
movzx eax, byte [esi + 8]
lea ebx, [esp + 0x30]
mov byte [ebx + 0x20], al
movsd xmm0, qword [esi]
movsd qword [ebx + 0x18], xmm0
mov ecx, dword [esi]
mov eax, dword [ecx]
push edi
push 1
call dword [eax + 0xc]
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx]
lea esi, [esp + 0x20]
push esi
push 0
call dword [eax + 0xc]
mov eax, dword [esp + 4]
cmp eax, dword [esp + 8]
jae 0x40ef51
movups xmm0, xmmword [esp + 0x20]
movups xmmword [eax], xmm0
xorps xmm1, xmm1
movups xmmword [eax + 0x10], xmm1
movsd xmm0, qword [esp + 0x30]
movsd qword [eax + 0x10], xmm0
mov ecx, dword [esp + 0x38]
mov dword [eax + 0x18], ecx
mov dword [esp + 0x30], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
movsd xmm0, qword [esp + 0x3c]
movsd qword [eax + 0x1c], xmm0
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x24], ecx
movups xmmword [esp + 0x38], xmm1
movzx ecx, byte [ebx + 0x20]
mov byte [eax + 0x30], cl
movsd xmm0, qword [ebx + 0x18]
movsd qword [eax + 0x28], xmm0
add eax, 0x34
mov dword [esp + 4], eax
mov ebx, 0x3e8
jmp 0x40ef77
mov ecx, esp
push esi
call fcn.00407d20
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], eax
test ecx, ecx
mov ebx, 0x3e8
je 0x40ef77
mov dword [esp + 0x40], ecx
push ecx
call sub.libc.dll_operator_delete_void_
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je case.0x40ed21.5
mov dword [esp + 0x34], eax
push eax
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp case.0x40ed21.5
sub ebx, dword [ebp - 0x30]
test byte [esp + 0x10], 1
mov eax, dword [esp + 0xc]
je 0x40f00f
cmp eax, ebx
jl 0x40f00f
mov esi, dword [esp + 4]
cmp eax, dword [esp + 0x18]
jne 0x40f082
mov edi, dword [esp]
cmp esi, edi
mov ebx, 0x3e8
jne 0x40efe7
mov dword [esp + 4], edi
mov al, 1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], eax
jmp case.0x40ed21.5
add esi, 0xffffffcc
cmp esi, edi
je 0x40efc1
mov eax, dword [esi - 0x18]
test eax, eax
je 0x40effa
mov dword [esi - 0x14], eax
push eax
call sub.libc.dll_operator_delete_void_
add esp, 4
mov eax, dword [esi - 0x24]
test eax, eax
je 0x40efe0
mov dword [esi - 0x20], eax
push eax
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x40efe0
movups xmm0, xmmword [edi]
movups xmmword [esp + 0x68], xmm0
lea eax, [esp + 0x68]
cmp eax, edi
lea ecx, [esp + 0x78]
je 0x40f062
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov ecx, edx
sub ecx, eax
sar ecx, 2
imul edi, ecx, 0xaaaaaaab
lea ecx, [esp + 0x78]
push edi
push edx
push eax
call fcn.00410040
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov edi, edx
sub edi, eax
sar edi, 3
lea ecx, [esp + 0x84]
push edi
push edx
push eax
call fcn.00410200
lea ecx, [esp + 0x78]
movzx eax, byte [esi + 8]
mov byte [ecx + 0x20], al
movsd xmm0, qword [esi]
movsd qword [ecx + 0x18], xmm0
mov eax, ebx
mov esi, dword [esp + 4]
cmp eax, dword [esp + 0x18]
je 0x40efb5
mov dword [esp + 0xc], eax
mov eax, dword [esi - 0x18]
test eax, eax
mov ebx, 0x3e8
je 0x40f09e
mov dword [esi - 0x14], eax
push eax
call sub.libc.dll_operator_delete_void_
add esp, 4
mov eax, dword [esi - 0x24]
test eax, eax
je 0x40f0b1
mov dword [esi - 0x20], eax
push eax
call sub.libc.dll_operator_delete_void_
add esp, 4
add esi, 0xffffffcc
mov dword [esp + 4], esi
mov al, 1
mov dword [esp + 0x10], eax
jmp case.0x40ed21.5
test byte [esp + 0x10], 1
jne 0x40f16e
xor ebx, ebx
mov eax, dword [esp + 0x84]
test eax, eax
je 0x40f0eb
mov dword [esp + 0x88], eax
push eax
call sub.libc.dll_operator_delete_void_
add esp, 4
mov eax, dword [esp + 0x78]
test eax, eax
je 0x40f100
mov dword [esp + 0x7c], eax
push eax
call sub.libc.dll_operator_delete_void_
add esp, 4
mov esi, dword [esp]
test esi, esi
je 0x40f15f
mov edi, dword [esp + 4]
mov eax, esi
cmp edi, esi
jne 0x40f127
jmp 0x40f152
add edi, 0xffffffcc
cmp edi, esi
je 0x40f14f
mov eax, dword [edi - 0x18]
test eax, eax
je 0x40f13a
mov dword [edi - 0x14], eax
push eax
call sub.libc.dll_operator_delete_void_
add esp, 4
mov eax, dword [edi - 0x24]
test eax, eax
je 0x40f120
mov dword [edi - 0x20], eax
push eax
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x40f120
mov eax, dword [esp]
mov dword [esp + 4], esi
push eax
call sub.libc.dll_operator_delete_void_
add esp, 4
mov eax, ebx
add esp, 0x9c
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov eax, dword [esp + 0xb8]
mov eax, dword [eax]
mov ecx, dword [esp + 0xb0]
mov dword [eax], ecx
mov edx, dword [esp + 0xc]
add edx, ecx
mov dword [eax + 4], edx
mov byte [eax + 8], 1
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
sub edx, ecx
je 0x40f215
sar edx, 2
imul esi, edx, 0xaaaaaaab
xor edx, edx
mov edi, 1
cmp esi, 2
cmovae edi, esi
jb 0x40f1f4
mov edx, edi
and edx, 0xfffffffe
mov ebp, edx
xor edx, edx
mov esi, 0x14
nop
movsd xmm0, qword [ecx + esi - 0x14]
movsd qword [eax + esi - 8], xmm0
movzx ebx, byte [ecx + esi - 0xc]
mov byte [eax + esi], bl
add edx, 2
movsd xmm0, qword [ecx + esi - 8]
movsd qword [eax + esi + 4], xmm0
movzx ebx, byte [ecx + esi]
mov byte [eax + esi + 0xc], bl
add esi, 0x18
mov ebx, ebp
cmp ebp, edx
jne 0x40f1c0
mov ebx, edi
test bl, 1
je 0x40f215
shl edx, 2
lea edx, [edx + edx*2]
movsd xmm0, qword [ecx + edx]
movsd qword [eax + edx + 0xc], xmm0
movzx ecx, byte [ecx + edx + 8]
mov byte [eax + edx + 0x14], cl
mov bl, 1
mov eax, dword [esp + 0x84]
test eax, eax
jne 0x40f0db
jmp 0x40f0eb
call fcn.00407d00
call fcn.00407d10
lea ecx, [esp + 0x30]
call fcn.00407cf0
lea ecx, [esp + 0x3c]
call fcn.00408320
nop
sub ch, ch
inc eax
add byte [eax], dh
inc eax
add byte [eax], dh
inc eax
add byte [eax], dh
inc eax
add byte [eax], dh
inc eax
add bl, dl
in al, dx
inc eax
add bl, dl
in al, dx
inc eax
add byte [ecx - 0x4fffbf13], cl
in eax, dx
inc eax
add bl, dl
in al, dx
inc eax
add byte [ebp + 0x53], dl
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, ecx
mov eax, dword [ecx + 0x10]
cmp eax, 0x4e
jb 0x40f2e6
add eax, 0xffffffb2
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 4]
mov esi, dword [ebx + 8]
mov ebp, dword [eax]
add eax, 4
mov dword [ebx + 4], eax
cmp esi, dword [ebx + 0xc]
jne 0x40f550
mov dword [esp + 8], ebx
mov ecx, dword [ebx]
mov edx, eax
sub edx, ecx
jbe 0x40f387
sar edx, 2
lea ecx, [edx + 1]
shr ecx, 0x1f
add ecx, edx
inc ecx
sar ecx, 1
mov edi, ecx
neg edi
shl ecx, 2
mov ebx, eax
sub ebx, ecx
sub esi, eax
je 0x40f53f
push esi
push eax
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
add esp, 0xc
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 4]
jmp 0x40f543
mov edi, dword [ebx + 8]
mov eax, dword [ebx]
mov ebp, dword [ebx + 4]
mov esi, edi
sub esi, ebp
mov edx, dword [ebx + 0xc]
mov ecx, edx
sub ecx, eax
cmp esi, ecx
jae 0x40f327
cmp edx, edi
je 0x40f444
push 0xfd8
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call fcn.0040f840
jmp 0x40f556
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
sar ecx, 1
cmp edx, eax
mov ebx, 1
cmovne ebx, ecx
cmp ebx, 0x40000000
jae 0x40f830
lea ebp, [ebx*4]
push ebp
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov edi, eax
add eax, esi
mov dword [esp], eax
push 0xfd8
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
cmp esi, ebp
je 0x40f524
mov ebp, dword [esp]
lea ecx, [edi + ebx*4]
mov dword [esp], ecx
mov ecx, edi
jmp 0x40f5b1
mov eax, esi
sub eax, ecx
sar eax, 1
cmp esi, ecx
mov ebx, 1
cmovne ebx, eax
cmp ebx, 0x40000000
jae 0x40f830
lea eax, [ebx*4]
push eax
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov edx, ebx
and edx, 0xfffffffc
add edx, eax
lea ecx, [eax + ebx*4]
mov dword [esp], ecx
mov ecx, dword [esp + 8]
mov edi, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov esi, edx
sub ecx, edi
je 0x40f417
lea esi, [ecx + edx]
add ecx, 0xfffffffc
cmp ecx, 0x3c
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], edx
jb 0x40f3fc
mov dword [esp + 4], ecx
mov ecx, ebx
and ecx, 0x3ffffffc
add ecx, eax
sub ecx, edi
cmp ecx, 0x20
jae 0x40f779
mov ecx, edx
mov ebp, edi
mov edx, dword [ebp]
mov dword [ecx], edx
add ecx, 4
add ebp, 4
cmp ecx, esi
jne 0x40f400
mov ebp, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 8]
mov ecx, dword [ebx]
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov eax, dword [esp]
mov dword [ebx + 0xc], eax
test ecx, ecx
je 0x40f550
push ecx
call sub.libc.dll_operator_delete_void_
add esp, 4
mov esi, dword [ebx + 8]
jmp 0x40f550
push 0xfd8
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
call fcn.0040f9d0
mov eax, dword [ebx + 4]
mov esi, dword [ebx + 8]
mov ebp, dword [eax]
add eax, 4
mov dword [ebx + 4], eax
cmp esi, dword [ebx + 0xc]
jne 0x40f550
mov dword [esp + 8], ebx
mov ecx, dword [ebx]
mov edx, eax
sub edx, ecx
ja 0x40f2ae
mov eax, esi
sub eax, ecx
sar eax, 1
cmp esi, ecx
mov ebx, 1
cmovne ebx, eax
cmp ebx, 0x40000000
jae 0x40f830
lea eax, [ebx*4]
push eax
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov edx, ebx
and edx, 0xfffffffc
add edx, eax
lea ecx, [eax + ebx*4]
mov dword [esp], ecx
mov ecx, dword [esp + 8]
mov edi, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov esi, edx
sub ecx, edi
je 0x40f417
lea esi, [ecx + edx]
add ecx, 0xfffffffc
cmp ecx, 0x3c
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], edx
jb 0x40f501
mov dword [esp + 4], ecx
mov ecx, ebx
and ecx, 0x3ffffffc
add ecx, eax
sub ecx, edi
cmp ecx, 0x20
jae 0x40f7dc
mov ecx, edx
mov ebp, edi
nop word cs:[eax + eax]
mov edx, dword [ebp]
mov dword [ecx], edx
add ecx, 4
add ebp, 4
cmp ecx, esi
jne 0x40f510
jmp 0x40f40f
mov dword [esp + 4], edi
test esi, esi
jle 0x40f55e
shr esi, 1
add esi, 2
and esi, 0xfffffffc
mov ebp, dword [esp]
sub ebp, esi
mov ecx, dword [esp + 4]
jmp 0x40f5b1
mov ecx, dword [esp + 8]
add esi, ebx
mov dword [ecx + 8], esi
lea eax, [eax + edi*4]
mov dword [ecx + 4], eax
mov ebx, ecx
mov dword [esi], ebp
add dword [ebx + 8], 4
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x14], eax
sar esi, 1
mov eax, dword [esp + 0x10]
cmp dword [esp + 0xc], eax
mov edi, 1
cmovne edi, esi
cmp edi, 0x40000000
jae 0x40f830
lea eax, [edi*4]
push eax
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
mov ebp, edi
and ebp, 0xfffffffc
add ebp, eax
lea eax, [eax + edi*4]
mov dword [esp], eax
push dword [esp + 4]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, ebx
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
lea esi, [ebp + 4]
mov eax, dword [esp + 8]
mov edx, dword [eax + 8]
cmp edx, dword [eax + 4]
jne 0x40f61c
mov edi, ebp
mov ebx, esi
mov edx, dword [esp + 8]
mov eax, dword [edx]
mov dword [edx], ecx
mov dword [edx + 4], edi
mov dword [edx + 8], ebx
mov ecx, dword [esp]
mov dword [edx + 0xc], ecx
test eax, eax
je 0x40f556
push eax
call sub.libc.dll_operator_delete_void_
add esp, 0x24
jmp 0x40f559
mov edi, ebp
mov ebx, esi
add edx, 0xfffffffc
mov eax, dword [edx]
mov dword [edi - 4], eax
add edi, 0xfffffffc
mov esi, ebx
mov ebp, edi
mov eax, dword [esp + 8]
cmp edx, dword [eax + 4]
je 0x40f5c7
cmp ebp, ecx
jne 0x40f600
mov eax, dword [esp]
cmp esi, eax
jae 0x40f65e
sub eax, esi
sar eax, 2
lea ecx, [eax + 1]
shr ecx, 0x1f
add eax, ecx
inc eax
and eax, 0xfffffffe
lea edi, [esi + eax*2]
mov eax, esi
sub eax, ebp
mov ebx, edi
sub edi, eax
sub esi, ebp
je 0x40f772
push esi
push ebp
push edi
mov esi, edx
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
mov edx, esi
add esp, 0xc
mov ecx, ebp
jmp 0x40f604
mov dword [esp + 0x10], edx
mov ebx, eax
sub ebx, ebp
sar ebx, 1
cmp eax, ebp
mov eax, 1
cmove ebx, eax
cmp ebx, 0x40000000
jae 0x40f830
lea edi, [ebx + 3]
lea eax, [ebx*4]
push eax
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov dword [esp], edi
and edi, 0xfffffffc
add edi, eax
mov dword [esp + 0xc], edi
sub esi, ebp
je 0x40f752
mov dword [esp + 4], eax
lea eax, [esi + edi]
mov dword [esp + 0xc], eax
add esi, 0xfffffffc
mov eax, edi
mov ecx, ebp
cmp esi, 0x1c
jb 0x40f734
mov edx, dword [esp]
and edx, 0x7ffffffc
add edx, dword [esp + 4]
sub edx, ebp
mov eax, edi
mov ecx, ebp
cmp edx, 0x20
jb 0x40f734
mov dword [esp + 0x14], ebx
mov ebx, dword [esp]
shr ebx, 2
shr esi, 2
inc esi
mov ecx, esi
and ecx, 0xfffffff8
lea eax, [edi + ecx*4]
mov dword [esp], ecx
lea ecx, [ecx*4]
add ecx, ebp
mov edx, dword [esp + 4]
lea edx, [edx + ebx*4]
add edx, 0x10
xor ebx, ebx
nop word cs:[eax + eax]
movups xmm0, xmmword [ebp + ebx*4]
movups xmm1, xmmword [ebp + ebx*4 + 0x10]
movups xmmword [edx + ebx*4 - 0x10], xmm0
movups xmmword [edx + ebx*4], xmm1
add ebx, 8
cmp dword [esp], ebx
jne 0x40f710
cmp esi, dword [esp]
mov ebx, dword [esp + 0x14]
je 0x40f74e
mov esi, dword [esp + 0xc]
nop dword [eax + eax]
mov edx, dword [ecx]
mov dword [eax], edx
add eax, 4
add ecx, 4
cmp eax, esi
jne 0x40f740
mov eax, dword [esp + 4]
lea ecx, [eax + ebx*4]
mov dword [esp], ecx
push ebp
mov esi, eax
call sub.libc.dll_operator_delete_void_
mov ecx, esi
add esp, 4
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
jmp 0x40f604
mov ecx, ebp
jmp 0x40f604
shr ebx, 2
mov ebp, dword [esp + 4]
shr ebp, 2
inc ebp
mov ecx, edx
mov dword [esp + 4], ebp
mov edx, ebp
and edx, 0xfffffff8
lea ecx, [ecx + edx*4]
lea ebp, [edi + edx*4]
mov dword [esp + 0x14], eax
lea ebx, [eax + ebx*4]
add ebx, 0x10
xor eax, eax
nop word cs:[eax + eax]
movups xmm0, xmmword [edi + eax*4]
movups xmm1, xmmword [edi + eax*4 + 0x10]
movups xmmword [ebx + eax*4 - 0x10], xmm0
movups xmmword [ebx + eax*4], xmm1
add eax, 8
cmp edx, eax
jne 0x40f7b0
cmp dword [esp + 4], edx
mov eax, dword [esp + 0x14]
jne 0x40f400
jmp 0x40f40f
shr ebx, 2
mov ebp, dword [esp + 4]
shr ebp, 2
inc ebp
mov ecx, edx
mov dword [esp + 4], ebp
mov edx, ebp
and edx, 0xfffffff8
lea ecx, [ecx + edx*4]
lea ebp, [edi + edx*4]
mov dword [esp + 0x14], eax
lea ebx, [eax + ebx*4]
add ebx, 0x10
xor eax, eax
movups xmm0, xmmword [edi + eax*4]
movups xmm1, xmmword [edi + eax*4 + 0x10]
movups xmmword [ebx + eax*4 - 0x10], xmm0
movups xmmword [ebx + eax*4], xmm1
add eax, 8
cmp edx, eax
jne 0x40f804
cmp dword [esp + 4], edx
mov eax, dword [esp + 0x14]
jne 0x40f510
jmp 0x40f40f
call fcn.00402e50
int3