Function at 0x14017d440
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x30
mov rdi, r8
mov rbx, rdx
call fcn.1401a1100
mov rbp, rax
test rax, rax
jne 0x14017d475
lea eax, [rbp + 1]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea rdx, [0x140326fec]
mov rcx, rdi
mov qword [rsp + 0x40], rsi
call sub.MSVCR90.dll_fopen
mov rsi, rax
test rax, rax
jne 0x14017d499
lea eax, [rsi + 1]
jmp 0x14017d954
mov edx, 1
lea rcx, [rsp + 0x24]
mov r9, rax
lea r8d, [rdx + 3]
mov dword [rsp + 0x24], 0x459353c8
call sub.MSVCR90.dll_fwrite
mov edx, 0x115
lea rcx, [rsp + 0x58]
mov word [rsp + 0x58], dx
mov edx, 1
mov r9, rsi
lea r8d, [rdx + 1]
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbp + 0x14]
lea r8d, [rdx + 0x1f]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
mov r9, rsi
lea r8d, [rdx + 3]
mov rcx, rbx
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 4]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 8]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0xc]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0x10]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0x54]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0x58]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0x5c]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0x60]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0x64]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0x68]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0x6c]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
lea rcx, [rbx + 0x70]
mov r9, rsi
mov edx, 1
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0x74]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0x78]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0x7c]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0x80]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0x84]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0x88]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0x20]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
xor edi, edi
cmp dword [rbp + 0x1164], edi
jle 0x14017d6d3
nop word [rax + rax]
movsxd rax, edi
mov edx, 1
mov r9, rsi
lea rcx, [rbx + rax*4 + 0x24]
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fwrite
inc edi
cmp edi, dword [rbp + 0x1164]
jl 0x14017d6b0
mov edx, 1
lea rcx, [rbx + 0x4c]
mov r9, rsi
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0x50]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0x8c]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0x90]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0x94]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0x98]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0x9c]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0xa0]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0x14]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0x18]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0x1c]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0xa4]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0xa8]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0xac]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0xb0]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0xb4]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
lea rcx, [rbx + 0xb8]
mov edx, 1
mov r9, rsi
lea r8d, [rdx + 3]
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0xbc]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0xc0]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0xc4]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0xc8]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0xcc]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0xd0]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
mov edx, 1
lea rcx, [rbx + 0xd4]
lea r8d, [rdx + 3]
mov r9, rsi
call sub.MSVCR90.dll_fwrite
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbx + 0xd8]
lea edx, [rax + 1]
lea r8d, [rax + 4]
repne scasb al, byte [rdi]
mov r9, rsi
not rcx
dec rcx
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x20]
call sub.MSVCR90.dll_fwrite
movsxd r8, dword [rsp + 0x20]
lea rcx, [rbx + 0xd8]
mov r9, rsi
mov edx, 1
call sub.MSVCR90.dll_fwrite
mov rcx, rsi
call sub.MSVCR90.dll_fclose
xor eax, eax
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret