Function at 0x4012e0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431000
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x448034]
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
mov dword [ebp - 0x68], edx
mov esi, ecx
push 1
push 0xffffffffffffffff
push 0x436b24
call fcn.00402cd0
push eax
push 0
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
call fcn.00402830
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x34]
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp - 0x48]
cmp edx, 8
jb 0x401352
mov eax, ecx
test ecx, ecx
je 0x401369
jmp 0x401355
lea eax, [ebp - 0x48]
cmp word [eax], 0
je 0x401369
push eax
call edi
cmp eax, 0xffffffff
jne 0x40138a
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x48]
cmp edx, 8
lea eax, [ebp - 0x48]
cmovae eax, ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40138a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401583
cmp byte [0x44a7d4], 0
jne 0x401409
cmp dword [esi + 0x14], 8
jb 0x40139d
mov eax, dword [esi]
jmp 0x40139f
mov eax, esi
push eax
lea ecx, [ebp - 0x60]
call fcn.004026f0
cmp dword [ebp - 0x4c], 8
mov eax, dword [ebp - 0x60]
jb 0x4013b9
mov ecx, eax
test eax, eax
je 0x4013f6
jmp 0x4013bc
lea ecx, [ebp - 0x60]
cmp word [ecx], 0
je 0x4013f6
push ecx
call edi
cmp eax, 0xffffffff
je 0x4013f3
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
cmovae eax, dword [ebp - 0x60]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
cmovae eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0x4c], 8
jb 0x401402
push eax
call ebx
add esp, 4
mov byte [0x44a7d4], 1
cmp dword [esi + 0x14], 8
jb 0x401411
mov esi, dword [esi]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x64], esi
cmp esi, 0xffffffff
je 0x401583
push 0xffffffffffffffff
push 0
push dword [ebp - 0x68]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
call fcn.00402a20
mov byte [ebp - 4], 1
push 2
push 0x436b70
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x80], 0
call fcn.00402da0
mov byte [ebp - 4], 2
push 3
push 0x436b74
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
call fcn.00402da0
lea eax, [ebp - 0x80]
push eax
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.00404280
add esp, 4
cmp dword [ebp - 0x4c], 0x10
jb 0x4014c7
push dword [ebp - 0x60]
call ebx
add esp, 4
cmp dword [ebp - 0x6c], 0x10
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
jb 0x4014e7
push dword [ebp - 0x80]
call ebx
add esp, 4
cmp dword [ebp - 0x1c], 0x10
mov edi, dword [ebp - 0x20]
lea edx, [ebp - 0x30]
cmovae edx, dword [ebp - 0x30]
xor ecx, ecx
mov word [ebp - 0x14], 0xe1b5
mov byte [ebp - 0x12], 0xe5
test edi, edi
je 0x40151a
mov al, byte [ecx + edx]
test al, al
je 0x401515
cmp al, 0x5a
je 0x401515
xor al, 0x5a
mov byte [ecx + edx], al
inc ecx
cmp ecx, edi
jb 0x401505
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x18]
push eax
push 3
lea eax, [ebp - 0x14]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x18], 0
call esi
cmp dword [ebp - 0x1c], 0x10
push 0
lea ecx, [ebp - 0x18]
push ecx
push edi
mov edi, dword [ebp - 0x64]
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0x10
jb 0x401571
push dword [ebp - 0x30]
call ebx
add esp, 4
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
cmp dword [ebp - 0x34], 8
jb 0x401591
push dword [ebp - 0x48]
call ebx
add esp, 4
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.0042ef5e
mov esp, ebp
pop ebp
ret