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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4464ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x438
mov eax, dword [0x45b1e4]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x438], eax
mov eax, dword [esi]
add eax, 0xfffffffd
cmp eax, 6
push edi
mov dword [esp + 0x1c], esi
ja case.0x40e404.5
jmp dword [eax*4 + 0x40e7cc]
mov ecx, dword [esi + 0x14]
call fcn.004105d0
test eax, eax
jne case.0x40e404.5
mov ecx, dword [esi + 0x38]
push 0x30
push 0x44a6e4
push 0x44abb0
call fcn.0043a609
xor eax, eax
jmp 0x40e6ed
mov eax, dword [0x45c16c]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 0x94]
mov eax, dword [edx + 0x2c]
test eax, eax
je case.0x40e404.5
mov ecx, dword [esi + 0x18]
call fcn.00401610
jmp case.0x40e404.5
mov ecx, dword [esi + 0x20]
call fcn.0041cc50
jmp case.0x40e404.5
mov ecx, dword [esi + 0x1c]
call fcn.0040a3c0
jmp case.0x40e404.5
mov ecx, dword [esi + 0x34]
call fcn.004018f0
jmp case.0x40e404.5
mov ecx, dword [esi + 0x24]
call fcn.0040fb60
mov eax, dword [0x45c16c]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 0x1c]
mov ecx, dword [edx - 0xc]
test ecx, ecx
jne 0x40e4b8
mov ecx, dword [esi + 0x38]
push 0x30
push 0x44a6e4
push 0x44ab9c
call fcn.0043a609
xor eax, eax
jmp 0x40e6ed
push 1
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [eax + 0x14]
add ecx, 0x1c
call fcn.004031b0
push 0x44ab98
push eax
mov dword [esp + 0x454], 0
call fcn.00407e30
lea ecx, [esp + 0x20]
mov bl, al
mov dword [esp + 0x44c], 0xffffffff
call fcn.00401040
test bl, bl
je 0x40e510
mov edx, dword [0x45c16c]
mov ecx, dword [edx + 0x14]
push 0x44ab98
add ecx, 0x1c
call fcn.0040e150
mov eax, dword [0x45c16c]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax + 0x1c]
mov ecx, dword [ecx - 0xc]
add eax, 0x1c
cmp ecx, 4
jge 0x40e541
mov ecx, dword [esi + 0x38]
push 0x10
push 0x44a6e4
push 0x44ab78
call fcn.0043a609
xor eax, eax
jmp 0x40e6ed
push eax
lea ecx, [esp + 0x14]
call fcn.00402fb0
mov edx, dword [esp + 0x10]
cmp dword [edx - 0xc], 0x104
mov dword [esp + 0x44c], 1
jl 0x40e587
mov ecx, dword [esi + 0x38]
push 0x10
push 0x44a6e4
push 0x44ab5c
call fcn.0043a609
lea ecx, [esp + 0x10]
call fcn.00401040
xor eax, eax
jmp 0x40e6ed
mov eax, dword [str.Everyone]
mov ecx, dword [0x448f18]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [esp + 0x28], eax
mov eax, dword [0x448f1c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x448f20]
mov dword [esp + 0x30], eax
mov ax, word [0x448f24]
mov dword [esp + 0x34], ecx
mov word [esp + 0x38], ax
xor eax, eax
mov ecx, 0x7d
lea edi, [esp + 0x3a]
rep stosd dword es:[edi], eax
push edx
stosw word es:[edi], ax
call ebx
test eax, eax
jne 0x40e6a1
mov edi, 1
lea ecx, [ecx]
lea ecx, [esp + 0xc]
call fcn.00401060
push edi
push 0x5c
lea ecx, [esp + 0x18]
mov byte [esp + 0x454], 2
call fcn.00407950
cmp eax, 0xffffffff
je 0x40e70e
lea edi, [eax + 1]
push edi
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x18]
call fcn.00407bd0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x450], 3
call fcn.004036d0
lea ecx, [esp + 0x24]
mov byte [esp + 0x44c], 2
call fcn.00401040
mov esi, dword [esp + 0xc]
push esi
lea edx, [esp + 0x234]
push 0x448cf8
push edx
call fcn.00428c0a
add esp, 0xc
push 0x10000000
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x238]
push ecx
mov ecx, 0x45c168
call fcn.0040eec0
push esi
call ebx
test eax, eax
jne 0x40e688
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40e721
lea ecx, [esp + 0xc]
mov byte [esp + 0x44c], 1
call fcn.00401040
test edi, edi
jne 0x40e5e0
mov edx, dword [0x45c16c]
mov eax, dword [edx + 0x14]
mov ecx, dword [eax + 0x1c]
push ecx
lea edx, [esp + 0x234]
push 0x448cf8
push edx
call fcn.00428c0a
add esp, 0xc
push 0x10000000
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x238]
push ecx
mov ecx, 0x45c168
call fcn.0040eec0
lea ecx, [esp + 0x10]
call fcn.00401040
mov eax, 1
mov ecx, dword [esp + 0x444]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x43c]
call fcn.00428731
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0xc]
mov byte [esp + 0x44c], 1
call fcn.00401040
jmp 0x40e6a1
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0xc]
call fcn.00401060
mov edx, dword [0x45c16c]
mov eax, dword [edx + 0x14]
add eax, 0x1c
push eax
push 0x44ab50
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x458], 4
call fcn.00407ce0
push 0x44ab44
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x458], 5
call fcn.004037a0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x450], 6
call fcn.004036d0
lea ecx, [esp + 0x14]
call fcn.00401040
lea ecx, [esp + 0x18]
mov byte [esp + 0x44c], 4
call fcn.00401040
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x38]
push 0x10
push 0x44a6e4
push eax
call fcn.0043a609
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call fcn.00401040
xor eax, eax
jmp 0x40e6ed