Function at 0x40c8a0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x630f42
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x6ce488]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x48], esi
mov eax, dword [esi + 0x5bc]
cmp dword [eax - 0xc], 0
je 0x40c8e5
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi + 0x59c]
lea edx, [ebp - 0xd4]
mov dword [ebp - 0x14], 0
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
call eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push dword [eax]
call fcn.004178d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd0]
mov eax, dword [ebp - 0xd4]
cmp eax, ecx
je 0x40c92e
push eax
call fcn.006140b6
add esp, 4
mov esi, dword [ebp - 0x14]
xor edi, edi
cmp word [esi], di
je 0x40c9b8
movzx ecx, word [esi]
nop
movzx eax, cx
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
call fcn.0061410a
add esp, 4
test eax, eax
je 0x40c962
cmp dword [ebp - 0x1c], 0
mov edi, esi
cmovne edi, dword [ebp - 0x18]
jmp 0x40c964
xor edi, edi
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x40c940
test edi, edi
je 0x40c9b5
mov eax, dword [ebp - 0x14]
sub edi, eax
sar edi, 1
js 0x40d119
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x40c9a0
push edi
lea ecx, [ebp - 0x14]
call fcn.00401d50
mov eax, dword [ebp - 0x14]
cmp edi, dword [eax - 8]
jg 0x40d119
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov word [eax + edi*2], cx
mov esi, dword [ebp - 0x14]
movzx eax, word [esi]
push eax
call fcn.0061410a
add esp, 4
test eax, eax
je 0x40c9dc
movzx eax, word [esi + 2]
add esi, 2
push eax
call fcn.0061410a
add esp, 4
test eax, eax
jne 0x40c9c8
mov eax, dword [ebp - 0x14]
cmp esi, eax
je 0x40caa2
mov edi, dword [eax - 0xc]
sub esi, eax
sar esi, 1
test edi, edi
js 0x40d123
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x40ca13
push edi
lea ecx, [ebp - 0x14]
call fcn.00401d50
mov eax, dword [ebp - 0x14]
mov edi, dword [eax - 0xc]
lea ecx, [eax + esi*2]
sub edi, esi
lea edx, [edi*2 + 2]
test edx, edx
je 0x40ca74
test ecx, ecx
jne 0x40ca41
call fcn.00607092
mov dword [eax], 0x16
call fcn.00606fb9
mov eax, 0x16
jmp 0x40ca76
mov ecx, dword [eax - 0xc]
lea ecx, [ecx*2 + 2]
cmp ecx, edx
jae 0x40ca66
call fcn.00607092
mov dword [eax], 0x22
call fcn.00606fb9
mov eax, 0x22
jmp 0x40ca76
push edx
lea ecx, [eax + esi*2]
push ecx
push eax
call fcn.005fe5c0
add esp, 0xc
xor eax, eax
push eax
call fcn.00417760
add esp, 4
test edi, edi
js 0x40d119
mov eax, dword [ebp - 0x14]
cmp edi, dword [eax - 8]
jg 0x40d119
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov word [eax + edi*2], cx
mov eax, dword [ebp - 0x14]
mov esi, dword [eax - 0xc]
or edi, 0xffffffff
test esi, esi
jne 0x40caca
mov eax, dword [ebp - 0x48]
mov edx, 0x6a09e0
push esi
push 0x69ffd8
mov ecx, dword [eax + 4]
call fcn.00417de0
add esp, 8
jmp 0x40cde7
cmp esi, 1
jg 0x40cae0
add eax, 0xfffffff0
push eax
call fcn.00401b80
add esp, 4
add eax, 0x10
jmp 0x40cb18
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x40caf2
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test eax, eax
jne 0x40cb00
call fcn.004021b0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
push eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push 1
lea eax, [eax + esi*2]
add eax, 0xfffffffe
push eax
call fcn.00416690
mov eax, dword [ebp - 0x1c]
mov edx, 0x6a2f8c
mov ecx, eax
nop
mov si, word [ecx]
cmp si, word [edx]
jne 0x40cb46
test si, si
je 0x40cb42
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x40cb46
add ecx, 4
add edx, 4
test si, si
jne 0x40cb20
xor esi, esi
jmp 0x40cb4b
sbb esi, esi
or esi, 1
lea edx, [eax - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cb62
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x40cbf4
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00411ed0
mov byte [ebp - 4], 3
mov ecx, dword [eax]
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x40cbd6
cmp dword [esi + 0xc], 0
jl 0x40cbca
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x40cbca
push edx
call fcn.00401b80
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, edi
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cbc2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov dword [ebp - 0x14], eax
jmp 0x40cbd6
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00401e40
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cbf4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0
cmp dword [eax - 0xc], 1
jg 0x40cc18
add eax, 0xfffffff0
push eax
call fcn.00401b80
add esp, 4
add eax, 0x10
mov dword [ebp - 0x20], eax
jmp 0x40cc46
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x40cc2a
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test eax, eax
jne 0x40cc38
call fcn.004021b0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
push eax
push 1
push dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
call fcn.00416690
push 2
push 0x6a09f8
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.00417970
call fcn.004021b0
mov ecx, eax
test ecx, ecx
je 0x40d12d
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x20]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ccb5
push esi
lea eax, [ebp - 0x1c]
push 0x6a0a00
push eax
call fcn.00402970
mov eax, dword [ebp - 0x48]
mov edi, dword [ebp - 0x1c]
mov edx, edi
push 0
push 0x69ffd8
mov ecx, dword [eax + 4]
call fcn.00417de0
add esp, 0x14
jmp 0x40cdae
mov ecx, dword [ebp - 0x14]
call fcn.00482250
test al, al
jne 0x40cce0
mov eax, dword [ebp - 0x48]
mov edx, str._T_tg
push 0
push 0x69ffd8
mov ecx, dword [eax + 4]
call fcn.00417de0
add esp, 8
jmp 0x40cdae
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ce21
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40ce21
mov eax, dword [ebp - 0x48]
mov edx, 0x6a0a28
push 1
push 0x69ffd8
mov ecx, dword [eax + 4]
call fcn.00417de0
add esp, 8
cmp eax, 1
jne 0x40cdae
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40ce21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x14]
mov esi, eax
add ecx, 0xfffffff0
push ecx
call fcn.00401b80
add eax, 0x10
add esp, 4
mov dword [ebp - 0x18], eax
push 4
push 0x6a0a6c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00417970
push esi
lea eax, [ebp - 0x18]
push 0x6a0a78
push eax
call fcn.00416c60
mov eax, dword [ebp - 0x48]
mov esi, dword [ebp - 0x18]
mov edx, esi
push 0
push 0x69ffd8
mov ecx, dword [eax + 4]
call fcn.00417de0
add esp, 0x14
mov byte [ebp - 4], 5
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40cdab
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x20]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 4
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cdcc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40cde7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x40ce06
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.005c358e
mov esp, ebp
pop ebp
ret
push 1
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00411f40
mov ecx, 0x6a2f8c
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40ce61
test dx, dx
je 0x40ce58
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40ce61
add eax, 4
add ecx, 4
test dx, dx
jne 0x40ce36
mov dword [ebp - 0x18], 0
jmp 0x40ce69
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x4c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ce84
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x18], 0
je 0x40ce99
push 1
push 0x6a2f8c
lea ecx, [ebp - 0x14]
call fcn.00417970
mov eax, dword [ebp - 0x48]
add eax, 0x5b0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40ceaf
xor edx, edx
jmp 0x40cec7
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x4c], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40ceb7
sub edx, dword [ebp - 0x4c]
sar edx, 1
mov ecx, dword [ebp - 0x18]
push edx
push eax
call fcn.00401e40
mov eax, dword [ebp - 0x48]
push 1
push 1
mov ecx, dword [eax + 0x570]
mov eax, dword [ecx]
call dword [eax + 0x1e8]
mov ecx, dword [ebp - 0x48]
push 8
mov al, byte [ecx + 0x5c6]
mov byte [ecx + 0x5c7], al
call fcn.005c3873
mov dword [ebp - 0x18], eax
push 0x10
mov byte [ebp - 4], 7
call fcn.005c3873
mov ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ecx], eax
mov dword [ecx + 8], fcn.00408d50
mov dword [ecx + 0xc], 0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 8
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
push eax
movups xmmword [ebp - 0x3c], xmm0
call fcn.005c0d63
add esp, 0xc
test eax, eax
je 0x40cf50
push eax
call fcn.005c0918
add esp, 4
mov eax, dword [ebp - 0x38]
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov byte [ebp - 0x28], 1
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 9
push 1
push eax
call fcn.005c10d7
add esp, 8
test eax, eax
je 0x40cf81
push eax
call fcn.005c0918
add esp, 4
mov eax, dword [ebp - 0x34]
xorps xmm0, xmm0
movlpd qword [ebp - 0x44], xmm0
mov byte [ebp - 0x44], 1
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 0xa
push eax
mov byte [ebp - 0x30], 0
call fcn.005c112a
add esp, 4
test eax, eax
je 0x40cfb1
push eax
call fcn.005c0918
add esp, 4
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x3c], 0x6a0df0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0xb
push eax
push 0x416400
push dword [ebp - 0x18]
call fcn.005c0a2c
add esp, 0xc
mov ecx, 1
cmp eax, 4
cmovne ecx, eax
test ecx, ecx
je 0x40cff5
push ecx
call fcn.005c0918
add esp, 4
cmp byte [ebp - 0x30], 0
jne 0x40d021
nop dword [eax + eax]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.005c0db5
add esp, 8
test eax, eax
je 0x40d01b
push eax
call fcn.005c0918
add esp, 4
cmp byte [ebp - 0x30], 0
je 0x40d000
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40d033
push 0x10
push eax
call fcn.005c385c
add esp, 8
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x34]
push eax
mov dword [ebp - 0x50], eax
call fcn.005c114f
add esp, 4
test eax, eax
je 0x40d059
push eax
call fcn.005c0918
add esp, 4
push dword [ebp - 0x50]
call fcn.005c1093
push dword [ebp - 0x24]
call fcn.005c0d2c
add esp, 8
mov byte [ebp - 4], 5
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push dword [ebp - 0x24]
push dword [ebp - 0x18]
call fcn.00414550
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x28]
mov dword [ecx + 0x5a4], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ecx + 0x5a8]
mov dword [ebp - 0x24], ecx
mov dword [edx + 0x5a8], eax
mov byte [ebp - 4], 0xd
test ecx, ecx
je 0x40d0d5
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x40d0d5
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x24]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x40d0d5
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x48]
push 0
push 0x64
push 0x3e8
mov byte [ebp - 4], 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [ebp - 0x48]
push 0
mov ecx, dword [eax + 0x580]
mov eax, dword [ecx]
call dword [eax + 0xe0]
mov eax, dword [ebp - 0x48]
push 0
mov ecx, dword [eax + 0x57c]
mov eax, dword [ecx]
call dword [eax + 0xe0]
jmp 0x40cdae
push 0x80070057
call fcn.00401f90
push 0x80070057
call fcn.00401f90
push 0x80004005
call fcn.00401f90
int3