Function at 0x4025a0
Capabilities:
Check if file exists
Create directory
Delete file
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42b64b
mov eax, dword fs:[0]
push eax
sub esp, 0xe20
mov eax, dword [0x437164]
xor eax, esp
mov dword [esp + 0xe1c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x437164]
xor eax, esp
push eax
lea eax, [esp + 0xe34]
mov dword fs:[0], eax
mov eax, dword [esp + 0xe44]
push 0
push 0x80
push 4
push 0
push 1
push 0x80000000
push eax
mov ebp, ecx
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402612
mov eax, 3
jmp 0x402952
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x1388
call fcn.00408518
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402608
push 0x1388
push 0
push ebx
call fcn.00408700
add esp, 0xc
push 0
lea eax, [esp + 0x20]
push eax
push 0x1388
push ebx
push esi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, str.__GS__
mov esi, ebx
mov ecx, 7
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x402938
mov edi, str.__Dict__
lea esi, [ebx + 0xa]
mov ecx, 9
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x402938
mov eax, dword [ebx + 0x34]
mov edx, dword [eax + ebx + 0x3a]
add eax, 6
lea eax, [eax + edx + 6]
mov edx, dword [eax + ebx + 0x34]
add eax, 4
lea ecx, [ebx + 0x38]
lea esi, [eax + ebx + 0x34]
lea eax, [eax + edx + 6]
push ecx
lea ecx, [ebp + 0x14]
lea edi, [eax + ebx + 0x34]
call fcn.004021b0
push esi
lea ecx, [ebp + 0x30]
call fcn.004021b0
push edi
lea ecx, [ebp + 0x4c]
call fcn.004021b0
mov eax, dword [ebx + 0x24]
xor esi, esi
push 0x206
mov dword [ebp + 0x68], eax
mov ecx, dword [ebx + 0x28]
lea edx, [esp + 0x846]
push esi
push edx
mov dword [ebp + 0x6c], ecx
mov word [esp + 0x84c], si
call fcn.00408700
push 0x206
lea eax, [esp + 0x32]
push esi
push eax
mov word [esp + 0x38], si
call fcn.00408700
push 0x206
lea ecx, [esp + 0x246]
push esi
push ecx
mov word [esp + 0x24c], si
call fcn.00408700
push 0x3e6
lea edx, [esp + 0xa72]
push esi
push edx
mov word [esp + 0xa78], si
call fcn.00408700
mov edi, dword [esp + 0x44]
lea ecx, [esp + 0xa78]
add esp, 0x30
mov eax, edi
sub ecx, edi
movzx edx, word [eax]
mov word [ecx + eax], dx
add eax, 2
cmp dx, si
jne 0x402753
mov ecx, dword [0x438ad0]
lea eax, [esp + 0x840]
push eax
push edi
call fcn.00401200
mov ecx, eax
call fcn.00401030
mov ecx, dword [0x438ad0]
call fcn.004011f0
mov ecx, eax
call fcn.00405c10
push eax
lea ecx, [esp + 0x22c]
push str._sDict_
push ecx
call fcn.00408610
add esp, 0xc
lea edx, [esp + 0x228]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4027c6
push esi
lea eax, [esp + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 0x840]
push ecx
lea edx, [esp + 0x22c]
push edx
lea eax, [esp + 0x28]
push 0x42d360
push eax
call fcn.00408610
add esp, 0x10
cmp dword [ebp], esi
je 0x40287f
cmp dword [ebp + 4], esi
jne 0x402851
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402851
lea ecx, [esp + 0x14]
call fcn.00404d30
mov ecx, dword [0x438ad0]
push esi
mov dword [esp + 0xe40], esi
call fcn.004011e0
push eax
lea ecx, [esp + 0x1c]
call fcn.004050f0
xor edx, edx
cmp eax, 1
sete dl
lea ecx, [esp + 0x14]
mov dword [ebp + 4], 1
mov dword [esp + 0xe3c], 0xffffffff
mov dword [ebp + 0xc], edx
call fcn.00404d40
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40287f
cmp dword [ebp + 0xc], esi
jne 0x40287f
push ebx
mov dword [ebp + 8], 1
call fcn.0040877a
add esp, 4
mov eax, 4
jmp 0x402952
push 0x206
lea ecx, [esp + 0x436]
push esi
push ecx
mov word [esp + 0x43c], si
call fcn.00408700
push 0x206
lea edx, [esp + 0x64a]
push esi
push edx
mov word [esp + 0x650], si
call fcn.00408700
add esp, 0x18
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0xa48]
mov word [esp + eax + 0x430], cx
add eax, 2
cmp cx, si
jne 0x4028c0
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x20]
mov word [esp + eax + 0x638], cx
add eax, 2
cmp cx, si
jne 0x4028e0
lea eax, [esp + 0x430]
push eax
call fcn.0040959e
lea ecx, [esp + 0x63c]
push ecx
call fcn.0040959e
add esp, 8
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0xa4c]
push eax
call fcn.00408180
push ebx
call fcn.0040877a
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
jmp 0x402952
push ebx
call fcn.0040877a
mov eax, dword [esp + 0xe4c]
add esp, 4
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
mov ecx, dword [esp + 0xe34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe1c]
xor ecx, esp
call fcn.004086c2
add esp, 0xe2c
ret 8