Function at 0x1401b32a0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x6c8]
sub rsp, 0x7a0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140324030]
xor rax, rsp
mov qword [rbp + 0x690], rax
mov r15, rcx
lea rcx, [rbp - 0x78]
call qword [sym.imp.mfc110u.dll_Ordinal_296]
nop
mov r8d, 0x104
lea rdx, [rbp + 0x480]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp + 0x480]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, [0x14022253d]
xor ecx, ecx
call qword [sym.imp.MSVCR110.dll_setlocale]
lea rcx, [rbp - 0x70]
call qword [sym.imp.mfc110u.dll_Ordinal_296]
nop
lea rcx, [rbp - 0x80]
call qword [sym.imp.mfc110u.dll_Ordinal_296]
nop
lea r8, [rbp + 0x480]
lea rdx, str._s_failure_fault.pass
lea rcx, [rbp - 0x78]
call qword [sym.imp.mfc110u.dll_Ordinal_4595]
lea rdx, [0x140281c70]
lea rcx, [rbp - 0x70]
call qword [sym.imp.mfc110u.dll_Ordinal_1494]
mov rbx, qword [r15 + 0xd70]
mov rdi, qword [r15 + 0xd78]
cmp rbx, rdi
je 0x1401b3454
mov r13, qword [rbx]
mov rax, qword [r13 + 0x29]
cmp dword [rax - 0x10], 0
je 0x1401b3447
mov rax, qword [r13 + 0x31]
cmp dword [rax - 0x10], 0
je 0x1401b3447
lea rdx, [0x140249d7c]
lea rcx, [r13 + 0x29]
call qword [sym.imp.mfc110u.dll_Ordinal_2848]
test eax, eax
jne 0x1401b33ba
lea rdx, [0x140224a18]
lea rcx, [r13 + 0x29]
call qword [sym.imp.mfc110u.dll_Ordinal_1494]
lea rdx, [0x140249d7c]
lea rcx, [r13 + 0x31]
call qword [sym.imp.mfc110u.dll_Ordinal_2848]
test eax, eax
jne 0x1401b33e0
lea rdx, [0x140224a18]
lea rcx, [r13 + 0x31]
call qword [sym.imp.mfc110u.dll_Ordinal_1494]
lea rdx, [0x140249d7c]
lea rcx, [r13 + 0x39]
call qword [sym.imp.mfc110u.dll_Ordinal_2848]
test eax, eax
jne 0x1401b3406
lea rdx, [0x140224a18]
lea rcx, [r13 + 0x39]
call qword [sym.imp.mfc110u.dll_Ordinal_1494]
mov dword [rsp + 0x30], 1
mov rax, qword [r13 + 0x41]
mov qword [rsp + 0x28], rax
mov rax, qword [r13 + 0x39]
mov qword [rsp + 0x20], rax
mov r9, qword [r13 + 0x31]
mov r8, qword [r13 + 0x29]
lea rdx, str.c__s__s__s__s__d_r_n
lea rcx, [rbp - 0x80]
call qword [sym.imp.mfc110u.dll_Ordinal_4595]
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x70]
call qword [sym.imp.mfc110u.dll_Ordinal_1658]
add rbx, 8
cmp rbx, rdi
jne 0x1401b3375
mov rdx, qword [rbp - 0x78]
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc110u.dll_Ordinal_306]
nop
mov rdx, qword [rbp - 0x70]
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc110u.dll_Ordinal_306]
nop
lea rdx, [0x14026a5b0]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCR110.dll_fopen]
mov rdi, rax
test rax, rax
je 0x1401b34c1
mov rcx, qword [rsp + 0x78]
movsxd rbx, dword [rcx - 0x10]
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc110u.dll_Ordinal_4831]
mov rcx, rax
mov r9, rdi
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.MSVCR110.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.MSVCR110.dll_fclose]
nop
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc110u.dll_Ordinal_1028]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc110u.dll_Ordinal_1028]
xor r13d, r13d
mov qword [rbp + 0x468], r13
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x470], xmm0
lea rcx, [rbp - 0x50]
call fcn.140071b60
nop
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x68], rax
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [0x14034e310]
call fcn.14015e6b0
mov rsi, rax
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [0x14034e310]
call fcn.14015e5e0
mov rdi, rax
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [0x14034e310]
call fcn.14015e510
mov rbx, rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [0x14034e310]
call fcn.14015e420
nop
mov word [rsp + 0x28], r13w
mov qword [rsp + 0x20], rsi
mov r9, rdi
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.140071ef0
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], r13
mov rsi, qword [r15 + 0xd88]
mov r14, qword [r15 + 0xd90]
cmp rsi, r14
je 0x1401b364b
nop
mov r12, qword [rsi]
mov rbx, qword [r15 + 0xda0]
mov rdi, qword [r15 + 0xda8]
cmp rbx, rdi
je 0x1401b363e
nop word [rax + rax]
mov rdx, qword [rbx]
mov eax, dword [rdx + 0x6a]
cmp eax, 1
jne 0x1401b35ee
movzx r8d, byte [r15 + 0x6dc]
lea rcx, [rbp - 0x50]
call fcn.1400a3590
jmp 0x1401b3635
cmp eax, 0xffffffff
jne 0x1401b3606
movzx r8d, byte [r15 + 0x6dc]
lea rcx, [rbp - 0x50]
call fcn.1400a3940
jmp 0x1401b3635
mov rax, qword [rdx + 1]
cmp qword [r12 + 1], rax
jne 0x1401b3635
mov rax, qword [rdx + 9]
cmp qword [r12 + 9], rax
jne 0x1401b3635
cmp r12, rdx
je 0x1401b3635
mov r9b, 1
movzx r8d, byte [r15 + 0x6dc]
lea rcx, [rbp - 0x50]
call fcn.1400a30c0
add rbx, 8
cmp rbx, rdi
jne 0x1401b35d0
add rsi, 8
cmp rsi, r14
jne 0x1401b35b0
lea r8, [rbp + 0x480]
lea rdx, str._s_failure_fault_ng.ng
lea rcx, [rbp - 0x78]
call qword [sym.imp.mfc110u.dll_Ordinal_4595]
lea rdx, [0x140224a18]
lea rcx, [rbp - 0x80]
call qword [sym.imp.mfc110u.dll_Ordinal_1494]
mov rax, qword [r15 + 0xdc0]
sub rax, qword [r15 + 0xdb8]
sar rax, 3
test rax, rax
je 0x1401b378c
mov rbx, r13
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc110u.dll_Ordinal_296]
nop
mov rax, qword [r15 + 0xdb8]
mov rcx, qword [rbx + rax]
add rcx, 0x31
lea rdx, [0x140249d7c]
call qword [sym.imp.mfc110u.dll_Ordinal_2848]
test eax, eax
jne 0x1401b36da
mov rax, qword [r15 + 0xdb8]
mov rcx, qword [rbx + rax]
add rcx, 0x31
lea rdx, [0x140224a18]
call qword [sym.imp.mfc110u.dll_Ordinal_1494]
mov rax, qword [r15 + 0xdb8]
mov rcx, qword [rbx + rax]
add rcx, 0x39
lea rdx, [0x140249d7c]
call qword [sym.imp.mfc110u.dll_Ordinal_2848]
test eax, eax
jne 0x1401b3716
mov rax, qword [r15 + 0xdb8]
mov rcx, qword [rbx + rax]
add rcx, 0x39
lea rdx, [0x140224a18]
call qword [sym.imp.mfc110u.dll_Ordinal_1494]
mov rax, qword [r15 + 0xdb8]
mov r8, qword [rbx + rax]
movzx eax, byte [r8]
mov dword [rsp + 0x28], eax
mov rax, qword [r8 + 0x41]
mov qword [rsp + 0x20], rax
mov r9, qword [r8 + 0x39]
mov r8, qword [r8 + 0x31]
lea rdx, str._s__s__s__d_r_n
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc110u.dll_Ordinal_4595]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x80]
call qword [sym.imp.mfc110u.dll_Ordinal_1658]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
inc r13d
add rbx, 8
mov rcx, qword [r15 + 0xdc0]
sub rcx, qword [r15 + 0xdb8]
sar rcx, 3
movsxd rax, r13d
cmp rax, rcx
jb 0x1401b3692
mov rdx, qword [rbp - 0x78]
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc110u.dll_Ordinal_306]
nop
mov rdx, qword [rbp - 0x80]
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc110u.dll_Ordinal_306]
nop
lea rdx, [0x14026a5b0]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCR110.dll_fopen]
mov rdi, rax
test rax, rax
je 0x1401b37f9
mov rcx, qword [rsp + 0x78]
movsxd rbx, dword [rcx - 0x10]
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc110u.dll_Ordinal_4831]
mov rcx, rax
mov r9, rdi
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.MSVCR110.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.MSVCR110.dll_fclose]
nop
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc110u.dll_Ordinal_1028]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc110u.dll_Ordinal_1028]
nop
lea rcx, [rbp - 0x50]
call fcn.140071dc0
mov rcx, qword [0x14032d928]
call fcn.1400e18c0
cmp byte [0x14034e724], 1
jne 0x1401b383c
mov rcx, qword [0x14032d960]
call fcn.1400ec6a0
nop
lea rcx, [rbp - 0x80]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
lea rcx, [rbp - 0x70]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
lea rcx, [rbp - 0x78]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
mov rcx, qword [rbp + 0x690]
xor rcx, rsp
call fcn.1401e3980
lea r11, [rsp + 0x7a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret