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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68b17f
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x745694]
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 edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
mov ebx, dword [ebp + 0xc]
push edi
push eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
call fcn.005be600
add esp, 8
push 0xffffffffffffffff
push 0x70df74
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.005cdba0
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x5c62ca
push eax
push 0x70fd30
lea ecx, [ebp - 0x40]
call fcn.005cdba0
mov ecx, eax
cmp ecx, 0xffffffff
je 0x5c6429
cmp dword [ebp - 0x30], ecx
lea eax, [ebp - 0x40]
mov dword [ebp - 0x28], 0
cmovb ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x2c], 0x10
push ecx
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004484a0
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x28]
xor esi, esi
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0x10
push esi
cmovae eax, dword [ebp - 0x28]
push esi
push 0xffffffffffffffff
push eax
push esi
push 0xfde9
mov dword [ebp - 0x48], esi
call ebx
test eax, eax
je 0x5c633b
mov dword [ebp - 0x48], eax
add eax, eax
push eax
push esi
call fcn.006637d2
add esp, 8
mov esi, eax
push dword [ebp - 0x48]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, dword [ebp - 0x28]
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 0x41], al
test esi, esi
je 0x5c6376
push esi
call fcn.006637b7
mov al, byte [ebp - 0x41]
add esp, 4
test al, al
jne 0x5c63f2
xor esi, esi
xor edi, edi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], edi
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push edi
push 0xffffffffffffffff
push eax
push edi
push 0xfde9
mov byte [ebp - 4], 2
call ebx
test eax, eax
je 0x5c63ba
mov edi, eax
add eax, eax
push eax
push esi
mov dword [ebp - 0x48], edi
call fcn.006637d2
mov esi, eax
add esp, 8
mov dword [ebp - 0x4c], esi
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push edi
cmovae ecx, dword [ebp - 0x28]
push esi
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call ebx
lea eax, [ebp - 0x4c]
push eax
call fcn.005c02c0
mov eax, dword [ebp - 0x4c]
add esp, 4
test eax, eax
je 0x5c63ef
push eax
call fcn.006637b7
add esp, 4
mov edi, dword [ebp - 0x50]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5c6426
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c641c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c64c3
push edx
push ecx
call fcn.0065cc27
add esp, 8
mov ebx, dword [ebp - 0x54]
push 0
push 0x80
push 2
push 0
push 7
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5c644d
xor bl, bl
jmp 0x5c6475
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x58]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5c646c
cmp dword [ebp - 0x58], edi
jne 0x5c646c
mov bl, 1
jmp 0x5c646e
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x5c64a5
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c649b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c64c8
push edx
push ecx
call fcn.0065cc27
add esp, 8
mov al, bl
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.0065cc3a
mov esp, ebp
pop ebp
ret
call fcn.0066375b
call fcn.0066375b
int3