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

Disassembly:
push 0xffffffffffffffff
push 0x433812
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
mov eax, dword [0x4441e0]
push ebx
push ebp
mov dword [esp + 0x22c], eax
mov eax, dword [esp + 0x240]
sub eax, 3
push esi
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
je 0x40631f
dec eax
je 0x40630f
sub eax, 2
jne 0x406230
lea ecx, [esi + 0x29c]
call fcn.00408ae0
mov eax, dword [0x445154]
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x405fd2
push 0x30
push 0x43618c
push 0x436244
mov ecx, esi
call fcn.00427caf
xor eax, eax
jmp 0x406235
push 1
lea ecx, [esp + 0x28]
push ecx
mov ecx, 0x445154
call fcn.00402220
mov eax, dword [eax]
push 0x435b1c
push eax
call fcn.00418d0d
add esp, 8
test eax, eax
mov eax, dword [esp + 0x24]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406016
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x406029
push 0x435b1c
mov ecx, 0x445154
call fcn.00402920
mov eax, dword [0x445154]
mov ecx, dword [eax - 0xc]
cmp ecx, 4
jge 0x406050
push 0x10
push 0x43618c
push 0x436224
mov ecx, esi
call fcn.00427caf
xor eax, eax
jmp 0x406235
add eax, 0xfffffff0
push eax
call fcn.00401d40
lea ebp, [eax + 0x10]
add esp, 4
mov dword [esp + 0x14], ebp
cmp dword [ebp - 0xc], 0x104
mov dword [esp + 0x240], 0
jl 0x40609a
push 0x10
push 0x43618c
push 0x436208
mov ecx, esi
call fcn.00427caf
lea ecx, [esp + 0x14]
call fcn.00401040
xor eax, eax
jmp 0x406235
mov eax, dword [str.Everyone]
mov ecx, dword [0x436200]
mov dl, byte [0x436204]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov byte [esp + 0x34], dl
xor eax, eax
mov ecx, 0x3e
lea edi, [esp + 0x35]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebp
stosb byte es:[edi], al
call ebx
test eax, eax
jne 0x4061f0
mov esi, 1
lea ecx, [ecx]
call fcn.00426313
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
test esi, esi
mov eax, dword [ebp - 0xc]
mov byte [esp + 0x240], 1
jl 0x40625c
cmp esi, eax
jge 0x40625c
lea eax, [esi + ebp]
push 0x5c
push eax
call fcn.00419101
add esp, 8
test eax, eax
je 0x40625c
sub eax, ebp
cmp eax, 0xffffffff
je 0x40625c
lea esi, [eax + 1]
push esi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404ba0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x244], 2
call fcn.004025d0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x240], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406179
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x10]
push edi
lea eax, [esp + 0x134]
push 0x4361f8
push eax
call fcn.00418f95
add esp, 0xc
push 0x10000000
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x138]
push edx
mov ecx, 0x445214
call fcn.00407f50
push edi
call ebx
test eax, eax
jne 0x4061c6
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40626f
lea eax, [edi - 0x10]
mov byte [esp + 0x240], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4061e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
jne 0x4060e0
mov eax, dword [0x445154]
push eax
lea ecx, [esp + 0x134]
push 0x4361f8
push ecx
call fcn.00418f95
add esp, 0xc
push 0x10000000
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x138]
push eax
mov ecx, 0x445214
call fcn.00407f50
lea ecx, [esp + 0x14]
call fcn.00401040
mov eax, 1
mov ecx, dword [esp + 0x238]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x228]
pop ebx
call fcn.004185be
add esp, 0x234
ret 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x240], 0
call fcn.00401040
jmp 0x4061f0
lea ecx, [esp + 0x10]
call fcn.00401040
lea ecx, [esp + 0x10]
call fcn.00401060
push 0x445154
push 0x4361ec
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x24c], 3
call fcn.00405e80
push 0x4361e0
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x24c], 4
call fcn.00405dc0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x244], 5
call fcn.004025d0
lea ecx, [esp + 0x18]
call fcn.00401040
lea ecx, [esp + 0x1c]
mov byte [esp + 0x240], 3
call fcn.00401040
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
push 0x10
push 0x43618c
push edx
call fcn.00427caf
lea ecx, [esp + 0x10]
call fcn.00401040
lea ecx, [esp + 0x14]
call fcn.00401040
xor eax, eax
jmp 0x406235
lea ecx, [esi + 0x228]
call fcn.004016e0
jmp 0x406230
lea ecx, [esi + 0x15c]
call fcn.00409210
test eax, eax
jne 0x406230
push 0x30
push 0x43618c
push 0x4361cc
mov ecx, esi
call fcn.00427caf
xor eax, eax
jmp 0x406235