Function at 0x10004b14
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x2288
call fcn.1000c040
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1000e030]
xor rax, rsp
mov qword [rsp + 0x2270], rax
mov r14, rdx
mov rbx, rcx
xor r13d, r13d
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x48], r13d
call fcn.10005964
cmp eax, r13d
je 0x10004c65
mov qword [rsp + 0x20], r14
mov r9, rbx
lea rbp, [r13 - 1]
mov r8, rbp
mov edx, 0x1000
lea rcx, [rsp + 0x270]
call qword [sym.imp.MSVCR80.dll__vsnwprintf_s]
lea esi, [rbp + 2]
cmp eax, ebp
jne 0x10004bf7
mov edi, 0x100
mov r9d, edi
lea r8, [rsp + 0x70]
lea ebx, [rbp + 0xe]
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadStringW]
cmp eax, r13d
jne 0x10004bc1
mov r8d, edi
lea rdx, [rsp + 0x70]
mov ecx, ebx
call fcn.10004494
cmp eax, r13d
je 0x10004bf7
xor eax, eax
mov rcx, rbp
lea rdi, [rsp + 0x70]
repne scasw ax, word [rdi]
not rcx
sub rcx, rsi
lea rdx, [rsi + rcx]
lea rax, [rdx + rdx]
lea rcx, [rsp + 0x2270]
sub rcx, rax
lea r8, [rsp + 0x70]
call qword [sym.imp.MSVCR80.dll_wcscpy_s]
xor eax, eax
mov rcx, rbp
lea rdi, [rsp + 0x270]
repne scasw ax, word [rdi]
not rcx
sub rcx, rsi
add ecx, esi
lea edi, [rcx + rcx*2]
mov ecx, edi
call fcn.10005578
mov rbx, rax
mov qword [rsp + 0x40], rax
xor r14d, r14d
cmp rax, r14
cmovne r13d, esi
mov dword [rsp + 0x48], r13d
add edi, ebp
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ecx, eax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
mov r9d, ebp
lea r8, [rsp + 0x270]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x10004d65
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x58], r13d
xor eax, eax
lea rbp, [rax - 1]
mov rcx, rbp
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea esi, [rax + 1]
sub rcx, rsi
add ecx, esi
lea edi, [rcx + rcx*2]
mov ecx, edi
call fcn.10005578
mov r12, rax
mov qword [rsp + 0x50], rax
mov r15d, r13d
cmp rax, r13
cmovne r15d, esi
mov dword [rsp + 0x58], r15d
add edi, ebp
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ecx, eax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r12
mov r9d, ebp
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r11, r13
xor eax, eax
mov rcx, rbp
mov rdi, r12
repne scasb al, byte [rdi]
not rcx
cmp rcx, rsi
je 0x10004d17
cmp byte [r11 + r12], 0x25
jne 0x10004cff
cmp byte [r11 + r12 + 1], 0x73
jne 0x10004cff
mov byte [r11 + r12 + 1], 0x53
add r11, rsi
xor eax, eax
mov rcx, rbp
mov rdi, r12
repne scasb al, byte [rdi]
not rcx
sub rcx, rsi
cmp r11, rcx
jb 0x10004cea
mov edi, 0x400
mov rcx, rdi
call fcn.10005578
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
cmovne r13d, esi
mov dword [rsp + 0x48], r13d
mov qword [rsp + 0x20], r14
mov r9, r12
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.MSVCR80.dll__vsnprintf_s]
nop
xor r14d, r14d
cmp r15d, r14d
je 0x10004d65
mov rcx, r12
call fcn.10005668
mov dword [rsp + 0x58], r14d
xor eax, eax
mov rcx, rbp
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
sub rcx, rsi
mov rdi, rcx
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x60]
mov r8d, edi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
cmp r13d, r14d
je 0x10004daf
mov rcx, rbx
call fcn.10005668
mov dword [rsp + 0x48], r14d
mov rcx, qword [rsp + 0x2270]
xor rcx, rsp
call fcn.1000b7a0
add rsp, 0x2288
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret