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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438e9d
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x44e040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x68]
call fcn.0041f860
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x50]
call fcn.0040b1a0
mov byte [ebp - 4], 1
mov eax, 0x43e8ac
lea ecx, [ebp - 0x2c]
call fcn.0040b1a0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x50]
call fcn.00404550
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x4366c3
mov eax, dword [ebp - 0x34]
and eax, 0x10
jbe 0x4366c3
mov dword [ebp - 0x6c], 1
mov byte [ebp - 4], 1
lea esi, [ebp - 0x2c]
call fcn.00404500
mov byte [ebp - 4], 0
lea esi, [ebp - 0x50]
call fcn.00404500
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.0041f8d0
mov eax, dword [ebp - 0x6c]
jmp 0x436917
push 0x5c
mov ecx, dword [0x44064c]
lea ebx, [ebp - 0x50]
call fcn.0041cb50
mov esi, eax
lea eax, [ebp - 0x50]
call fcn.00413a80
sub eax, 1
cmp esi, eax
je 0x436705
push 0x2f
mov ecx, dword [0x44064c]
lea ebx, [ebp - 0x50]
call fcn.0041cb50
mov esi, eax
lea eax, [ebp - 0x50]
call fcn.00413a80
sub eax, 1
cmp esi, eax
jne 0x436756
lea eax, [ebp - 0x50]
call fcn.00413a80
sub eax, 1
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
xor edx, edx
lea esi, [ebp - 0x88]
call fcn.0041cb60
mov dword [ebp - 0xc4], eax
mov edx, dword [ebp - 0xc4]
mov dword [ebp - 0xc8], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0x50]
call fcn.0040a3e0
mov byte [ebp - 4], 2
lea esi, [ebp - 0x88]
call fcn.00404500
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x30], 0
jmp 0x43676f
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x50]
call fcn.00413a80
cmp dword [ebp - 0x30], eax
jae 0x4367f6
mov edi, dword [ebp - 0x30]
lea eax, [ebp - 0x50]
call fcn.00413a50
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x4367bb
mov edi, dword [ebp - 0x30]
lea eax, [ebp - 0x50]
call fcn.00413a50
movzx edx, word [eax]
cmp edx, 0x2f
je 0x4367bb
mov edi, dword [ebp - 0x30]
lea eax, [ebp - 0x50]
call fcn.00413a50
movzx eax, word [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041f840
jmp 0x4367d5
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x68]
call fcn.0041f940
lea edx, [ebp - 0x2c]
push edx
mov edx, 0x43e8b0
call fcn.004092b0
lea eax, [ebp - 0x50]
call fcn.00413a80
sub eax, 1
cmp dword [ebp - 0x30], eax
jne 0x4367f1
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x68]
call fcn.0041f940
jmp 0x436766
mov dword [ebp - 0x30], 1
jmp 0x436808
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x68]
call fcn.0041f8f0
cmp dword [ebp - 0x30], eax
jae 0x436854
mov edx, dword [ebp - 0x30]
push edx
lea ecx, [ebp - 0x68]
call fcn.0041f910
lea ecx, [ebp - 0x2c]
call fcn.0040a3e0
push 0
lea eax, [ebp - 0x2c]
call fcn.00404550
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x436852
push 0x80
lea eax, [ebp - 0x2c]
call fcn.00404550
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x4367ff
lea ecx, [ebp - 0x68]
call fcn.0041f9c0
lea eax, [ebp - 0x50]
call fcn.00404550
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x4368b7
mov eax, dword [ebp - 0x34]
and eax, 0x10
jbe 0x4368b7
mov dword [ebp - 0x8c], 1
mov byte [ebp - 4], 1
lea esi, [ebp - 0x2c]
call fcn.00404500
mov byte [ebp - 4], 0
lea esi, [ebp - 0x50]
call fcn.00404500
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.0041f8d0
mov eax, dword [ebp - 0x8c]
jmp 0x436917
mov dword [ebp - 0x90], 0
mov byte [ebp - 4], 1
lea esi, [ebp - 0x2c]
call fcn.00404500
mov byte [ebp - 4], 0
lea esi, [ebp - 0x50]
call fcn.00404500
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.0041f8d0
mov eax, dword [ebp - 0x90]
jmp 0x436917
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004216dc
mov esp, ebp
pop ebp
ret