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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a147b
mov eax, dword fs:[0]
push eax
mov eax, 0x12f4
call fcn.004767e0
mov eax, dword [0x4c506c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x200
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.00477ee0
add esp, 0xc
push 0
push 0
push 0
push 0
push 0x200
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x1280]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00430bc0
add esp, 0x20
test eax, eax
je 0x42e9ca
mov eax, 8
jmp 0x42edda
mov ecx, 1
imul edx, ecx, 0
movsx eax, byte [ebp + edx - 0x210]
test eax, eax
jne 0x42e9e8
mov eax, 8
jmp 0x42edda
lea ecx, [ebp - 0x1228]
call fcn.00405750
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
call fcn.004056c0
movzx ecx, al
test ecx, ecx
je 0x42ea1d
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0x1228]
call fcn.00405730
jmp 0x42ea9a
push 0x4bdde8
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1300]
push ecx
call fcn.004068e0
add esp, 0xc
mov dword [ebp - 0x1290], eax
mov edx, dword [ebp - 0x1290]
mov dword [ebp - 0x1294], edx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x1294]
push ecx
lea edx, [ebp - 0x12e8]
push edx
call fcn.0040fc70
add esp, 0xc
mov dword [ebp - 0x1298], eax
mov eax, dword [ebp - 0x1298]
push eax
lea ecx, [ebp - 0x1228]
call fcn.00406600
lea ecx, [ebp - 0x12e8]
call fcn.00404630
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1300]
call fcn.00404630
lea ecx, [ebp - 0x12c8]
push ecx
lea ecx, [ebp - 0x1228]
call fcn.0042ef80
mov ecx, eax
call fcn.0042ef30
movsx edx, byte [eax]
cmp edx, 0x5c
je 0x42eae0
lea eax, [ebp - 0x12cc]
push eax
lea ecx, [ebp - 0x1228]
call fcn.0042ef80
mov ecx, eax
call fcn.0042ef30
movsx ecx, byte [eax]
cmp ecx, 0x2f
jne 0x42ebc4
lea ecx, [ebp - 0x1228]
call fcn.00404610
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x128c], eax
cmp dword [ebp - 0x128c], 0xffffffff
jne 0x42eb6b
push 0
lea ecx, [ebp - 0x1228]
call fcn.00404610
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x42eb42
mov dword [ebp - 0x129c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1228]
call fcn.00404630
mov eax, dword [ebp - 0x129c]
jmp 0x42edda
mov dword [ebp - 0x12a0], 9
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1228]
call fcn.00404630
mov eax, dword [ebp - 0x12a0]
jmp 0x42edda
mov edx, dword [ebp - 0x128c]
and edx, 0x10
je 0x42eb9d
mov dword [ebp - 0x12a4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1228]
call fcn.00404630
mov eax, dword [ebp - 0x12a4]
jmp 0x42edda
mov dword [ebp - 0x12a8], 0xd
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1228]
call fcn.00404630
mov eax, dword [ebp - 0x12a8]
jmp 0x42edda
push 0x4bddec
lea ecx, [ebp - 0x1228]
call fcn.00404610
push eax
call fcn.0047c4a9
add esp, 8
mov dword [ebp - 0x1284], eax
cmp dword [ebp - 0x1284], 0
jne 0x42ec13
mov dword [ebp - 0x12ac], 0xa
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1228]
call fcn.00404630
mov eax, dword [ebp - 0x12ac]
jmp 0x42edda
mov dword [ebp - 0x12d0], 0x1000
push 0x1000
push 0
lea eax, [ebp - 0x1210]
push eax
call fcn.00477ee0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.004314b0
add esp, 4
test eax, eax
je 0x42ec79
mov edx, dword [ebp - 0x1284]
push edx
call fcn.0047c537
add esp, 4
mov dword [ebp - 0x12b0], 6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1228]
call fcn.00404630
mov eax, dword [ebp - 0x12b0]
jmp 0x42edda
mov eax, 1
test eax, eax
je 0x42ed75
push 0x1000
lea ecx, [ebp - 0x1210]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004314d0
add esp, 0xc
mov dword [ebp - 0x1288], eax
cmp dword [ebp - 0x1288], 0
jge 0x42ecf1
mov eax, dword [ebp + 8]
push eax
call fcn.004319b0
add esp, 4
mov ecx, dword [ebp - 0x1284]
push ecx
call fcn.0047c537
add esp, 4
mov dword [ebp - 0x12b4], 7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1228]
call fcn.00404630
mov eax, dword [ebp - 0x12b4]
jmp 0x42edda
cmp dword [ebp - 0x1288], 0
jne 0x42ecfe
jmp 0x42ed75
mov edx, dword [ebp - 0x1284]
push edx
mov eax, dword [ebp - 0x1288]
push eax
push 1
lea ecx, [ebp - 0x1210]
push ecx
call fcn.0047ed3f
add esp, 0x10
mov dword [ebp - 0x12b8], eax
mov edx, dword [ebp - 0x1288]
cmp edx, dword [ebp - 0x12b8]
je 0x42ed70
mov eax, dword [ebp + 8]
push eax
call fcn.004319b0
add esp, 4
mov ecx, dword [ebp - 0x1284]
push ecx
call fcn.0047c537
add esp, 4
mov dword [ebp - 0x12bc], 0xb
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1228]
call fcn.00404630
mov eax, dword [ebp - 0x12bc]
jmp 0x42edda
jmp 0x42ec79
mov edx, dword [ebp + 8]
push edx
call fcn.004319b0
add esp, 4
mov eax, dword [ebp - 0x1284]
push eax
call fcn.0047c537
add esp, 4
test eax, eax
je 0x42edb8
mov dword [ebp - 0x12c0], 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1228]
call fcn.00404630
mov eax, dword [ebp - 0x12c0]
jmp 0x42edda
mov dword [ebp - 0x12c4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1228]
call fcn.00404630
mov eax, dword [ebp - 0x12c4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475c6f
mov esp, ebp
pop ebp
ret