Function at 0x402220
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43aefd
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x4b249c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push 0
push 0x43d828
lea ecx, [ebp + 8]
call fcn.00405310
cmp eax, 1
je 0x402281
mov byte [ebp - 0x51], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405210
mov al, byte [ebp - 0x51]
jmp 0x40250b
push 2
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 8]
call fcn.00405360
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004052b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4022cf
mov byte [ebp - 0x52], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00405210
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405210
mov al, byte [ebp - 0x52]
jmp 0x40250b
lea ecx, [ebp + 8]
call fcn.004052d0
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
sub ecx, 3
push ecx
push 3
lea edx, [ebp - 0x70]
push edx
lea ecx, [ebp + 8]
call fcn.00405360
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x9c]
push ecx
lea ecx, [ebp + 8]
call fcn.00405230
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00405210
lea ecx, [ebp + 8]
call fcn.004052d0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4024e3
push 0
push 0x43d830
lea ecx, [ebp + 8]
call fcn.00405310
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x402379
mov byte [ebp - 0x71], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00405210
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405210
mov al, byte [ebp - 0x71]
jmp 0x40250b
cmp dword [ebp - 0x34], 0
jge 0x4023f1
push 0x43d834
lea ecx, [ebp - 0x2c]
call fcn.00405290
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00405270
lea ecx, [ebp - 0x2c]
call fcn.004052b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4023e7
push 0
lea ecx, [ebp - 0x2c]
call fcn.004052b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4023e7
mov byte [ebp - 0x72], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00405210
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405210
mov al, byte [ebp - 0x72]
jmp 0x40250b
jmp 0x4024e3
mov eax, dword [ebp - 0x34]
push eax
push 0
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp + 8]
call fcn.00405360
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x30]
sub edx, dword [ebp - 0x34]
sub edx, 1
push edx
mov eax, dword [ebp - 0x34]
add eax, 1
push eax
lea ecx, [ebp - 0x90]
push ecx
lea ecx, [ebp + 8]
call fcn.00405360
mov dword [ebp - 0xa0], eax
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xa4]
push eax
lea ecx, [ebp + 8]
call fcn.00405230
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x90]
call fcn.00405210
push 0x43d838
lea ecx, [ebp - 0x2c]
call fcn.00405290
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00405270
lea ecx, [ebp - 0x2c]
call fcn.004052b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4024d2
push 0
lea ecx, [ebp - 0x2c]
call fcn.004052b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4024d2
mov byte [ebp - 0x91], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.00405210
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00405210
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405210
mov al, byte [ebp - 0x91]
jmp 0x40250b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.00405210
jmp 0x402320
mov byte [ebp - 0x92], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00405210
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405210
mov al, byte [ebp - 0x92]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042624f
mov esp, ebp
pop ebp
ret