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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x440c8d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x438
mov eax, dword [0x4551e4]
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.0x40c6a4.5
jmp dword [eax*4 + 0x40ca6c]
mov ecx, dword [esi + 0x14]
call fcn.0040e5b0
test eax, eax
jne case.0x40c6a4.5
mov ecx, dword [esi + 0x38]
push 0x30
push 0x44530c
push 0x445808
call fcn.00434f27
xor eax, eax
jmp 0x40c98d
mov eax, dword [0x45616c]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 0x68]
mov eax, dword [edx + 0x2c]
test eax, eax
je case.0x40c6a4.5
mov ecx, dword [esi + 0x18]
call fcn.00401610
jmp case.0x40c6a4.5
mov ecx, dword [esi + 0x20]
call fcn.004179f0
jmp case.0x40c6a4.5
mov ecx, dword [esi + 0x1c]
call fcn.004087e0
jmp case.0x40c6a4.5
mov ecx, dword [esi + 0x34]
call fcn.004018f0
jmp case.0x40c6a4.5
mov ecx, dword [esi + 0x24]
call fcn.0040ddd0
mov eax, dword [0x45616c]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 0x1c]
mov ecx, dword [edx - 0xc]
test ecx, ecx
jne 0x40c755
mov ecx, dword [esi + 0x38]
push 0x30
push 0x44530c
push 0x4457f4
call fcn.00434f27
xor eax, eax
jmp 0x40c98d
push 1
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [eax + 0x14]
add ecx, 0x1c
call fcn.00402a30
push 0x4457f0
push eax
mov dword [esp + 0x454], 0
call fcn.00406bc0
lea ecx, [esp + 0x20]
mov bl, al
mov dword [esp + 0x44c], 0xffffffff
call fcn.00401060
test bl, bl
je 0x40c7ad
mov edx, dword [0x45616c]
mov ecx, dword [edx + 0x14]
push 0x4457f0
add ecx, 0x1c
call fcn.0040c3f0
mov eax, dword [0x45616c]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax + 0x1c]
mov ecx, dword [ecx - 0xc]
add eax, 0x1c
cmp ecx, 4
jge 0x40c7de
mov ecx, dword [esi + 0x38]
push 0x10
push 0x44530c
push 0x4457d0
call fcn.00434f27
xor eax, eax
jmp 0x40c98d
push eax
lea ecx, [esp + 0x14]
call fcn.00402770
mov edx, dword [esp + 0x10]
cmp dword [edx - 0xc], 0x104
mov dword [esp + 0x44c], 1
jl 0x40c824
mov ecx, dword [esi + 0x38]
push 0x10
push 0x44530c
push 0x4457b4
call fcn.00434f27
lea ecx, [esp + 0x10]
call fcn.00401060
xor eax, eax
jmp 0x40c98d
mov eax, dword [str.Everyone]
mov ecx, dword [0x4457a4]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [esp + 0x28], eax
mov eax, dword [0x4457a8]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x4457ac]
mov dword [esp + 0x30], eax
mov ax, word [0x4457b0]
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 0x40c941
mov edi, 1
lea ebx, [ebx]
lea ecx, [esp + 0xc]
call fcn.00401040
push edi
push 0x5c
lea ecx, [esp + 0x18]
mov byte [esp + 0x454], 2
call fcn.00406860
cmp eax, 0xffffffff
je 0x40c9ae
lea edi, [eax + 1]
push edi
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x18]
call fcn.00406a10
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x450], 3
call fcn.00402f50
lea ecx, [esp + 0x24]
mov byte [esp + 0x44c], 2
call fcn.00401060
mov esi, dword [esp + 0xc]
push esi
lea edx, [esp + 0x234]
push 0x443ce8
push edx
call fcn.0042396a
add esp, 0xc
push 0x10000000
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x238]
push ecx
mov ecx, 0x456168
call fcn.0040d150
push esi
call ebx
test eax, eax
jne 0x40c928
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40c9c1
lea ecx, [esp + 0xc]
mov byte [esp + 0x44c], 1
call fcn.00401060
test edi, edi
jne 0x40c880
mov edx, dword [0x45616c]
mov eax, dword [edx + 0x14]
mov ecx, dword [eax + 0x1c]
push ecx
lea edx, [esp + 0x234]
push 0x443ce8
push edx
call fcn.0042396a
add esp, 0xc
push 0x10000000
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x238]
push ecx
mov ecx, 0x456168
call fcn.0040d150
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.00423492
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 0x40c941
lea ecx, [esp + 0xc]
call fcn.00401060
lea ecx, [esp + 0xc]
call fcn.00401040
mov edx, dword [0x45616c]
mov eax, dword [edx + 0x14]
add eax, 0x1c
push eax
push 0x445794
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x458], 4
call fcn.00406a70
push 0x445788
push eax
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x458], 5
call fcn.00403020
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x450], 6
call fcn.00402f50
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 0x44530c
push eax
call fcn.00434f27
lea ecx, [esp + 0xc]
call fcn.00401060
lea ecx, [esp + 0x10]
call fcn.00401060
xor eax, eax
jmp 0x40c98d