Function at 0x40e5c0
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42dc5b
mov eax, dword fs:[0]
push eax
sub esp, 0x2fc
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2b0], edx
mov edi, ecx
mov dword [ebp - 0x2d8], edi
mov dword [ebp - 0x200], edi
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x278]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2d4], eax
xor eax, eax
push eax
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x2d0], edi
push 0x4354f8
mov dword [ebp - 0x2d0], esi
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
call fcn.0040c560
lea eax, [ebp - 0x200]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.SensApi.dll_IsNetworkAlive]
test eax, eax
jne 0x40e70a
cmp dword [ebp - 0x264], 8
lea edx, [ebp - 0x278]
mov dword [edi], eax
cmovae edx, dword [ebp - 0x278]
mov ecx, edx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e695
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.0040c560
mov edx, dword [ebp - 0x264]
cmp edx, 8
jb 0x40e6ed
mov ecx, dword [ebp - 0x278]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e6e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5bc
push edx
push ecx
call fcn.00417807
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004177f9
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1fc]
push eax
push 0xf6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40f534
cmp eax, 0xf6
ja 0x40f534
mov ecx, esi
mov dword [ebp - 0x2cc], 0
xor eax, eax
mov dword [ebp - 0x2bc], 0
mov dword [ebp - 0x2b8], 7
mov word [ebp - 0x2cc], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e760
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2cc]
call fcn.0040c560
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1fc]
xor eax, eax
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x220], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e7b0
sub ecx, edx
lea eax, [ebp - 0x1fc]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0040c560
lea eax, [ebp - 0x2cc]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x2d0]
lea ecx, [ebp - 0x260]
call fcn.0040b4a0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x40e839
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e82f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5bc
push edx
push ecx
call fcn.00417807
add esp, 8
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x2b8]
cmp edx, 8
jb 0x40e87d
mov ecx, dword [ebp - 0x2cc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e873
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5bc
push edx
push ecx
call fcn.00417807
add esp, 8
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e8b7
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x24c], 8
lea esi, [ebp - 0x260]
mov dword [ebp - 0x230], 0
lea ecx, [ebp - 0x230]
cmovae esi, dword [ebp - 0x260]
xor eax, eax
push eax
push 0x4354f8
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.0040c560
mov byte [ebp - 4], 6
cmp esi, 0x4354f8
je 0x40e9a4
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x2b0]
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x2ac], eax
lea eax, [ecx + 2]
mov dword [edx], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov dword [ebp - 0x2b4], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e960
sub ecx, dword [ebp - 0x2b4]
sar ecx, 1
push ecx
push dword [ebp - 0x2b0]
mov ecx, edx
call fcn.0040c560
mov ecx, dword [ebp - 0x2ac]
lea edx, [ebp - 0x230]
call fcn.0040da70
add esp, 0x18
test eax, eax
js 0x40e99d
xor esi, esi
jmp 0x40e9a9
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 0x80004005
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x40e9ed
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e9e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5c1
push edx
push ecx
call fcn.00417807
add esp, 8
test esi, esi
js 0x40f4e8
cmp dword [ebp - 0x24c], 8
lea ecx, [ebp - 0x2ac]
push 0
push ecx
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x2ac], 0
push ecx
push 0
push 0
push 0
push 0
push 0xe
lea eax, [ebp - 0x260]
mov dword [ebp - 0x2b0], 0
cmovae eax, dword [ebp - 0x260]
mov esi, 0x80004005
push 0x400
push eax
push 1
mov dword [ebp - 0x200], eax
call dword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
je 0x40eada
mov eax, dword [ebp - 0x2ac]
test eax, eax
je 0x40eac3
cmp dword [ebp - 0x2b0], 0
je 0x40eab8
push 0
lea ecx, [ebp - 0x2b4]
push ecx
push 2
push 0
push 0
push eax
call dword [sym.imp.CRYPT32.dll_CryptMsgGetAndVerifySigner]
test eax, eax
je 0x40eab2
push dword [ebp - 0x2ac]
mov edx, dword [ebp - 0x2b0]
mov ecx, dword [ebp - 0x2b4]
call fcn.004172a0
add esp, 4
xor ecx, ecx
test eax, eax
cmovne esi, ecx
push dword [ebp - 0x2b4]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, dword [ebp - 0x2ac]
test eax, eax
je 0x40eac3
push eax
call dword [sym.imp.CRYPT32.dll_CryptMsgClose]
mov eax, dword [ebp - 0x2b0]
test eax, eax
je 0x40ead6
push 0
push eax
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
test esi, esi
je 0x40eae8
push dword [ebp - 0x200]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
js 0x40f4e8
mov esi, dword [ebp - 0x2d4]
cmp esi, 0x4354f8
je 0x40f4c2
mov ecx, esi
mov dword [ebp - 0x248], 0
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40eb30
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x248]
call fcn.0040c560
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
mov eax, dword [ebp - 0x238]
cmovae ecx, dword [ebp - 0x248]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x248]
cmovae ecx, dword [ebp - 0x248]
cmp eax, ecx
je 0x40eca8
cmp word [eax - 2], 0x5c
je 0x40eca8
push 1
xor eax, eax
mov dword [ebp - 0x2cc], 0
push 0x434f10
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 0x2bc], 0
mov dword [ebp - 0x2b8], 7
mov word [ebp - 0x2cc], ax
call fcn.0040c560
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2cc]
cmp dword [ebp - 0x2b8], 8
mov esi, dword [ebp - 0x238]
cmovae ecx, dword [ebp - 0x2cc]
mov eax, dword [ebp - 0x234]
mov edx, dword [ebp - 0x2bc]
sub eax, esi
mov dword [ebp - 0x200], ecx
mov dword [ebp - 0x2d4], esi
cmp edx, eax
ja 0x40ec49
cmp dword [ebp - 0x234], 8
lea edi, [edx + esi]
mov eax, dword [ebp - 0x2d4]
lea esi, [ebp - 0x248]
cmovae esi, dword [ebp - 0x248]
mov dword [ebp - 0x238], edi
lea ecx, [esi + eax*2]
lea eax, [edx + edx]
push eax
push dword [ebp - 0x200]
push ecx
call fcn.00419040
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov edi, dword [ebp - 0x2d8]
jmp 0x40ec64
push edx
push ecx
mov byte [ebp - 0x2d8], 0
lea ecx, [ebp - 0x248]
push dword [ebp - 0x2d8]
push edx
call fcn.0040b310
mov ecx, dword [ebp - 0x2cc]
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x2b8]
cmp eax, 8
jb 0x40eca8
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ec9e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5d0
push edx
push ecx
call fcn.00417807
add esp, 8
mov esi, dword [ebp - 0x2d0]
xor eax, eax
mov ecx, esi
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2bc], 0
mov dword [ebp - 0x2b8], 7
mov word [ebp - 0x2cc], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ece0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2cc]
call fcn.0040c560
mov byte [ebp - 4], 9
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
push dword [ebp - 0x238]
cmovae eax, dword [ebp - 0x248]
push eax
push ecx
lea ecx, [ebp - 0x2cc]
call fcn.0040b7c0
mov dword [ebp - 0x218], 0
xor ecx, ecx
mov dword [ebp - 0x208], 0
mov dword [ebp - 0x204], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x218], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x208], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x2b8]
cmp edx, 8
jb 0x40edb3
mov ecx, dword [ebp - 0x2cc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40eda9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5c6
push edx
push ecx
call fcn.00417807
add esp, 8
xor eax, eax
mov dword [ebp - 0x2bc], 0
mov ecx, esi
mov dword [ebp - 0x2f0], eax
mov dword [ebp - 0x2b8], 7
mov word [ebp - 0x2cc], ax
mov dword [ebp - 0x2e0], eax
mov dword [ebp - 0x2dc], 7
lea edx, [ecx + 2]
mov word [ebp - 0x2f0], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40edf2
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2f0]
call fcn.0040c560
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x230]
push 7
xor eax, eax
mov dword [ebp - 0x230], 0
push str.Backup_
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.0040c560
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 8
push dword [ebp - 0x238]
cmovae eax, dword [ebp - 0x248]
push eax
push ecx
lea ecx, [ebp - 0x230]
call fcn.0040b7c0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2cc], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x2bc], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x2f0]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x2cc]
push eax
push dword [ebp - 0x2d0]
lea ecx, [ebp - 0x290]
call fcn.0040b4a0
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x2b8]
cmp edx, 8
jb 0x40ef07
mov ecx, dword [ebp - 0x2cc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40eefd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5cb
push edx
push ecx
call fcn.00417807
add esp, 8
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x40ef4b
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ef41
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5cb
push edx
push ecx
call fcn.00417807
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x2dc]
cmp edx, 8
jb 0x40efac
mov ecx, dword [ebp - 0x2f0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40efa2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5cb
push edx
push ecx
call fcn.00417807
add esp, 8
mov ecx, esi
mov dword [ebp - 0x2cc], 0
xor eax, eax
mov dword [ebp - 0x2bc], 0
mov dword [ebp - 0x2b8], 7
mov word [ebp - 0x2cc], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40efe0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2cc]
call fcn.0040c560
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x230]
push 7
xor eax, eax
mov dword [ebp - 0x230], 0
push str.Backup_
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.0040c560
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x1fc]
xor eax, eax
mov dword [ebp - 0x2f0], 0
mov dword [ebp - 0x2e0], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x2dc], 7
mov word [ebp - 0x2f0], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f070
sub ecx, edx
lea eax, [ebp - 0x1fc]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2f0]
call fcn.0040c560
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x15
push eax
lea eax, [ebp - 0x2f0]
push eax
push dword [ebp - 0x2d0]
lea ecx, [ebp - 0x308]
call fcn.0040b4a0
lea eax, [ebp - 0x2cc]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x308]
push eax
push dword [ebp - 0x2d0]
lea ecx, [ebp - 0x2a8]
call fcn.0040b4a0
mov byte [ebp - 4], 0x18
mov edx, dword [ebp - 0x2f4]
cmp edx, 8
jb 0x40f11c
mov ecx, dword [ebp - 0x308]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f112
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5d0
push edx
push ecx
call fcn.00417807
add esp, 8
mov byte [ebp - 4], 0x19
mov edx, dword [ebp - 0x2dc]
cmp edx, 8
jb 0x40f160
mov ecx, dword [ebp - 0x2f0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f156
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5d0
push edx
push ecx
call fcn.00417807
add esp, 8
mov byte [ebp - 4], 0x1a
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x40f1a4
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f19a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5d0
push edx
push ecx
call fcn.00417807
add esp, 8
mov byte [ebp - 4], 0x1b
mov edx, dword [ebp - 0x2b8]
cmp edx, 8
jb 0x40f1e8
mov ecx, dword [ebp - 0x2cc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f1de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5d0
push edx
push ecx
call fcn.00417807
add esp, 8
cmp dword [ebp - 0x204], 8
lea eax, [ebp - 0x218]
cmovae eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0
test eax, eax
je 0x40f30f
cmp dword [ebp - 0x27c], 8
lea ecx, [ebp - 0x290]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x218]
cmovae ecx, dword [ebp - 0x290]
cmp dword [ebp - 0x204], 8
push ecx
cmovae eax, dword [ebp - 0x218]
push eax
call esi
test eax, eax
je 0x40f369
cmp dword [ebp - 0x204], 8
lea eax, [ebp - 0x218]
cmovae eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40f2f2
cmp dword [ebp - 0x204], 8
lea ecx, [ebp - 0x218]
push 0
cmovae ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x24c], 8
push ecx
cmovae eax, dword [ebp - 0x260]
push eax
call esi
test eax, eax
jne 0x40f2cc
cmp dword [ebp - 0x204], 8
lea ecx, [ebp - 0x218]
push 0
cmovae ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x290]
cmp dword [ebp - 0x27c], 8
push ecx
cmovae eax, dword [ebp - 0x290]
push eax
call esi
jmp 0x40f2f2
cmp dword [ebp - 0x204], 8
lea eax, [ebp - 0x218]
push dword [ebp - 0x208]
cmovae eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x278]
push eax
call fcn.0040c560
cmp dword [ebp - 0x27c], 8
lea eax, [ebp - 0x290]
cmovae eax, dword [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40f369
cmp dword [ebp - 0x204], 8
lea ecx, [ebp - 0x218]
lea eax, [ebp - 0x260]
cmovae ecx, dword [ebp - 0x218]
cmp dword [ebp - 0x24c], 8
push ecx
cmovae eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40f369
cmp dword [ebp - 0x204], 8
lea eax, [ebp - 0x218]
push dword [ebp - 0x208]
cmovae eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x278]
push eax
call fcn.0040c560
mov edx, dword [ebp - 0x294]
cmp edx, 8
jb 0x40f3a9
mov ecx, dword [ebp - 0x2a8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f39f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5d0
push edx
push ecx
call fcn.00417807
add esp, 8
mov edx, dword [ebp - 0x27c]
xor eax, eax
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 7
mov word [ebp - 0x2a8], ax
cmp edx, 8
jb 0x40f406
mov ecx, dword [ebp - 0x290]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f3fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5d0
push edx
push ecx
call fcn.00417807
add esp, 8
mov edx, dword [ebp - 0x204]
xor eax, eax
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
cmp edx, 8
jb 0x40f463
mov ecx, dword [ebp - 0x218]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f459
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5d0
push edx
push ecx
call fcn.00417807
add esp, 8
mov edx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x208], 0
mov dword [ebp - 0x204], 7
mov word [ebp - 0x218], ax
cmp edx, 8
jb 0x40f4e8
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f4b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5d0
push edx
push ecx
call fcn.00417807
add esp, 8
jmp 0x40f4e8
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
push dword [ebp - 0x250]
cmovae eax, dword [ebp - 0x260]
lea ecx, [ebp - 0x278]
push eax
call fcn.0040c560
movups xmm0, xmmword [ebp - 0x278]
mov edx, dword [ebp - 0x24c]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x268]
movq qword [edi + 0x10], xmm0
cmp edx, 8
jb 0x40e6ed
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
jmp 0x40e6c5
cmp dword [ebp - 0x264], 8
lea edx, [ebp - 0x278]
mov dword [edi], 0
cmovae edx, dword [ebp - 0x278]
xor eax, eax
mov ecx, edx
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f566
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.0040c560
mov edx, dword [ebp - 0x264]
cmp edx, 8
jb 0x40e6ed
mov ecx, dword [ebp - 0x278]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e6e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40e6e3
call fcn.0041af8c
call fcn.0041af8c
call fcn.0041af8c
call fcn.0041af8c
call fcn.0041af8c
int3