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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x438152
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
mov eax, dword [0x44a1e0]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x238], eax
mov eax, dword [esi]
add eax, 0xfffffffd
cmp eax, 5
push edi
mov dword [esp + 0x1c], esi
ja case.0x409014.5
jmp dword [eax*4 + 0x4093ac]
mov ecx, dword [esi + 0x10]
call fcn.0040aee0
test eax, eax
jne case.0x409014.5
mov ecx, dword [esi + 0x30]
push 0x30
push 0x43b5f4
push 0x43ba04
call fcn.0042c437
xor eax, eax
jmp 0x4092ca
mov eax, dword [0x44b18c]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 0x30]
mov eax, dword [edx + 0x20]
test eax, eax
je case.0x409014.5
mov ecx, dword [esi + 0x14]
call fcn.004016e0
jmp case.0x409014.5
mov ecx, dword [esi + 0x1c]
call fcn.00410850
jmp case.0x409014.5
mov ecx, dword [esi + 0x18]
call fcn.00405640
jmp case.0x409014.5
mov ecx, dword [esi + 0x20]
call fcn.0040a790
mov eax, dword [0x44b18c]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 4]
mov ecx, dword [edx - 0xc]
test ecx, ecx
jne 0x4090b8
mov ecx, dword [esi + 0x30]
push 0x30
push 0x43b5f4
push 0x43b9f0
call fcn.0042c437
xor eax, eax
jmp 0x4092ca
push 1
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [eax + 0x14]
add ecx, 4
call fcn.00402420
push 0x43ac14
push eax
call fcn.00401f80
lea ecx, [esp + 0x20]
mov bl, al
call fcn.00401040
test bl, bl
je 0x4090fa
mov edx, dword [0x44b18c]
mov ecx, dword [edx + 0x14]
push 0x43ac14
add ecx, 4
call fcn.00402ad0
mov eax, dword [0x44b18c]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax + 4]
mov edx, dword [ecx - 0xc]
add eax, 4
cmp edx, 4
jge 0x40912b
mov ecx, dword [esi + 0x30]
push 0x10
push 0x43b5f4
push 0x43b9d0
call fcn.0042c437
xor eax, eax
jmp 0x4092ca
push eax
lea ecx, [esp + 0x14]
call fcn.00402160
mov edx, dword [esp + 0x10]
cmp dword [edx - 0xc], 0x104
mov dword [esp + 0x24c], 0
jl 0x409171
mov ecx, dword [esi + 0x30]
push 0x10
push 0x43b5f4
push 0x43b9b4
call fcn.0042c437
lea ecx, [esp + 0x10]
call fcn.00401040
xor eax, eax
jmp 0x4092ca
mov eax, dword [str.Everyone]
mov ecx, dword [0x43b9ac]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov dword [esp + 0x28], eax
mov al, byte [0x43b9b0]
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x30], al
xor eax, eax
mov ecx, 0x3e
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
stosb byte es:[edi], al
call ebx
test eax, eax
jne 0x40927e
mov edi, 1
call fcn.0042aa9b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
push edi
push 0x5c
lea ecx, [esp + 0x18]
mov byte [esp + 0x254], 1
call fcn.00404970
cmp eax, 0xffffffff
je 0x4092eb
lea edi, [eax + 1]
push edi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
call fcn.00404a70
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x250], 2
call fcn.00402880
lea ecx, [esp + 0x24]
mov byte [esp + 0x24c], 1
call fcn.00401040
mov esi, dword [esp + 0xc]
push esi
lea ecx, [esp + 0x134]
push 0x43aec0
push ecx
call fcn.0041c813
add esp, 0xc
push 0x10000000
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x138]
push eax
mov ecx, 0x44b188
call fcn.00409be0
push esi
call ebx
test eax, eax
jne 0x409265
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4092fe
lea ecx, [esp + 0xc]
mov byte [esp + 0x24c], 0
call fcn.00401040
test edi, edi
jne 0x4091b3
mov ecx, dword [0x44b18c]
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 4]
push eax
lea ecx, [esp + 0x134]
push 0x43aec0
push ecx
call fcn.0041c813
add esp, 0xc
push 0x10000000
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x138]
push eax
mov ecx, 0x44b188
call fcn.00409be0
lea ecx, [esp + 0x10]
call fcn.00401040
mov eax, 1
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x23c]
call fcn.0041c40e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0xc]
mov byte [esp + 0x24c], 0
call fcn.00401040
jmp 0x40927e
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0xc]
call fcn.00401060
mov ecx, dword [0x44b18c]
mov edx, dword [ecx + 0x14]
add edx, 4
push edx
push 0x43b99c
lea eax, [esp + 0x20]
mov bl, 3
push eax
mov byte [esp + 0x258], bl
call fcn.00406420
push 0x43b990
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x258], 4
call fcn.00404b60
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x250], 5
call fcn.00402880
lea ecx, [esp + 0x14]
call fcn.00401040
lea ecx, [esp + 0x18]
mov byte [esp + 0x24c], bl
call fcn.00401040
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x30]
push 0x10
push 0x43b5f4
push edx
call fcn.0042c437
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call fcn.00401040
xor eax, eax
jmp 0x4092ca