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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6924d7
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x74e694]
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.005c3530
add esp, 8
push 0xffffffffffffffff
push 0x716504
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.005d2b80
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x5cb15a
push eax
push 0x7182c8
lea ecx, [ebp - 0x40]
call fcn.005d2b80
mov ecx, eax
cmp ecx, 0xffffffff
je 0x5cb2b9
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 0x5cb1cb
mov dword [ebp - 0x48], eax
add eax, eax
push eax
push esi
call fcn.0066a672
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 0x5cb206
push esi
call fcn.0066a657
mov al, byte [ebp - 0x41]
add esp, 4
test al, al
jne 0x5cb282
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 0x5cb24a
mov edi, eax
add eax, eax
push eax
push esi
mov dword [ebp - 0x48], edi
call fcn.0066a672
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.005c51f0
mov eax, dword [ebp - 0x4c]
add esp, 4
test eax, eax
je 0x5cb27f
push eax
call fcn.0066a657
add esp, 4
mov edi, dword [ebp - 0x50]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5cb2b6
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5cb2ac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5cb353
push edx
push ecx
call fcn.00663ac7
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 0x5cb2dd
xor bl, bl
jmp 0x5cb305
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 0x5cb2fc
cmp dword [ebp - 0x58], edi
jne 0x5cb2fc
mov bl, 1
jmp 0x5cb2fe
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x5cb335
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5cb32b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5cb358
push edx
push ecx
call fcn.00663ac7
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.00663ada
mov esp, ebp
pop ebp
ret
call fcn.0066a5fb
call fcn.0066a5fb
int3