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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68b6ef
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x746694]
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.005be990
add esp, 8
push 0xffffffffffffffff
push 0x70eff4
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.005cdf30
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x5c665a
push eax
push 0x710db0
lea ecx, [ebp - 0x40]
call fcn.005cdf30
mov ecx, eax
cmp ecx, 0xffffffff
je 0x5c67b9
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 0x5c66cb
mov dword [ebp - 0x48], eax
add eax, eax
push eax
push esi
call fcn.00663d02
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 0x5c6706
push esi
call fcn.00663ce7
mov al, byte [ebp - 0x41]
add esp, 4
test al, al
jne 0x5c6782
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 0x5c674a
mov edi, eax
add eax, eax
push eax
push esi
mov dword [ebp - 0x48], edi
call fcn.00663d02
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.005c0650
mov eax, dword [ebp - 0x4c]
add esp, 4
test eax, eax
je 0x5c677f
push eax
call fcn.00663ce7
add esp, 4
mov edi, dword [ebp - 0x50]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5c67b6
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c67ac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c6853
push edx
push ecx
call fcn.0065d157
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 0x5c67dd
xor bl, bl
jmp 0x5c6805
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 0x5c67fc
cmp dword [ebp - 0x58], edi
jne 0x5c67fc
mov bl, 1
jmp 0x5c67fe
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x5c6835
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5c682b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5c6858
push edx
push ecx
call fcn.0065d157
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.0065d16a
mov esp, ebp
pop ebp
ret
call fcn.00663c8b
call fcn.00663c8b
int3