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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44681d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x438
mov eax, dword [0x45c1e4]
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.0x40e714.5
jmp dword [eax*4 + 0x40eadc]
mov ecx, dword [esi + 0x14]
call fcn.004108e0
test eax, eax
jne case.0x40e714.5
mov ecx, dword [esi + 0x38]
push 0x30
push 0x44b71c
push 0x44bbe8
call fcn.0043a8d9
xor eax, eax
jmp 0x40e9fd
mov eax, dword [0x45d16c]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 0x94]
mov eax, dword [edx + 0x2c]
test eax, eax
je case.0x40e714.5
mov ecx, dword [esi + 0x18]
call fcn.00401650
jmp case.0x40e714.5
mov ecx, dword [esi + 0x20]
call fcn.0041cf20
jmp case.0x40e714.5
mov ecx, dword [esi + 0x1c]
call fcn.0040a6d0
jmp case.0x40e714.5
mov ecx, dword [esi + 0x34]
call fcn.00401930
jmp case.0x40e714.5
mov ecx, dword [esi + 0x24]
call fcn.0040fe70
mov eax, dword [0x45d16c]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 0x1c]
mov ecx, dword [edx - 0xc]
test ecx, ecx
jne 0x40e7c8
mov ecx, dword [esi + 0x38]
push 0x30
push 0x44b71c
push 0x44bbd4
call fcn.0043a8d9
xor eax, eax
jmp 0x40e9fd
push 1
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [eax + 0x14]
add ecx, 0x1c
call fcn.004031b0
push 0x44bbd0
push eax
mov dword [esp + 0x454], 0
call fcn.004080c0
lea ecx, [esp + 0x20]
mov bl, al
mov dword [esp + 0x44c], 0xffffffff
call fcn.00401040
test bl, bl
je 0x40e820
mov edx, dword [0x45d16c]
mov ecx, dword [edx + 0x14]
push 0x44bbd0
add ecx, 0x1c
call fcn.0040e460
mov eax, dword [0x45d16c]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax + 0x1c]
mov ecx, dword [ecx - 0xc]
add eax, 0x1c
cmp ecx, 4
jge 0x40e851
mov ecx, dword [esi + 0x38]
push 0x10
push 0x44b71c
push 0x44bbb0
call fcn.0043a8d9
xor eax, eax
jmp 0x40e9fd
push eax
lea ecx, [esp + 0x14]
call fcn.00402ea0
mov edx, dword [esp + 0x10]
cmp dword [edx - 0xc], 0x104
mov dword [esp + 0x44c], 1
jl 0x40e897
mov ecx, dword [esi + 0x38]
push 0x10
push 0x44b71c
push 0x44bb94
call fcn.0043a8d9
lea ecx, [esp + 0x10]
call fcn.00401040
xor eax, eax
jmp 0x40e9fd
mov eax, dword [str.Everyone]
mov ecx, dword [0x449f18]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [esp + 0x28], eax
mov eax, dword [0x449f1c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x449f20]
mov dword [esp + 0x30], eax
mov ax, word [0x449f24]
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 0x40e9b1
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.00407c40
cmp eax, 0xffffffff
je 0x40ea1e
lea edi, [eax + 1]
push edi
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x18]
call fcn.00403220
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x450], 3
call fcn.00403730
lea ecx, [esp + 0x24]
mov byte [esp + 0x44c], 2
call fcn.00401040
mov esi, dword [esp + 0xc]
push esi
lea edx, [esp + 0x234]
push 0x449cf8
push edx
call fcn.00428eda
add esp, 0xc
push 0x10000000
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x238]
push ecx
mov ecx, 0x45d168
call fcn.0040f1d0
push esi
call ebx
test eax, eax
jne 0x40e998
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40ea31
lea ecx, [esp + 0xc]
mov byte [esp + 0x44c], 1
call fcn.00401040
test edi, edi
jne 0x40e8f0
mov edx, dword [0x45d16c]
mov eax, dword [edx + 0x14]
mov ecx, dword [eax + 0x1c]
push ecx
lea edx, [esp + 0x234]
push 0x449cf8
push edx
call fcn.00428eda
add esp, 0xc
push 0x10000000
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x238]
push ecx
mov ecx, 0x45d168
call fcn.0040f1d0
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.00428a01
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 0x40e9b1
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0xc]
call fcn.00401060
mov edx, dword [0x45d16c]
mov eax, dword [edx + 0x14]
add eax, 0x1c
push eax
push 0x44bb88
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x458], 4
call fcn.00407f70
push 0x44bb7c
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x458], 5
call fcn.00403800
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x450], 6
call fcn.00403730
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 0x44b71c
push eax
call fcn.0043a8d9
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call fcn.00401040
xor eax, eax
jmp 0x40e9fd