Function at 0x4026c0
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4e3518
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov edi, dword [esp + 0x90]
mov eax, dword [edi - 0xc]
test eax, eax
mov dword [esp + 0x88], 1
jne 0x4026ff
lea eax, [edi - 0x10]
jmp 0x402bd7
mov esi, dword [esp + 0x94]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call ebp
cmp eax, 0xffffffff
jne 0x40272d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call ebp
cmp eax, 0xffffffff
je 0x40272d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x44]
call fcn.004ad6da
push 0x4ebe9c
lea ecx, [esp + 0x14]
mov byte [esp + 0x8c], 2
call fcn.00402500
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x94], 3
call fcn.004023e0
add esp, 0xc
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x90], 4
call fcn.004ad76f
mov esi, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x88], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4027ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x88], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4027d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
je 0x402b86
lea ebx, [ebx]
mov eax, dword [ebx + 0x20b4]
test eax, eax
je 0x402b86
lea ecx, [esp + 0x44]
call fcn.004ad4a0
mov dword [esp + 0x38], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x48]
call fcn.004ada5c
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0x8c], 5
call fcn.004ada5c
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40283d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
push 0x400
push eax
lea ecx, [ebx + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edx, dword [ebx + 0x1c]
push 0
push 1
push 0x465
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x44]
call fcn.004ad69d
test eax, eax
jne 0x402b54
push 0x4ebe98
lea ecx, [esp + 0x18]
call fcn.00402500
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x8c], 6
call fcn.004ada5c
mov esi, eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x94], 7
call fcn.004023e0
push esi
push eax
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0xa0], 8
call fcn.004023e0
add esp, 0x18
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x88], 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4028f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x88], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40291d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x88], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402943
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x4ebe98
lea ecx, [esp + 0x1c]
call fcn.00402500
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x8c], 0xd
call fcn.004ada5c
mov esi, eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x94], 0xe
call fcn.004023e0
push esi
push eax
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0xa0], 0xf
call fcn.004023e0
add esp, 0x18
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x88], 0x13
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4029c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x88], 0x12
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4029eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x88], 0x11
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402a11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x44]
push 0x10
lea ecx, [esp + 0x48]
call dword [eax + 0x38]
test eax, eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
je 0x402a96
push esi
call ebp
cmp eax, 0xffffffff
jne 0x402a4b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call ebp
cmp eax, 0xffffffff
je 0x402a4b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x40], esp
mov ebp, esp
push eax
call fcn.00401ba0
add eax, 0x10
mov dword [ebp], eax
lea eax, [esi - 0x10]
mov dword [esp + 0x48], esp
mov ebp, esp
push eax
mov byte [esp + 0x94], 0x14
call fcn.00401ba0
add eax, 0x10
add esp, 4
mov ecx, ebx
mov dword [ebp], eax
mov byte [esp + 0x90], 0x11
call fcn.004026c0
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call fcn.004ddbe9
mov eax, dword [eax + 4]
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0x9c]
push edi
push esi
mov ecx, ebx
call fcn.00401730
lea eax, [esp + 0x5c]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
xor ecx, ecx
xor edx, edx
test eax, eax
je 0x402af0
test byte [esp + 0x5c], 0x10
jne 0x402af0
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
xor ebp, ebp
or ecx, eax
or edx, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add dword [ebx + 0x2090], ecx
adc dword [ebx + 0x2094], edx
call fcn.004ddbe9
mov eax, dword [eax + 4]
mov edx, dword [eax]
push 0xffffffffffffffff
mov ecx, eax
call dword [edx + 0x9c]
lea eax, [edi - 0x10]
mov byte [esp + 0x88], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add esi, 0xfffffff0
mov byte [esp + 0x88], 5
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402b54
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x88], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x4027e0
mov ebx, dword [ebx + 0x20a8]
push 0
push 0
push 3
push 0
push 7
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402bbc
mov edi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call edi
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x44]
mov byte [esp + 0x88], 1
call fcn.004ad700
mov eax, dword [esp + 0x90]
add eax, 0xfffffff0
mov byte [esp + 0x88], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402bf6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x94]
add eax, 0xfffffff0
mov dword [esp + 0x88], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402c22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x80]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x7c
ret 8