Function at 0x4ce070
Capabilities:
Check if file exists
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d67a3
mov eax, dword fs:[0]
push eax
sub esp, 0x544
mov eax, dword [0x516b80]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x544], ecx
mov byte [ebp - 0xd], 1
mov ecx, dword [ebp - 0x544]
add ecx, 0x620
call fcn.00407ec0
movzx eax, byte [ebp - 0xd]
cmp eax, 1
jne 0x4ce2c0
mov ecx, dword [ebp - 0x544]
add ecx, 0x620
call fcn.00402260
mov esi, eax
push 0
push 0x4fd8f8
mov ecx, dword [ebp - 0x544]
add ecx, 0x620
call fcn.00407e40
sub esi, eax
sub esi, 1
push esi
lea ecx, [ebp - 0x504]
push ecx
mov ecx, dword [ebp - 0x544]
add ecx, 0x620
call fcn.00407f50
mov dword [ebp - 0x548], eax
mov edx, dword [ebp - 0x548]
mov dword [ebp - 0x54c], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x54c]
call fcn.00408f70
push eax
lea ecx, [ebp - 0x4c]
call fcn.004012d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x504]
call fcn.00402e40
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00403420
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.00408fc0
push 0x4ca5f0
lea ecx, [ebp - 0x50c]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00408e40
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x514]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00408e10
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x51c]
push ecx
call fcn.0040fe40
add esp, 0x18
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x52c]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00408e40
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x524], edx
mov dword [ebp - 0x520], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x534], ecx
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x530], edx
mov eax, dword [ebp - 0x520]
push eax
mov ecx, dword [ebp - 0x524]
push ecx
mov edx, dword [ebp - 0x530]
push edx
mov eax, dword [ebp - 0x534]
push eax
lea ecx, [ebp - 0x53c]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00408d80
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x30]
call fcn.00408f10
test eax, eax
je 0x4ce2a5
push 0
lea ecx, [ebp - 0xd4]
call fcn.004d1460
mov byte [ebp - 4], 4
push 0x9c
lea ecx, [ebp - 0x60]
call fcn.004027b0
push 0x9d
lea ecx, [ebp - 0x5c]
call fcn.004027b0
mov byte [ebp - 0x58], 1
lea ecx, [ebp - 0xd4]
call fcn.00488930
push 0x3ec
mov ecx, dword [ebp - 0x544]
call fcn.0048ec9a
mov dword [ebp - 0xd8], eax
cmp dword [ebp - 0xd8], 0
je 0x4ce292
mov ecx, dword [ebp - 0xd8]
call fcn.0048ee79
push 1
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0xd8]
call fcn.00411460
mov byte [ebp - 0xd], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd4]
call fcn.004d1420
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.00401310
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00401310
mov ecx, dword [ebp - 0x544]
add ecx, 0x620
call fcn.00408f70
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x4ce398
mov ecx, dword [ebp - 0x544]
add ecx, 0x620
call fcn.00408f70
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
cmp eax, 1
jne 0x4ce398
push 0
lea ecx, [ebp - 0x15c]
call fcn.004d1460
mov dword [ebp - 4], 5
push 0xb9
lea ecx, [ebp - 0xe8]
call fcn.004027b0
push 0x9d
lea ecx, [ebp - 0xe4]
call fcn.004027b0
mov byte [ebp - 0xe0], 1
lea ecx, [ebp - 0x15c]
call fcn.00488930
push 0x3ec
mov ecx, dword [ebp - 0x544]
call fcn.0048ec9a
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0
je 0x4ce382
mov ecx, dword [ebp - 0x160]
call fcn.0048ee79
push 1
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0x160]
call fcn.00411460
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15c]
call fcn.004d1420
movzx eax, byte [ebp - 0xd]
cmp eax, 1
jne 0x4ce458
mov ecx, dword [ebp - 0x544]
add ecx, 0x620
call fcn.00402260
cmp eax, 0x103
jle 0x4ce458
push 0
lea ecx, [ebp - 0x1e4]
call fcn.004d1460
mov dword [ebp - 4], 6
push 0x92
lea ecx, [ebp - 0x170]
call fcn.004027b0
push 0x93
lea ecx, [ebp - 0x16c]
call fcn.004027b0
mov byte [ebp - 0x168], 1
lea ecx, [ebp - 0x1e4]
call fcn.00488930
push 0x3ec
mov ecx, dword [ebp - 0x544]
call fcn.0048ec9a
mov dword [ebp - 0x1e8], eax
cmp dword [ebp - 0x1e8], 0
je 0x4ce442
mov ecx, dword [ebp - 0x1e8]
call fcn.0048ee79
push 1
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0x1e8]
call fcn.00411460
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1e4]
call fcn.004d1420
movzx ecx, byte [ebp - 0xd]
cmp ecx, 1
jne 0x4ce8ab
mov ecx, dword [ebp - 0x544]
add ecx, 0x620
call fcn.00408f70
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4ce8ab
push 0
lea ecx, [ebp - 0x26c]
call fcn.004d1460
mov dword [ebp - 4], 7
push 0x9a
lea ecx, [ebp - 0x1f8]
call fcn.004027b0
push 0x9b
lea ecx, [ebp - 0x1f4]
call fcn.004027b0
lea ecx, [ebp - 0x26c]
call fcn.00488930
cmp eax, 2
jne 0x4ce50d
push 0x3ec
mov ecx, dword [ebp - 0x544]
call fcn.0048ec9a
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0
je 0x4ce504
mov ecx, dword [ebp - 0x270]
call fcn.0048ee79
push 1
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0x270]
call fcn.00411460
mov byte [ebp - 0xd], 0
jmp 0x4ce899
mov ecx, dword [ebp - 0x544]
add ecx, 0x620
call fcn.00408f70
push eax
lea ecx, [ebp - 0x298]
call fcn.004012d0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x298]
call fcn.0041b5d0
push eax
lea ecx, [ebp - 0x298]
call fcn.00408e70
movzx edx, word [eax]
cmp edx, 0x5c
je 0x4ce55d
push 0x4fd8fc
lea ecx, [ebp - 0x298]
call fcn.00408d50
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x27c], 0
mov byte [ebp - 0x271], 0
mov eax, dword [ebp - 0x278]
push eax
push 0x5c
lea ecx, [ebp - 0x298]
call fcn.00408ec0
add eax, 1
mov dword [ebp - 0x278], eax
mov ecx, dword [ebp - 0x278]
push ecx
push 0x5c
lea ecx, [ebp - 0x298]
call fcn.00408ec0
mov dword [ebp - 0x27c], eax
jmp 0x4ce5cb
mov edx, dword [ebp - 0x278]
push edx
push 0x5c
lea ecx, [ebp - 0x298]
call fcn.00408ec0
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp - 0x27c]
cmp eax, dword [0x4fde38]
je 0x4ce84f
movzx ecx, byte [ebp - 0xd]
cmp ecx, 1
jne 0x4ce84f
mov edx, dword [ebp - 0x27c]
add edx, 1
mov dword [ebp - 0x27c], edx
mov eax, dword [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x298]
call fcn.00408ea0
push eax
lea ecx, [ebp - 0x2b4]
call fcn.00408c80
mov byte [ebp - 4], 9
mov ecx, dword [0x4fde38]
push ecx
mov edx, dword [0x4fde38]
push edx
push 0x4fd900
lea ecx, [ebp - 0x2b4]
call fcn.00408ee0
add eax, 1
push eax
lea ecx, [ebp - 0x2b4]
call fcn.00401920
push 0
lea ecx, [ebp - 0x2b4]
call fcn.00408ea0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x2b8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2bc], eax
cmp dword [ebp - 0x2b8], 0
jne 0x4ce7d1
cmp dword [ebp - 0x2bc], 0xb7
je 0x4ce7d1
cmp dword [ebp - 0x2bc], 5
jne 0x4ce72e
push 0
lea ecx, [ebp - 0x33c]
call fcn.004d1460
mov byte [ebp - 4], 0xa
push 0x90
lea ecx, [ebp - 0x2c8]
call fcn.004027b0
push 0x91
lea ecx, [ebp - 0x2c4]
call fcn.004027b0
mov byte [ebp - 0x2c0], 1
lea ecx, [ebp - 0x33c]
call fcn.00488930
push 0x3ec
mov ecx, dword [ebp - 0x544]
call fcn.0048ec9a
mov dword [ebp - 0x340], eax
cmp dword [ebp - 0x340], 0
je 0x4ce716
mov ecx, dword [ebp - 0x340]
call fcn.0048ee79
push 1
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0x340]
call fcn.00411460
mov byte [ebp - 0xd], 0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x33c]
call fcn.004d1420
jmp 0x4ce7cf
push 0
lea ecx, [ebp - 0x3c4]
call fcn.004d1460
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2b4]
call fcn.00408ea0
push eax
push 0x98
lea eax, [ebp - 0x350]
push eax
call fcn.0040fd80
add esp, 0xc
push 0x99
lea ecx, [ebp - 0x34c]
call fcn.004027b0
mov byte [ebp - 0x348], 1
lea ecx, [ebp - 0x3c4]
call fcn.00488930
push 0x3ec
mov ecx, dword [ebp - 0x544]
call fcn.0048ec9a
mov dword [ebp - 0x3c8], eax
cmp dword [ebp - 0x3c8], 0
je 0x4ce7bc
mov ecx, dword [ebp - 0x3c8]
call fcn.0048ee79
push 1
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0x3c8]
call fcn.00411460
mov byte [ebp - 0xd], 0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x3c4]
call fcn.004d1420
jmp 0x4ce82f
cmp dword [ebp - 0x2b8], 1
jne 0x4ce82f
movzx ecx, byte [ebp - 0x271]
test ecx, ecx
jne 0x4ce82f
lea edx, [ebp - 0x2b4]
push edx
mov ecx, dword [ebp - 0x544]
add ecx, 0x624
call fcn.00408cc0
mov ecx, dword [ebp - 0x544]
add ecx, 0x624
call fcn.0041b5d0
sub eax, 1
push eax
mov ecx, dword [ebp - 0x544]
add ecx, 0x624
call fcn.00408e70
xor ecx, ecx
mov word [eax], cx
mov byte [ebp - 0x271], 1
mov edx, dword [ebp - 0x27c]
mov dword [ebp - 0x278], edx
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2b4]
call fcn.00401310
jmp 0x4ce5b1
movzx eax, byte [ebp - 0xd]
cmp eax, 1
jne 0x4ce88a
push 1
mov ecx, dword [ebp - 0x544]
add ecx, 0x620
call fcn.00408f70
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x540], esp
push eax
call fcn.004012d0
mov dword [ebp - 0x550], eax
call fcn.00419220
add esp, 0x20
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x298]
call fcn.00401310
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x26c]
call fcn.004d1420
movzx ecx, byte [ebp - 0xd]
cmp ecx, 1
jne 0x4cea11
mov ecx, dword [ebp - 0x544]
add ecx, 0x620
call fcn.00408f70
push eax
lea ecx, [ebp - 0x3f0]
call fcn.004012d0
mov dword [ebp - 4], 0xc
push 0x4fd904
lea ecx, [ebp - 0x3f0]
call fcn.00408ce0
mov dword [ebp - 0x3cc], 0
push 0x4fd928
lea ecx, [ebp - 0x3f0]
call fcn.00408ea0
push eax
lea edx, [ebp - 0x3cc]
push edx
call fcn.0049a053
add esp, 0xc
mov dword [ebp - 0x3d0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3d4], eax
cmp dword [ebp - 0x3cc], 0
jne 0x4ce9d5
cmp dword [ebp - 0x3d4], 5
jne 0x4ce9d5
push 0
lea ecx, [ebp - 0x474]
call fcn.004d1460
mov byte [ebp - 4], 0xd
push 0x90
lea ecx, [ebp - 0x400]
call fcn.004027b0
push 0x91
lea ecx, [ebp - 0x3fc]
call fcn.004027b0
mov byte [ebp - 0x3f8], 1
lea ecx, [ebp - 0x474]
call fcn.00488930
push 0x3ec
mov ecx, dword [ebp - 0x544]
call fcn.0048ec9a
mov dword [ebp - 0x478], eax
cmp dword [ebp - 0x478], 0
je 0x4ce9c0
mov ecx, dword [ebp - 0x478]
call fcn.0048ee79
push 1
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0x478]
call fcn.00411460
mov byte [ebp - 0xd], 0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x474]
call fcn.004d1420
jmp 0x4ce9ff
cmp dword [ebp - 0x3cc], 0
je 0x4ce9ff
mov eax, dword [ebp - 0x3cc]
push eax
call fcn.0049a11d
add esp, 4
lea ecx, [ebp - 0x3f0]
call fcn.00408ea0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3f0]
call fcn.00401310
mov ecx, dword [ebp - 0x544]
cmp dword [ecx + 0x2f8], 0
jne 0x4cead1
mov ecx, dword [ebp - 0x544]
call fcn.004ca750
movzx edx, al
test edx, edx
jne 0x4cead1
push 0
lea ecx, [ebp - 0x4fc]
call fcn.004d1460
mov dword [ebp - 4], 0xe
push 0x95
lea ecx, [ebp - 0x488]
call fcn.004027b0
push 0x96
lea ecx, [ebp - 0x484]
call fcn.004027b0
mov byte [ebp - 0x480], 1
lea ecx, [ebp - 0x4fc]
call fcn.00488930
push 0x3ec
mov ecx, dword [ebp - 0x544]
call fcn.0048ec9a
mov dword [ebp - 0x500], eax
cmp dword [ebp - 0x500], 0
je 0x4ceabb
mov ecx, dword [ebp - 0x500]
call fcn.0048ee79
push 1
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0x500]
call fcn.00411460
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4fc]
call fcn.004d1420
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00497164
mov esp, ebp
pop ebp
ret