Function at 0x14023f8b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x150
mov rax, qword [0x140377790]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor esi, esi
mov rdi, rcx
cmp byte [rcx + 0x104], sil
jne 0x14023f8fc
add rcx, 0x104
call fcn.14023f610
jmp 0x14023fa14
mov edx, dword [rdi + 0x110]
mov ecx, esi
test edx, edx
jle 0x14023f92c
mov rax, qword [rdi + 0x118]
add rax, 0x90
cmp qword [rax - 8], rsi
jne 0x14023f920
cmp dword [rax], 0xffffffff
jne 0x14023f92c
inc ecx
add rax, 0x98
cmp ecx, edx
jl 0x14023f915
cmp ecx, edx
jge 0x14023fa14
lea r9, [rdi + 0x104]
lea r8, [0x14037dd54]
lea rdx, str._s_s
lea rcx, [rsp + 0x30]
call sub.MSVCR90.dll_sprintf
lea rdx, [0x140327fe8]
lea rcx, [rsp + 0x30]
call sub.MSVCR90.dll_fopen
mov r12, rax
test rax, rax
je 0x14023fa14
cmp dword [rdi + 0x110], esi
mov ebp, esi
jle 0x14023fa0c
mov rbx, rsi
mov rax, qword [rdi + 0x118]
cmp qword [rbx + rax + 0x88], rsi
jne 0x14023f9f7
cmp dword [rbx + rax + 0x90], 0xffffffff
je 0x14023f9f7
mov ecx, dword [rbx + rax + 0x84]
call fcn.14014a890
xor r8d, r8d
mov rcx, r12
mov r11, rax
mov rax, qword [rdi + 0x118]
mov qword [rbx + rax + 0x88], r11
mov rax, qword [rdi + 0x118]
mov edx, dword [rbx + rax + 0x90]
call sub.MSVCR90.dll_fseek
mov rcx, qword [rdi + 0x118]
mov r9, r12
movsxd r8, dword [rbx + rcx + 0x84]
mov rcx, qword [rbx + rcx + 0x88]
mov edx, 1
call sub.MSVCR90.dll_fread
inc ebp
add rbx, 0x98
cmp ebp, dword [rdi + 0x110]
jl 0x14023f981
mov rcx, r12
call sub.MSVCR90.dll_fclose
mov edx, dword [rdi + 0x110]
mov eax, esi
mov dword [rsp + 0x20], eax
test edx, edx
jle 0x14023fc4e
mov rcx, qword [rdi + 0x118]
mov r9, rdx
add rcx, 0x88
nop dword [rax]
cmp qword [rcx], rsi
je 0x14023fa4b
inc eax
mov dword [rsp + 0x20], eax
add rcx, 0x98
sub r9, 1
jne 0x14023fa40
test eax, eax
je 0x14023fc4e
lea r9, [rdi + 0x104]
lea r8, [0x14037dd54]
lea rdx, str._s_s
lea rcx, [rsp + 0x30]
call sub.MSVCR90.dll_sprintf
lea rdx, [0x140326fec]
lea rcx, [rsp + 0x30]
call sub.MSVCR90.dll_fopen
mov r12, rax
test rax, rax
je 0x14023fc4e
mov edx, 1
lea rcx, [rsp + 0x24]
mov r9, rax
lea r8d, [rdx + 3]
mov dword [rsp + 0x24], 0x4c4643
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rsp + 0x28]
lea r8d, [rdx + 3]
mov r9, r12
mov dword [rsp + 0x28], 0x100
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rdi + 0x104]
lea r8d, [rdx + 8]
mov r9, r12
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 3]
mov r9, r12
call sub.MSVCR90.dll_fwrite
cmp dword [rdi + 0x110], esi
jle 0x14023fc42
mov rbp, rsi
nop word [rax + rax]
mov rax, qword [rdi + 0x118]
cmp qword [rax + rbp + 0x88], 0
je 0x14023fc2d
mov edx, 1
movsxd rbx, esi
mov r9, r12
lea r8d, [rdx + 0x63]
imul rbx, rbx, 0x98
lea rcx, [rbx + rax]
call sub.MSVCR90.dll_fwrite
mov r11, qword [rdi + 0x118]
mov edx, 1
lea r8d, [rdx + 3]
lea rcx, [r11 + rbx + 0x64]
mov r9, r12
call sub.MSVCR90.dll_fwrite
mov r11, qword [rdi + 0x118]
mov edx, 1
lea r8d, [rdx + 3]
lea rcx, [r11 + rbx + 0x68]
mov r9, r12
call sub.MSVCR90.dll_fwrite
mov r11, qword [rdi + 0x118]
mov edx, 1
lea r8d, [rdx + 0xf]
lea rcx, [r11 + rbx + 0x6c]
mov r9, r12
call sub.MSVCR90.dll_fwrite
mov r11, qword [rdi + 0x118]
mov edx, 1
lea r8d, [rdx + 3]
lea rcx, [r11 + rbx + 0x80]
mov r9, r12
call sub.MSVCR90.dll_fwrite
mov r11, qword [rdi + 0x118]
mov edx, 1
lea r8d, [rdx + 3]
lea rcx, [r11 + rbx + 0x7c]
mov r9, r12
call sub.MSVCR90.dll_fwrite
mov r11, qword [rdi + 0x118]
mov edx, 1
lea r8d, [rdx + 3]
lea rcx, [r11 + rbx + 0x84]
mov r9, r12
call sub.MSVCR90.dll_fwrite
mov rcx, qword [rdi + 0x118]
mov r9, r12
movsxd r8, dword [rcx + rbp + 0x84]
mov rcx, qword [rcx + rbp + 0x88]
mov edx, 1
call sub.MSVCR90.dll_fwrite
inc esi
add rbp, 0x98
cmp esi, dword [rdi + 0x110]
jl 0x14023fb20
mov rcx, r12
call sub.MSVCR90.dll_fclose
xor eax, eax
jmp 0x14023fc53
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140291ec0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret