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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44c9ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x438
mov eax, dword [0x46420c]
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.0x40e814.5
jmp dword [eax*4 + 0x40ebf4]
mov ecx, dword [esi + 0x14]
call fcn.00413250
test eax, eax
jne case.0x40e814.5
mov ecx, dword [esi + 0x38]
push 0x30
push 0x4516cc
push 0x451b98
call fcn.004409af
xor eax, eax
jmp 0x40eb10
mov eax, dword [0x46532c]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 0x29c]
mov eax, dword [edx + 0x2c]
test eax, eax
je case.0x40e814.5
mov ecx, dword [esi + 0x18]
call fcn.00401610
jmp case.0x40e814.5
mov ecx, dword [esi + 0x20]
call fcn.0041f8b0
jmp case.0x40e814.5
mov ecx, dword [esi + 0x1c]
call fcn.0040a7d0
jmp case.0x40e814.5
mov ecx, dword [esi + 0x34]
call fcn.00401930
jmp case.0x40e814.5
mov ecx, dword [esi + 0x24]
call fcn.00412810
mov eax, dword [0x46532c]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 0x224]
mov ecx, dword [edx - 0xc]
test ecx, ecx
jne 0x40e8cb
mov ecx, dword [esi + 0x38]
push 0x30
push 0x4516cc
push 0x451b84
call fcn.004409af
xor eax, eax
jmp 0x40eb10
push 1
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [eax + 0x14]
add ecx, 0x224
call fcn.00403b10
push 0x451b80
push eax
mov dword [esp + 0x454], 0
call fcn.004086a0
lea ecx, [esp + 0x20]
mov bl, al
mov dword [esp + 0x44c], 0xffffffff
call fcn.00401060
test bl, bl
je 0x40e929
mov edx, dword [0x46532c]
mov ecx, dword [edx + 0x14]
push 0x451b80
add ecx, 0x224
call fcn.0040e560
mov eax, dword [0x46532c]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax + 0x224]
mov ecx, dword [ecx - 0xc]
add eax, 0x224
cmp ecx, 4
jge 0x40e95f
mov ecx, dword [esi + 0x38]
push 0x10
push 0x4516cc
push 0x451b60
call fcn.004409af
xor eax, eax
jmp 0x40eb10
push eax
lea ecx, [esp + 0x14]
call fcn.004023b0
mov edx, dword [esp + 0x10]
cmp dword [edx - 0xc], 0x104
mov dword [esp + 0x44c], 1
jl 0x40e9a5
mov ecx, dword [esi + 0x38]
push 0x10
push 0x4516cc
push 0x451b44
call fcn.004409af
lea ecx, [esp + 0x10]
call fcn.00401060
xor eax, eax
jmp 0x40eb10
mov eax, dword [str.Everyone]
mov ecx, dword [0x44ff7c]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [esp + 0x28], eax
mov eax, dword [0x44ff80]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x44ff84]
mov dword [esp + 0x30], eax
mov ax, word [0x44ff88]
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 0x40eac1
mov edi, 1
jmp 0x40ea00
lea ecx, [esp + 0xc]
call fcn.00401040
push edi
push 0x5c
lea ecx, [esp + 0x18]
mov byte [esp + 0x454], 2
call fcn.004082a0
cmp eax, 0xffffffff
je 0x40eb31
lea edi, [eax + 1]
push edi
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x18]
call fcn.00408500
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x450], 3
call fcn.00402760
lea ecx, [esp + 0x24]
mov byte [esp + 0x44c], 2
call fcn.00401060
mov esi, dword [esp + 0xc]
push esi
lea edx, [esp + 0x234]
push 0x44fd08
push edx
call fcn.0042b87a
add esp, 0xc
push 0x10000000
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x238]
push ecx
mov ecx, 0x465328
call fcn.00411a30
push esi
call ebx
test eax, eax
jne 0x40eaa8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40eb47
lea ecx, [esp + 0xc]
mov byte [esp + 0x44c], 1
call fcn.00401060
test edi, edi
jne 0x40ea00
mov edx, dword [0x46532c]
mov eax, dword [edx + 0x14]
mov ecx, dword [eax + 0x224]
push ecx
lea edx, [esp + 0x234]
push 0x44fd08
push edx
call fcn.0042b87a
add esp, 0xc
push 0x10000000
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x238]
push ecx
mov ecx, 0x465328
call fcn.00411a30
lea ecx, [esp + 0x10]
call fcn.00401060
mov eax, 1
mov ecx, dword [esp + 0x444]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x43c]
call fcn.0042b3a1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0xc]
mov byte [esp + 0x44c], 1
call fcn.00401060
jmp 0x40eac1
lea ecx, [esp + 0xc]
call fcn.00401060
lea ecx, [esp + 0xc]
call fcn.00401040
mov edx, dword [0x46532c]
mov eax, dword [edx + 0x14]
add eax, 0x224
push eax
push 0x451b38
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x458], 4
call fcn.00402830
push 0x451b2c
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x458], 5
call fcn.00403e70
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x450], 6
call fcn.00402760
lea ecx, [esp + 0x14]
call fcn.00401060
lea ecx, [esp + 0x18]
mov byte [esp + 0x44c], 4
call fcn.00401060
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x38]
push 0x10
push 0x4516cc
push eax
call fcn.004409af
lea ecx, [esp + 0xc]
call fcn.00401060
lea ecx, [esp + 0x10]
call fcn.00401060
xor eax, eax
jmp 0x40eb10