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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
mov eax, dword [0x42a470]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0x104
push 0x42de20
push 0x64
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0x42fcc0
lea ecx, [ebp - 0x328]
push ecx
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x220]
push eax
call fcn.00407f10
add esp, 0x14
push 0
push 0
lea ecx, [ebp - 0x328]
push ecx
lea edx, [ebp - 0x118]
push edx
push 0x42e2a0
call fcn.00407dd0
add esp, 0x14
push 0x42e2a0
push 0x42ff00
call fcn.004079e0
add esp, 8
push 0x42ff00
call fcn.00407b10
add esp, 4
mov dword [ebp - 0x330], eax
cmp dword [ebp - 0x330], 0
je 0x401c4e
mov eax, dword [ebp - 0x330]
movsx ecx, byte [eax + 0x42feff]
cmp ecx, 0x5c
jne 0x401c4e
mov edx, dword [ebp - 0x330]
mov byte [edx + 0x42feff], 0
push 0x5c
push 0x42ff00
call fcn.004080a0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401c75
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov byte [ecx], 0
push str.Layout_
push 0x42517c
push 0x42ff00
push 0x425184
push 0x42e060
call fcn.00407e60
add esp, 0x14
push str.Overlay_
push 0x425198
push 0x42ff00
push 0x4251a0
push 0x42fba0
call fcn.00407e60
add esp, 0x14
mov byte [0x42f960], 0
mov byte [0x42e180], 0
mov byte [0x42fde0], 0
mov byte [0x42fa80], 0
mov byte [0x42df40], 0
mov byte [0x430020], 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00402370
add esp, 8
cmp eax, 0xffffffff
jne 0x401d05
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 8]
jmp 0x40209a
movsx ecx, byte [0x42df40]
test ecx, ecx
je 0x401d1c
mov dword [0x42e6d4], 1
jmp 0x401d26
mov dword [0x42e6d4], 0
call fcn.00404410
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401d3b
mov dword [ebp - 8], 0xfffffffe
cmp dword [0x42e6d4], 0
jle 0x401d72
push 0x42de20
push 0x42fcc0
push str.Start__s___Version__s
push 0x4251c0
call fcn.00405ef0
add esp, 0x10
push str.
push 0x4251f0
call fcn.00405ef0
add esp, 8
cmp dword [ebp - 0xc], 0
jne 0x401e7a
push 0x42e3c0
call fcn.004025f0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401d9e
mov dword [ebp - 8], 0xfffffffd
jmp 0x401e7a
cmp dword [0x42e6d4], 2
jl 0x401e7a
push 0x42e2a0
push str.G_szPathApp___________s
push 0x425218
call fcn.00405ef0
add esp, 0xc
push 0x42ff00
push str.G_szPathRootInstall___s
push 0x425240
call fcn.00405ef0
add esp, 0xc
push 0x42e060
push str.G_szPathVPPSLayout____s
push 0x425268
call fcn.00405ef0
add esp, 0xc
push 0x42fba0
push str.G_szPathOverlay_______s
push 0x425290
call fcn.00405ef0
add esp, 0xc
push 0x42f960
push str.G_szInputFileName_____s
push 0x4252b8
call fcn.00405ef0
add esp, 0xc
push 0x42e180
push str.G_szOutputFileName____s
push 0x4252e0
call fcn.00405ef0
add esp, 0xc
push 0x42fde0
push str.G_szParamFileName_____s
push 0x425308
call fcn.00405ef0
add esp, 0xc
push 0x42fa80
push str.G_szCommFileName______s
push 0x425330
call fcn.00405ef0
add esp, 0xc
push 0x42df40
push str.G_szTrcFileName_______s
push 0x425358
call fcn.00405ef0
add esp, 0xc
movsx edx, byte [0x42df40]
test edx, edx
jne 0x401e8f
mov dword [0x42e6d4], 0
cmp dword [ebp - 0xc], 0
jne 0x401eaa
call fcn.00404d90
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401eaa
mov dword [ebp - 8], 0xfffffffc
cmp dword [ebp - 0xc], 0
jne 0x401ec5
call fcn.00401350
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401ec5
mov dword [ebp - 8], 0xfffffffb
cmp dword [ebp - 0xc], 0
jne 0x401ee0
call fcn.00404ad0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401ee0
mov dword [ebp - 8], 0xfffffffa
cmp dword [ebp - 0xc], 0
jne 0x402072
mov dword [ebp - 0x32c], 1
mov dword [ebp - 0x334], 0
cmp dword [ebp - 0x334], 0
jne 0x402072
mov byte [0x42b820], 0
push 0x42b820
call fcn.00401630
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x401f3e
mov dword [ebp - 0x334], 1
mov dword [ebp - 8], 0xfffffff9
jmp 0x40206d
cmp dword [ebp - 0xc], 1
jne 0x401f53
mov dword [ebp - 0x334], 1
jmp 0x40206d
cmp dword [ebp - 0xc], 0
jne 0x40206d
cmp dword [ebp - 0x32c], 1
jne 0x401fe2
push 0x42b820
call fcn.004052e0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401f92
mov dword [ebp - 8], 0xfffffff8
mov dword [ebp - 0x334], 1
jmp 0x402072
push 0x42e3c0
call fcn.00402a70
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401fbe
mov dword [ebp - 8], 0xfffffff5
mov dword [ebp - 0x334], 1
jmp 0x402072
call fcn.00405480
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401fe2
mov dword [ebp - 8], 0xfffffff7
mov dword [ebp - 0x334], 1
jmp 0x402072
push 0x42b820
call fcn.00405870
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40200b
mov dword [ebp - 8], 0xfffffff6
mov dword [ebp - 0x334], 1
jmp 0x40206d
cmp dword [ebp - 0x32c], 1
jne 0x402020
mov dword [ebp - 0x32c], 0
jmp 0x40206d
cmp dword [0x42f474], 1
jne 0x40206d
push 0x42b820
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40206d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x338], eax
cmp dword [ebp - 0x338], 2
je 0x40206d
cmp dword [0x42e6d4], 1
jl 0x40206d
push 0x42b820
push str.Error_while_deleting_file_:__s
push 0x425384
call fcn.00405ef0
add esp, 0xc
jmp 0x401efe
cmp dword [0x42e044], 0
jge 0x402088
push 0x42e3c0
call fcn.00404280
add esp, 4
call fcn.00404b30
call fcn.00401600
call fcn.00404700
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
call fcn.00408089
mov esp, ebp
pop ebp
ret