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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fc9c
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x43d910]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x10c], ebx
lea esi, [ebx + 0x18]
push esi
mov dword [ebp - 0x118], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [ebx + 4]
lea ecx, [ebx + 4]
push dword [eax + 4]
call fcn.0040bfe0
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x2c]
mov dword [eax + 4], eax
mov eax, dword [ebx + 4]
mov dword [eax], eax
mov eax, dword [ebx + 4]
mov dword [eax + 8], eax
mov dword [ebx + 8], 0
call fcn.0040e340
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40eb5c
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
mov dword [ebp - 0xa4], 0xf
mov dword [ebp - 0xa8], 0
mov byte [ebp - 0xb8], 0
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], 0
mov byte [ebp - 0xa0], 0
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 6
call fcn.00406b20
push 4
mov byte [ebp - 4], 7
call fcn.004131d1
mov edi, eax
add esp, 4
test edi, edi
je 0x40e7b3
mov dword [edi], 0
jmp 0x40e7b5
xor edi, edi
push 0
mov dword [ebp - 0x11c], edi
call fcn.00412d34
add esp, 4
mov byte [ebp - 4], 8
cmp dword [ebp - 0x18], 8
push 0x40
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
push 0x4384f4
push ecx
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x124], edx
call fcn.00416068
add esp, 0xc
mov dword [edi], eax
xor ebx, ebx
push dword [edi]
call fcn.00416042
add esp, 4
test eax, eax
jne 0x40ea64
lea eax, [ebp - 0x5c]
push eax
mov ecx, edi
call fcn.0040e160
test al, al
je 0x40ea64
lea eax, [ebp - 0x74]
push eax
mov ecx, edi
call fcn.0040e160
test al, al
je 0x40ea64
lea eax, [ebp - 0xb8]
push eax
mov ecx, edi
call fcn.0040e160
test al, al
je 0x40ea64
lea eax, [ebp - 0xa0]
push eax
mov ecx, edi
call fcn.0040e160
test al, al
je 0x40ea64
lea eax, [ebp - 0x44]
push eax
mov ecx, edi
call fcn.0040e160
test al, al
je 0x40ea64
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.00416271
mov ecx, dword [ebp - 0x114]
cdq
add esp, 4
sub ecx, eax
mov eax, dword [ebp - 0x124]
sbb eax, edx
test eax, eax
jg 0x40e7f4
jl 0x40e8a6
cmp ecx, 0x278d00
ja 0x40e7f4
cmp dword [ebp - 0x48], 0x10
lea ecx, [ebp - 0x80]
push ecx
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
xorps xmm0, xmm0
push 0x438548
push eax
movlpd qword [ebp - 0x80], xmm0
call fcn.00416334
add esp, 0xc
test eax, eax
jg 0x40e8d7
xorps xmm0, xmm0
movlpd qword [ebp - 0x80], xmm0
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0x60], 0x10
mov dword [ebp - 0x108], eax
lea ecx, [ebp - 0x88]
push ecx
lea eax, [ebp - 0x74]
cmovae eax, dword [ebp - 0x74]
xorps xmm0, xmm0
push 0x438548
push eax
movlpd qword [ebp - 0x88], xmm0
call fcn.00416334
add esp, 0xc
test eax, eax
jg 0x40e91a
xorps xmm0, xmm0
movlpd qword [ebp - 0x88], xmm0
mov eax, dword [ebp - 0x88]
push 0xffffffffffffffff
mov dword [ebp - 0x104], eax
push 0
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x100]
call fcn.004019d0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0xe8]
call fcn.004019d0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0xd0]
call fcn.004019d0
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x120], ebx
lea eax, [ebp - 0x120]
inc ebx
lea ecx, [ecx + 4]
push eax
mov dword [ebp - 0x110], ebx
call fcn.0040f170
mov ecx, dword [ebp - 0x108]
mov ebx, eax
lea eax, [ebp - 0x100]
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x104]
mov dword [ebx + 4], ecx
lea ecx, [ebx + 8]
cmp ecx, eax
je 0x40e9b1
push 0xffffffffffffffff
push 0
push eax
call fcn.004019d0
lea ecx, [ebx + 0x20]
lea eax, [ebp - 0xe8]
cmp ecx, eax
je 0x40e9c8
push 0xffffffffffffffff
push 0
push eax
call fcn.004019d0
lea ecx, [ebx + 0x38]
lea eax, [ebp - 0xd0]
cmp ecx, eax
jne 0x40e9e0
mov ebx, dword [ebp - 0x110]
jmp 0x40e7f4
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xd0]
push eax
call fcn.004019d0
mov ebx, dword [ebp - 0x110]
jmp 0x40e7f4
mov ebx, dword [ebp - 0x10c]
mov byte [ebx + 0x15], 1
mov eax, dword [edi]
test eax, eax
je 0x40ea83
push eax
call fcn.0041571f
add esp, 4
mov dword [edi], 0
push edi
call fcn.00412d20
add esp, 4
cmp byte [ebx + 0x15], 0
je 0x40eaba
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40eaba
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x108]
call fcn.00406be0
cmp dword [ebp - 0x30], 0x10
jb 0x40ead6
push dword [ebp - 0x44]
call fcn.00412d20
add esp, 4
cmp dword [ebp - 0x8c], 0x10
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
jb 0x40eaff
push dword [ebp - 0xa0]
call fcn.00412d20
add esp, 4
cmp dword [ebp - 0xa4], 0x10
jb 0x40eb16
push dword [ebp - 0xb8]
call fcn.00412d20
add esp, 4
cmp dword [ebp - 0x60], 0x10
jb 0x40eb27
push dword [ebp - 0x74]
call fcn.00412d20
add esp, 4
cmp dword [ebp - 0x48], 0x10
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
jb 0x40eb4a
push dword [ebp - 0x5c]
call fcn.00412d20
add esp, 4
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
cmp dword [ebp - 0x18], 8
jb 0x40eb6d
push dword [ebp - 0x2c]
call fcn.00412d20
add esp, 4
xor eax, eax
push esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00412d25
mov esp, ebp
pop ebp
ret