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

Disassembly:
push 0xffffffffffffffff
push 0x4e76b8
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 0x40273f
lea eax, [edi - 0x10]
jmp 0x402c17
mov esi, dword [esp + 0x94]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call ebp
cmp eax, 0xffffffff
jne 0x40276d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call ebp
cmp eax, 0xffffffff
je 0x40276d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x44]
call fcn.004b2394
push 0x4efeb4
lea ecx, [esp + 0x14]
mov byte [esp + 0x8c], 2
call fcn.00402540
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.00402420
add esp, 0xc
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x90], 4
call fcn.004b2429
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 0x4027ec
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 0x402812
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
je 0x402bc6
lea ebx, [ebx]
mov eax, dword [ebx + 0x20b4]
test eax, eax
je 0x402bc6
lea ecx, [esp + 0x44]
call fcn.004b2270
mov dword [esp + 0x38], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x48]
call fcn.004b2716
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0x8c], 5
call fcn.004b2716
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 0x40287d
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.004b2357
test eax, eax
jne 0x402b94
push 0x4efeb0
lea ecx, [esp + 0x18]
call fcn.00402540
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x8c], 6
call fcn.004b2716
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.00402420
push esi
push eax
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0xa0], 8
call fcn.00402420
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 0x402937
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 0x40295d
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 0x402983
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x4efeb0
lea ecx, [esp + 0x1c]
call fcn.00402540
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x8c], 0xd
call fcn.004b2716
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.00402420
push esi
push eax
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0xa0], 0xf
call fcn.00402420
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 0x402a05
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 0x402a2b
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 0x402a51
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 0x402ad6
push esi
call ebp
cmp eax, 0xffffffff
jne 0x402a8b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call ebp
cmp eax, 0xffffffff
je 0x402a8b
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.00401be0
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.00401be0
add eax, 0x10
add esp, 4
mov ecx, ebx
mov dword [ebp], eax
mov byte [esp + 0x90], 0x11
call fcn.00402700
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call fcn.004e1d89
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.00401750
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 0x402b30
test byte [esp + 0x5c], 0x10
jne 0x402b30
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.004e1d89
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 0x402b72
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 0x402b94
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 0x402bba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x402820
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 0x402bfc
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.004b23ba
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 0x402c36
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 0x402c62
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