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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dee44
mov eax, dword fs:[0]
push eax
sub esp, 0x5bc
mov eax, dword [0x526a28]
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 edi, ecx
push 0
push 2
mov dword [ebp - 0x560], edi
call fcn.004332fe
push eax
call fcn.00432465
add esp, 0xc
push 0x5189f8
push 2
mov dword [ebp - 0x5a4], eax
call fcn.004332fe
push 0
call fcn.00432414
add esp, 0xc
push 0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x5a0]
call fcn.00404600
lea ecx, [ebp - 0x5c0]
mov dword [ebp - 4], 0
call fcn.0041984e
lea ecx, [ebp - 0x588]
mov byte [ebp - 4], 1
call fcn.0041a2dc
lea ecx, [ebp - 0x578]
mov byte [ebp - 4], 2
call fcn.0041a2dc
mov byte [ebp - 4], 3
call fcn.0041075a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402026
push 0x80004005
call fcn.00404ef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x54c], eax
push 0x10000
mov byte [ebp - 4], 4
call fcn.0040b65c
add esp, 4
lea ecx, [ebp - 0x5a0]
push ecx
mov esi, eax
mov eax, dword [edi + 0x1b1c]
push 0
push eax
lea ecx, [ebp - 0x5c0]
mov dword [ebp - 0x554], esi
call fcn.00419866
test eax, eax
jne 0x40211d
push esi
call fcn.0040b651
add esp, 4
push str.05.1
lea ebx, [edi + 0x1b00]
call fcn.004053d0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x54c]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
add esp, 4
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4020b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x578]
mov byte [ebp - 4], 2
call fcn.0041a3b7
lea ecx, [ebp - 0x588]
mov byte [ebp - 4], 1
call fcn.0041a3b7
lea ecx, [ebp - 0x5c0]
mov byte [ebp - 4], 0
call fcn.00419c4f
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x590]
add eax, 0xfffffff0
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402116
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x402677
mov eax, dword [edi + 0x1b20]
lea ecx, [ebp - 0x5a0]
push ecx
push 0
push eax
lea ecx, [ebp - 0x578]
call fcn.0041a6c3
test eax, eax
jne 0x40214f
push esi
call fcn.0040b651
add esp, 4
push str.05.2
jmp 0x402082
call fcn.0041075a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402169
push 0x80004005
call fcn.00404ef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x550], eax
mov byte [ebp - 4], 5
call fcn.0041075a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402199
push 0x80004005
call fcn.00404ef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x558], eax
mov byte [ebp - 4], 6
call fcn.0041075a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4021c9
push 0x80004005
call fcn.00404ef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x564], eax
mov byte [ebp - 4], 7
call fcn.0041075a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4021f9
push 0x80004005
call fcn.00404ef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x55c], eax
mov byte [ebp - 4], 9
jmp 0x402217
mov edi, dword [ebp - 0x560]
lea ecx, [ebp - 0x54c]
push ecx
lea ecx, [ebp - 0x5c0]
call fcn.00419d6a
test eax, eax
je 0x402482
lea edx, [ebp - 0x568]
push edx
push 0x518a14
lea eax, [ebp - 0x5ac]
push eax
lea ecx, [ebp - 0x54c]
mov dword [ebp - 0x568], 0
call fcn.00403e00
push eax
lea ecx, [ebp - 0x550]
mov byte [ebp - 4], 0xa
call fcn.00404840
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x5ac]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40228f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x568]
push ecx
push 0x518a14
lea edx, [ebp - 0x5a8]
push edx
lea ecx, [ebp - 0x54c]
call fcn.00403e00
push eax
lea ecx, [ebp - 0x558]
mov byte [ebp - 4], 0xb
call fcn.00404840
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x5a8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4022e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x568]
push ecx
push 0x518a14
lea edx, [ebp - 0x58c]
push edx
lea ecx, [ebp - 0x54c]
call fcn.00403e00
push eax
lea ecx, [ebp - 0x564]
mov byte [ebp - 4], 0xc
call fcn.00404840
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x58c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402337
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x558]
push ecx
call fcn.00432409
mov edx, dword [ebp - 0x564]
add esp, 4
push edx
mov esi, eax
call fcn.00432409
mov edi, eax
mov eax, dword [ebp - 0x550]
add esp, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402211
push 9
lea ecx, [ebp - 0x34]
push ecx
push 0x104
lea edx, [ebp - 0x548]
push edx
mov edx, dword [ebp - 0x550]
push 0x104
lea eax, [ebp - 0x240]
push eax
push 6
lea ecx, [ebp - 0x20]
push ecx
push edx
call fcn.0043346e
add esp, 0x24
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x55c]
push 0x518688
push edx
call fcn.00404780
mov ebx, dword [ebp - 0x55c]
add esp, 0x10
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4023da
push eax
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov ecx, dword [ebp - 0x550]
lea eax, [ebp - 0x5a0]
push eax
push 0x1001
push ecx
lea ecx, [ebp - 0x588]
call fcn.0041a6c3
test eax, eax
je 0x402211
push 0
push 0
push esi
lea ecx, [ebp - 0x578]
call fcn.0041a05f
mov esi, edi
shr esi, 0x10
xor ebx, ebx
jmp 0x402420
cmp ebx, esi
lea ecx, [ebp - 0x578]
jge 0x402455
mov edx, dword [ebp - 0x554]
push 0x10000
push edx
call fcn.00419fd0
mov eax, dword [ebp - 0x554]
push 0x10000
push eax
lea ecx, [ebp - 0x588]
call fcn.0041a012
inc ebx
jmp 0x402420
movzx esi, di
mov edi, dword [ebp - 0x554]
push esi
push edi
call fcn.00419fd0
push esi
push edi
lea ecx, [ebp - 0x588]
call fcn.0041a012
lea ecx, [ebp - 0x588]
call fcn.0041a276
jmp 0x402211
lea ecx, [ebp - 0x5c0]
call fcn.00419c11
lea ecx, [ebp - 0x578]
call fcn.0041a276
mov dword [ebp - 4], 8
jmp 0x4024f9
mov eax, dword [edi + 0x1b1c]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
mov eax, dword [edi + 0x1b20]
push eax
call esi
push 0
call fcn.00432414
mov esi, dword [ebp - 0x5a4]
add esp, 4
push esi
push 2
call fcn.004332fe
push esi
call fcn.00431fb7
mov eax, dword [ebp - 0x554]
add esp, 0xc
push eax
call fcn.0040b651
add esp, 4
push 0x518a18
lea ebx, [edi + 0x1b00]
call fcn.004053d0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x55c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40257a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x564]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4025a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x558]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4025c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x550]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4025ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x54c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402612
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x578]
mov byte [ebp - 4], 2
call fcn.0041a3b7
lea ecx, [ebp - 0x588]
mov byte [ebp - 4], 1
call fcn.0041a3b7
lea ecx, [ebp - 0x5c0]
mov byte [ebp - 4], 0
call fcn.00419c4f
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x590]
add eax, 0xfffffff0
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402672
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
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.00431c7a
mov esp, ebp
pop ebp
ret