Function at 0x41c614
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x41c61c
push ecx
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x41c89b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.0041c448
cmp word [0x42b6b8], 0
jne 0x41c86f
push edi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
sete bl
test esi, esi
je 0x41c664
mov eax, ebx
xor al, 1
mov byte [esi], al
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
lea edx, [ebp - 0x28]
mov eax, dword [0x429e00]
call fcn.0040ce60
push dword [ebp - 0x28]
push 0x41c8b4
lea edx, [ebp - 0x2c]
mov eax, dword [0x429dd0]
call fcn.0040ce60
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.0040a858
mov eax, dword [ebp - 0x24]
call fcn.0040a998
push eax
push SysFreeString
call fcn.0040b9e4
not eax
test eax, eax
jne 0x41c6bf
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 8
mov dword [ebp - 0xc], 4
test bl, bl
jne 0x41c77f
cmp dword [ebp - 0x10], 0
je 0x41c77f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
lea edx, [ebp - 0x30]
mov eax, dword [0x429de0]
call fcn.0040ce60
mov eax, dword [ebp - 0x30]
call fcn.0040a998
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040b9f4
test eax, eax
jne 0x41c77f
cmp dword [ebp - 0x20], 3
jne 0x41c77f
cmp dword [ebp - 8], 8
jne 0x41c77f
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
lea edx, [ebp - 0x34]
mov eax, dword [0x429de4]
call fcn.0040ce60
mov eax, dword [ebp - 0x34]
call fcn.0040a998
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040b9f4
test eax, eax
jne 0x41c77f
cmp dword [ebp - 0x20], 3
jne 0x41c77f
cmp dword [ebp - 0xc], 4
jne 0x41c77f
cmp dword [ebp - 0x14], 0x10000
jne 0x41c76d
cmp dword [ebp - 0x18], 0x10000
jbe 0x41c77f
jmp 0x41c76f
jle 0x41c77f
mov eax, edi
call fcn.0041c394
cmp eax, dword [ebp - 0x1c]
je 0x41c85c
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
push edi
call sub.KERNEL32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x41c858
lea edx, [ebp - 4]
mov eax, dword [0x429f9c]
call fcn.0041c580
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a798
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x41c7d6
mov eax, dword [ebp - 4]
call fcn.0040a798
cmp eax, dword [ebp - 8]
je 0x41c7da
xor ebx, ebx
jmp 0x41c7dc
mov bl, 1
push esi
call sub.KERNEL32.dll_CloseHandle
test bl, bl
je 0x41c85e
cmp dword [ebp - 0x10], 0
je 0x41c85e
mov dword [ebp - 0x18], 0x10000
mov dword [ebp - 0x14], 0x10000
mov eax, edi
call fcn.0041c394
mov dword [ebp - 0x1c], eax
push 8
lea eax, [ebp - 0x18]
push eax
push 3
push 0
lea edx, [ebp - 0x38]
mov eax, dword [0x429de0]
call fcn.0040ce60
mov eax, dword [ebp - 0x38]
call fcn.0040a998
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040b9fc
push 4
lea eax, [ebp - 0x1c]
push eax
push 3
push 0
lea edx, [ebp - 0x3c]
mov eax, dword [0x429de4]
call fcn.0040ce60
mov eax, dword [ebp - 0x3c]
call fcn.0040a998
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040b9fc
jmp 0x41c85e
xor ebx, ebx
jmp 0x41c85e
mov bl, 1
cmp dword [ebp - 0x10], 0
je 0x41c878
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040b9c4
jmp 0x41c878
mov bl, 1
test esi, esi
je 0x41c878
mov byte [esi], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c8a2
lea eax, [ebp - 0x3c]
mov edx, 7
call fcn.0040a52c
lea eax, [ebp - 4]
call fcn.0040a508
ret