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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7013
mov eax, dword fs:[0]
push eax
mov eax, 0x113c
call fcn.00494c30
mov eax, dword [0x4d7068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x1044], 7
mov dword [ebp - 0x1048], 0
mov word [ebp - 0x1058], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x102c], 7
mov dword [ebp - 0x1030], eax
mov word [ebp - 0x1040], ax
push eax
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], eax
cmp dword [ecx + 0x14], 8
jb 0x4180fa
mov eax, dword [ecx]
jmp 0x4180fc
mov eax, ecx
push 0xe
xor edx, edx
push 0x4ba8f8
mov word [eax], dx
call fcn.00411b30
lea eax, [ebp - 0x1040]
push eax
call fcn.0048f310
mov eax, dword [esi + 0x90]
lea ebx, [esi + 0x90]
add esp, 0x20
mov dword [ebp - 0x1094], ebx
test eax, eax
jne 0x418234
cmp dword [esi + 0x14], 8
jb 0x418140
mov eax, dword [esi]
jmp 0x418142
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x418694
push 4
push 0
lea eax, [ebp - 0x1028]
mov ecx, esi
push eax
call fcn.00417440
cmp dword [eax + 0x14], 8
lea ecx, [eax + 0x10]
jb 0x41816e
mov eax, dword [eax]
push 4
push 0x4ba918
push dword [ecx]
push eax
call fcn.00410fe0
mov ecx, dword [ebp - 0x1014]
add esp, 0x10
mov edi, eax
cmp ecx, 8
jb 0x4181a0
inc ecx
push ecx
push dword [ebp - 0x1028]
lea ecx, [ebp - 0x1028]
call fcn.00490de0
test edi, edi
jne 0x4181c9
push 0xffffffffffffffff
push 4
lea eax, [ebp - 0x1028]
mov ecx, esi
push eax
call fcn.00417440
push eax
mov ecx, esi
call fcn.00408c40
lea ecx, [ebp - 0x1028]
call fcn.00408340
cmp dword [esi + 0x8c], 8
lea ecx, [esi + 0x78]
jb 0x4181d7
mov ecx, dword [ecx]
cmp dword [esi + 0x74], 8
lea edx, [esi + 0x60]
jb 0x4181e2
mov edx, dword [edx]
cmp dword [esi + 0x5c], 8
lea edi, [esi + 0x48]
jb 0x4181ed
mov edi, dword [edi]
cmp dword [esi + 0x44], 8
lea ebx, [esi + 0x30]
jb 0x4181f8
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 8
jb 0x418200
mov esi, dword [esi]
cmp dword [ebp - 0x102c], 8
lea eax, [ebp - 0x1040]
push ecx
cmovae eax, dword [ebp - 0x1040]
push edx
push edi
push ebx
push esi
push eax
lea eax, [ebp - 0x1010]
push str._s___s____s____s____s____s_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
jmp 0x4185d7
cmp eax, 1
jne 0x4183f0
sub esp, 0x18
lea edx, [esi + 0x18]
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x41825d
mov eax, dword [ecx]
jmp 0x41825f
mov eax, ecx
push 0xffffffffffffffff
xor edi, edi
push edi
push edx
mov word [eax], di
call fcn.00411a10
lea eax, [ebp - 0x1028]
push eax
call fcn.0040e5a0
add esp, 0x1c
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1018], edi
jne 0x418298
lea ecx, [ebp - 0x1028]
call fcn.00408300
jmp 0x418694
push 0
sub esp, 0x18
lea edi, [esi + 0x30]
mov eax, esp
push str..txt
push edi
push eax
call fcn.00402250
add esp, 0xc
lea eax, [ebp - 0x1058]
push eax
call fcn.0048f310
add esp, 0x20
push 1
push 0x40
push 0x22
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x4182e3
mov eax, dword [ecx]
jmp 0x4182e5
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x1058]
push edx
push eax
call fcn.00411a10
lea eax, [ebp - 0x1070]
push eax
call fcn.0040e4a0
add esp, 0x1c
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 3
jb 0x418314
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x1148]
call fcn.00406e00
lea ecx, [ebp - 0x1070]
mov byte [ebp - 4], 5
call fcn.00408300
cmp dword [ebp - 0x1014], 0x10
lea eax, [ebp - 0x1028]
push 0
push dword [ebp - 0x1018]
cmovae eax, dword [ebp - 0x1028]
lea ecx, [ebp - 0x1148]
push eax
call fcn.004187b0
lea ecx, [ebp - 0x1148]
call fcn.00411e30
cmp dword [esi + 0x8c], 8
lea ebx, [esi + 0x78]
jb 0x418370
mov ebx, dword [ebx]
cmp dword [esi + 0x74], 8
lea edx, [esi + 0x60]
jb 0x41837b
mov edx, dword [edx]
add esi, 0x48
cmp dword [esi + 0x14], 8
jb 0x418386
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x41838e
mov edi, dword [edi]
cmp dword [ebp - 0x1044], 8
lea ecx, [ebp - 0x1058]
push ebx
cmovae ecx, dword [ebp - 0x1058]
lea eax, [ebp - 0x1040]
cmp dword [ebp - 0x102c], 8
push edx
cmovae eax, dword [ebp - 0x1040]
push esi
push edi
push ecx
push eax
lea eax, [ebp - 0x1010]
push str._s___s____s____s____s____s_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
lea ecx, [ebp - 0x1148]
call fcn.00408f50
lea ecx, [ebp - 0x1028]
mov byte [ebp - 4], 1
call fcn.00408300
jmp 0x4185d7
cmp eax, 2
jne 0x4185dd
cmp dword [esi + 0x14], 8
jb 0x418403
mov eax, dword [esi]
jmp 0x418405
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x418694
xor eax, eax
mov dword [ebp - 0x105c], 7
mov dword [ebp - 0x1060], 0
mov word [ebp - 0x1070], ax
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], eax
cmp dword [ecx + 0x14], 8
jb 0x41844e
mov eax, dword [ecx]
jmp 0x418450
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x1070]
push edx
push eax
call fcn.00411a10
lea eax, [ebp - 0x1028]
push eax
call fcn.0040e5a0
add esp, 0x1c
cmp dword [ebp - 0x1018], 0
mov byte [ebp - 4], 7
jne 0x41849b
lea ecx, [ebp - 0x1028]
call fcn.00408300
lea ecx, [ebp - 0x1070]
call fcn.00408340
jmp 0x418694
push 0
sub esp, 0x18
lea edi, [esi + 0x30]
mov eax, esp
push str..txt
push edi
push eax
call fcn.00402250
add esp, 0xc
lea eax, [ebp - 0x1058]
push eax
call fcn.0048f310
add esp, 0x20
lea eax, [ebp - 0x1058]
push 1
push 0x40
push 0x22
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00407100
lea eax, [ebp - 0x1088]
push eax
call fcn.0040e4a0
add esp, 0x1c
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 8
jb 0x4184f5
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x1148]
call fcn.00406e00
lea ecx, [ebp - 0x1088]
mov byte [ebp - 4], 0xa
call fcn.00408300
cmp dword [ebp - 0x1014], 0x10
lea eax, [ebp - 0x1028]
push 0
push dword [ebp - 0x1018]
cmovae eax, dword [ebp - 0x1028]
lea ecx, [ebp - 0x1148]
push eax
call fcn.004187b0
lea ecx, [ebp - 0x1148]
call fcn.00411e30
cmp dword [esi + 0x8c], 8
lea ebx, [esi + 0x78]
jb 0x418551
mov ebx, dword [ebx]
cmp dword [esi + 0x74], 8
lea edx, [esi + 0x60]
jb 0x41855c
mov edx, dword [edx]
add esi, 0x48
cmp dword [esi + 0x14], 8
jb 0x418567
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x41856f
mov edi, dword [edi]
cmp dword [ebp - 0x1044], 8
lea ecx, [ebp - 0x1058]
push ebx
cmovae ecx, dword [ebp - 0x1058]
lea eax, [ebp - 0x1040]
cmp dword [ebp - 0x102c], 8
push edx
cmovae eax, dword [ebp - 0x1040]
push esi
push edi
push ecx
push eax
lea eax, [ebp - 0x1010]
push str._s___s____s____s____s____s_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
lea ecx, [ebp - 0x1148]
call fcn.00408f50
lea ecx, [ebp - 0x1028]
call fcn.00408300
lea ecx, [ebp - 0x1070]
mov byte [ebp - 4], 1
call fcn.00408340
mov ebx, dword [ebp - 0x1094]
lea eax, [ebp - 0x1010]
push eax
push 0x4b9874
call fcn.0040f1a0
add esp, 8
mov dword [ebp - 0x1098], 0
xor esi, esi
nop dword [eax]
lea eax, [ebp - 0x1098]
push eax
push 0
push 0
push 1
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.0040dfc0
add esp, 0x18
cmp dword [ebp - 0x1098], 0
je 0x41866d
lea eax, [ebp - 0x1090]
mov dword [ebp - 0x1090], 0xa
push eax
lea eax, [ebp - 0x1020]
mov dword [ebp - 0x108c], 0
push eax
call fcn.004054a0
movups xmm0, xmmword [eax]
lea eax, [ebp - 0x1068]
push eax
movups xmmword [ebp - 0x1068], xmm0
call fcn.004938b9
inc esi
add esp, 0xc
cmp esi, 5
jl 0x418600
mov eax, dword [ebx]
cmp eax, 2
je 0x418679
cmp eax, 1
jne 0x418694
cmp dword [ebp - 0x1044], 8
lea eax, [ebp - 0x1058]
cmovae eax, dword [ebp - 0x1058]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x102c]
cmp eax, 8
jb 0x4186f6
mov ecx, dword [ebp - 0x1040]
inc eax
cmp eax, 0x7fffffff
jbe 0x4186b2
call fcn.0049a131
add eax, eax
cmp eax, 0x1000
jb 0x4186ed
test byte [ebp - 0x1040], 0x1f
je 0x4186c9
call fcn.0049a131
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4186d5
call fcn.0049a131
sub ecx, eax
cmp ecx, 4
jae 0x4186e1
call fcn.0049a131
cmp ecx, 0x23
jbe 0x4186eb
call fcn.0049a131
mov ecx, eax
push ecx
call fcn.0041cf90
add esp, 4
xor eax, eax
mov dword [ebp - 0x102c], 7
mov word [ebp - 0x1040], ax
mov eax, dword [ebp - 0x1044]
mov dword [ebp - 0x1030], 0
cmp eax, 8
jb 0x418775
mov ecx, dword [ebp - 0x1058]
inc eax
cmp eax, 0x7fffffff
jbe 0x418731
call fcn.0049a131
add eax, eax
cmp eax, 0x1000
jb 0x41876c
test byte [ebp - 0x1058], 0x1f
je 0x418748
call fcn.0049a131
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x418754
call fcn.0049a131
sub ecx, eax
cmp ecx, 4
jae 0x418760
call fcn.0049a131
cmp ecx, 0x23
jbe 0x41876a
call fcn.0049a131
mov ecx, eax
push ecx
call fcn.0041cf90
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004942e8
mov esp, ebp
pop ebp
ret