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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4cf0
mov eax, dword fs:[0]
push eax
sub esp, 0x4a8
mov eax, dword [0x4e5070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4a8], edx
mov dword [ebp - 0x4ac], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4b0], eax
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp word [edx], ax
jne 0x418e63
xor ecx, ecx
jmp 0x418e7f
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418e70
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.004036e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
cmp edx, 8
mov esi, dword [ebp - 0x2c]
cmovae ecx, esi
lea edi, [eax + eax]
cmp word [edi + ecx], 0x5c
jne 0x418ebe
cmp edx, 8
lea eax, [ebp - 0x2c]
cmovae eax, esi
cmp word [edi + eax], 0x2f
je 0x418ed3
push 1
push 0x4c9500
lea ecx, [ebp - 0x2c]
call fcn.0040a550
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
cmp edx, 8
lea eax, [ebp - 0x2c]
cmovae eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x418f11
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x418f11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0x200
jmp 0x4190ac
mov edx, dword [ebp - 0x4a8]
push ecx
mov ecx, dword [ebp - 0x4ac]
push 3
call fcn.00418030
mov edi, eax
add esp, 8
test edi, edi
jne 0x418f38
mov ebx, 0x200
jmp 0x4190ac
lea eax, [ebp - 0x4a4]
or edx, 0xffffffff
push eax
mov ecx, edi
call fcn.00418160
mov eax, dword [ebp - 0x4a4]
add esp, 4
xor esi, esi
mov dword [ebp - 0x4a8], eax
test eax, eax
jle 0x419094
nop dword [eax]
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x274], 0
cmp dword [edi], 1
mov word [ebp - 0x270], ax
mov dword [ebp - 0x48], eax
je 0x418f97
mov dword [0x4e90ac], 0x80000
jmp 0x418fac
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x274]
push eax
push esi
call fcn.00417470
mov dword [0x4e90ac], eax
lea eax, [ebp - 0x270]
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.0040ab80
add esp, 4
mov byte [ebp - 4], 1
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 0x30]
cmp ecx, 8
mov edx, dword [ebp - 0x44]
cmovae eax, edx
cmp dword [edi], 1
jne 0x41906f
mov ecx, dword [edi + 4]
sub esp, 8
push eax
push esi
call fcn.00417c60
mov ebx, eax
mov dword [0x4e90ac], ebx
cmp ebx, 0x5000000
je 0x41903f
test ebx, ebx
jne 0x419067
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], eax
cmp dword [ecx + 0x14], 8
jb 0x419017
mov eax, dword [ecx]
jmp 0x419019
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x44]
push edx
push eax
call fcn.004037e0
push dword [ebp - 0x4a8]
push esi
push dword [ebp - 0x4b0]
call fcn.00408410
add esp, 0x24
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x419058
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00404770
inc esi
cmp esi, dword [ebp - 0x4a8]
jl 0x418f70
jmp 0x419094
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x44]
jmp 0x41907e
mov dword [0x4e90ac], 0x80000
mov ebx, 0x80000
mov byte [ebp - 4], 0
cmp ecx, 8
jb 0x419094
lea eax, [ecx + 1]
push eax
push edx
lea ecx, [ebp - 0x44]
call fcn.00404770
cmp dword [edi], 1
mov ecx, edi
sete al
test al, al
je 0x4190a7
call fcn.004181c0
jmp 0x4190ac
call fcn.00418ad0
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x4190c1
inc ecx
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.00404770
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00493122
mov esp, ebp
pop ebp
ret