Function at 0x4ca1f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x696f5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x142dc
call fcn.004ccea0
mov eax, dword [0x6ce36c]
xor eax, ebp
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp + 8]
call fcn.0049cd70
push eax
call fcn.004c8050
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4ca23d
xor al, al
jmp 0x4ca4b9
push 0
push 0
push 0
push 0
push 0x200
lea eax, [ebp - 0x14274]
push eax
lea ecx, [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.004c8960
add esp, 0x20
test eax, eax
je 0x4ca26a
jmp 0x4ca4ab
lea eax, [ebp - 0x14274]
push eax
call fcn.004ccb20
add esp, 4
mov dword [ebp - 0x68], eax
xor ecx, ecx
je 0x4ca282
jmp 0x4ca2cb
mov dword [ebp - 0x1427c], 0
jmp 0x4ca29d
mov edx, dword [ebp - 0x1427c]
add edx, 1
mov dword [ebp - 0x1427c], edx
mov eax, dword [ebp - 0x1427c]
cmp eax, dword [ebp - 0x68]
jge 0x4ca2cb
mov ecx, dword [ebp - 0x1427c]
movsx edx, byte [ebp + ecx - 0x14274]
cmp edx, 0x2f
jne 0x4ca2c9
mov eax, dword [ebp - 0x1427c]
mov byte [ebp + eax - 0x14274], 0x5c
jmp 0x4ca28e
cmp dword [ebp - 0x68], 2
jl 0x4ca35a
mov ecx, dword [ebp - 0x68]
movsx edx, byte [ebp + ecx - 0x14276]
xor edx, 0x20
sub edx, 0xa1
movzx eax, dl
cmp eax, 0x3b
jle 0x4ca35a
mov ecx, dword [ebp - 0x68]
movsx edx, byte [ebp + ecx - 0x14275]
cmp edx, 0x5c
jne 0x4ca35a
lea eax, [ebp - 0x14274]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x14298]
push edx
call fcn.004ca530
add esp, 0xc
mov dword [ebp - 0x142d4], eax
mov eax, dword [ebp - 0x142d4]
mov dword [ebp - 0x142d8], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x142d8]
push ecx
call fcn.004ca0c0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14298]
call fcn.0049caf0
jmp 0x4ca496
mov edx, dword [ebp - 0x10]
push edx
call fcn.004c95e0
add esp, 4
test eax, eax
je 0x4ca36f
jmp 0x4ca4ab
lea eax, [ebp - 0x14274]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x142b4]
push edx
call fcn.004ca530
add esp, 0xc
mov dword [ebp - 0x142dc], eax
mov eax, dword [ebp - 0x142dc]
mov dword [ebp - 0x142e0], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x142e0]
push ecx
call fcn.004ca0c0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x142b4]
call fcn.0049caf0
lea edx, [ebp - 0x14274]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x142d0]
push ecx
call fcn.004ca530
add esp, 0xc
mov dword [ebp - 0x142e4], eax
mov edx, dword [ebp - 0x142e4]
mov dword [ebp - 0x142e8], edx
mov dword [ebp - 4], 2
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
mov ecx, dword [ebp - 0x142e8]
call fcn.0049cd70
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x142d0]
call fcn.0049caf0
push 0x14000
lea eax, [ebp - 0x14074]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004c96a0
add esp, 0xc
mov dword [ebp - 0x14278], eax
cmp dword [ebp - 0x14278], 0
jbe 0x4ca476
push 0
lea edx, [ebp - 0x14278]
push edx
mov eax, dword [ebp - 0x14278]
push eax
lea ecx, [ebp - 0x14074]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4ca42c
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [ebp - 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
push edx
call fcn.004c9d70
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
call fcn.004c8ae0
add esp, 4
cmp eax, 0xffffff9c
jne 0x4ca23d
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004c8090
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x70]
xor ecx, ebp
call fcn.004cac87
mov esp, ebp
pop ebp
ret