Function at 0x140015230
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, qword [0x1400e94e0]
mov rax, qword [rbx + 0x38]
xor r12d, r12d
test rax, rax
je 0x14001530f
cmp byte [rbx + 1], r12b
je 0x14001530f
mov byte [rax + 0x18], r12b
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x14001530f
mov rcx, rsi
call fcn.140046d80
lea rcx, [rsi + 0x78]
call fcn.140039420
lea rcx, [rsi + 0x68]
call fcn.140039420
lea rcx, [rsi + 0x58]
call fcn.140039420
nop
mov rdi, qword [0x1400e94e0]
test rdi, rdi
je 0x140015306
mov r8d, dword [rdi + 0x4100]
movsx rdx, word [rdi + 0x6468]
lea rcx, [rdi + 0x646c]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r8d
je 0x1400152fc
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6468], cx
movsx rax, cx
lea rcx, [rdi + 0x646c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r8d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6464]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x38], r12
lea rcx, [rbx + 0x3f18]
call fcn.14000f730
cmp byte [rbx], 0
je 0x140015cb1
cmp byte [rbx + 0x62c0], 0
je 0x140015390
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140015390
mov rax, qword [0x1400e94e0]
mov dword [rax + 0x62c4], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.14002c8e0
mov rsi, rax
lea rdx, [0x1400aa8e0]
mov rcx, rdi
call fcn.140011d90
mov rdi, rax
test rax, rax
je 0x140015390
mov r9, rax
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400e94e0]
mov rdi, qword [rax + 0x4d10]
movsxd rax, dword [rax + 0x4d08]
lea rsi, [rdi + rax*8]
cmp rdi, rsi
je 0x1400153c1
nop
mov rcx, qword [rdi]
call fcn.14002f1c0
add rdi, 8
cmp rdi, rsi
jne 0x1400153b0
mov ebp, r12d
cmp dword [rbx + 0x6280], r12d
jle 0x14001547e
mov r14, r12
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx + 0x6288]
mov rsi, qword [r14 + rax + 8]
test rsi, rsi
je 0x14001546c
mov rcx, rsi
call fcn.140030d20
mov rdi, qword [0x1400e94e0]
test rdi, rdi
je 0x140015463
mov r8d, dword [rdi + 0x4100]
movsx rdx, word [rdi + 0x6468]
lea rcx, [rdi + 0x646c]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r8d
je 0x140015459
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6468], cx
movsx rax, cx
lea rcx, [rdi + 0x646c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r8d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6464]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebp
add r14, 0x10
cmp ebp, dword [rbx + 0x6280]
jl 0x1400153e0
mov rdi, qword [rbx + 0x6310]
movsxd rsi, dword [rbx + 0x6308]
shl rsi, 5
add rsi, rdi
cmp rdi, rsi
je 0x1400154b0
cmp dword [rdi + 4], 6
jne 0x1400154a7
mov rdx, rdi
mov rcx, rbx
call qword [rdi + 0x10]
add rdi, 0x20
cmp rdi, rsi
jne 0x140015498
mov ebp, r12d
cmp dword [rbx + 0x4158], r12d
jle 0x14001556d
mov r14, r12
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 0x4160]
mov rsi, qword [r14 + rax]
test rsi, rsi
je 0x14001555b
mov rcx, rsi
call fcn.140016390
mov rdi, qword [0x1400e94e0]
test rdi, rdi
je 0x140015552
mov r8d, dword [rdi + 0x4100]
movsx rdx, word [rdi + 0x6468]
lea rcx, [rdi + 0x646c]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r8d
je 0x140015548
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6468], cx
movsx rax, cx
lea rcx, [rdi + 0x646c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r8d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6464]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebp
add r14, 8
cmp ebp, dword [rbx + 0x4158]
jl 0x1400154d0
lea rcx, [rbx + 0x4158]
call fcn.14000f730
lea rcx, [rbx + 0x4168]
call fcn.14000f730
lea rcx, [rbx + 0x4178]
call fcn.14000f730
mov qword [rbx + 0x41b8], r12
mov r8, qword [rbx + 0x4190]
test r8, r8
je 0x140015629
mov qword [rbx + 0x4188], r12
mov rdi, qword [0x1400e94e0]
test rdi, rdi
je 0x140015619
mov r9d, dword [rdi + 0x4100]
movsx rdx, word [rdi + 0x6468]
lea rcx, [rdi + 0x646c]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14001560f
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6468], cx
movsx rax, cx
lea rcx, [rdi + 0x646c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6464]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x4190], r12
lea rcx, [rbx + 0x4198]
call fcn.14000f730
mov qword [rbx + 0x4d88], r12
mov qword [rbx + 0x41c8], r12
mov qword [rbx + 0x41c0], r12
mov qword [rbx + 0x4260], r12
mov qword [rbx + 0x4248], r12
mov qword [rbx + 0x41d8], r12
mov eax, 0xffffffff
lea rdi, [rbx + 0x49d8]
movsx rax, ax
mov ecx, 0x9a
rep stosw word [rdi], ax
lea rcx, [rbx + 0x4b10]
call fcn.14000f730
lea rcx, [rbx + 0x4b20]
call fcn.14000f730
mov r8, qword [rbx + 0x4c80]
test r8, r8
je 0x140015720
mov qword [rbx + 0x4c78], r12
mov rdi, qword [0x1400e94e0]
test rdi, rdi
je 0x140015710
mov r9d, dword [rdi + 0x4100]
movsx rdx, word [rdi + 0x6468]
lea rcx, [rdi + 0x646c]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140015706
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6468], cx
movsx rax, cx
lea rcx, [rdi + 0x646c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6464]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x4c80], r12
mov r8, qword [rbx + 0x4c90]
test r8, r8
je 0x1400157b1
mov qword [rbx + 0x4c88], r12
mov rdi, qword [0x1400e94e0]
test rdi, rdi
je 0x1400157a1
mov r9d, dword [rdi + 0x4100]
movsx rdx, word [rdi + 0x6468]
lea rcx, [rdi + 0x646c]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140015797
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6468], cx
movsx rax, cx
lea rcx, [rdi + 0x646c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6464]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x4c90], r12
lea rcx, [rbx + 0x4c98]
call fcn.14000f730
lea rcx, [rbx + 0x4cd8]
call fcn.14000f730
lea rcx, [rbx + 0x4ce8]
call fcn.14000f730
mov r8, qword [rbx + 0x4d00]
test r8, r8
je 0x140015866
mov qword [rbx + 0x4cf8], r12
mov rdi, qword [0x1400e94e0]
test rdi, rdi
je 0x140015856
mov r9d, dword [rdi + 0x4100]
movsx rdx, word [rdi + 0x6468]
lea rcx, [rdi + 0x646c]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14001584c
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6468], cx
movsx rax, cx
lea rcx, [rdi + 0x646c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6464]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x4d00], r12
mov qword [rbx + 0x4d28], r12
mov qword [rbx + 0x4d20], r12
mov qword [rbx + 0x4d18], r12
lea rcx, [rbx + 0x4d08]
call fcn.140039da0
lea rcx, [rbx + 0x50e0]
call fcn.1400399e0
mov r8, qword [rbx + 0x5110]
test r8, r8
je 0x140015924
mov qword [rbx + 0x5108], r12
mov rdi, qword [0x1400e94e0]
test rdi, rdi
je 0x140015914
mov r9d, dword [rdi + 0x4100]
movsx rdx, word [rdi + 0x6468]
lea rcx, [rdi + 0x646c]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14001590a
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6468], cx
movsx rax, cx
lea rcx, [rdi + 0x646c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6464]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x5110], r12
mov r8, qword [rbx + 0x5120]
test r8, r8
je 0x1400159b5
mov qword [rbx + 0x5118], r12
mov rdi, qword [0x1400e94e0]
test rdi, rdi
je 0x1400159a5
mov r9d, dword [rdi + 0x4100]
movsx rdx, word [rdi + 0x6468]
lea rcx, [rdi + 0x646c]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14001599b
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6468], cx
movsx rax, cx
lea rcx, [rdi + 0x646c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6464]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x5120], r12
mov edi, r12d
cmp dword [rbx + 0x5060], r12d
jle 0x1400159e2
movsxd rax, edi
lea rcx, [rax + rax*4]
mov rax, qword [rbx + 0x5068]
lea rcx, [rax + rcx*8]
call fcn.1400129c0
inc edi
cmp edi, dword [rbx + 0x5060]
jl 0x1400159c1
mov r8, qword [rbx + 0x5068]
test r8, r8
je 0x140015a73
mov qword [rbx + 0x5060], r12
mov rdi, qword [0x1400e94e0]
test rdi, rdi
je 0x140015a63
mov r9d, dword [rdi + 0x4100]
movsx rdx, word [rdi + 0x6468]
lea rcx, [rdi + 0x646c]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140015a59
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6468], cx
movsx rax, cx
lea rcx, [rdi + 0x646c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6464]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x5068], r12
lea rcx, [rbx + 0x5090]
call fcn.140039b30
mov edi, r12d
cmp dword [rbx + 0x5080], r12d
jle 0x140015ab0
nop dword [rax + rax]
movsxd rax, edi
imul rcx, rax, 0x88
add rcx, qword [rbx + 0x5088]
call fcn.14003a940
inc edi
cmp edi, dword [rbx + 0x5080]
jl 0x140015a90
mov r8, qword [rbx + 0x5088]
test r8, r8
je 0x140015b41
mov qword [rbx + 0x5080], r12
mov rdi, qword [0x1400e94e0]
test rdi, rdi
je 0x140015b31
mov r9d, dword [rdi + 0x4100]
movsx rdx, word [rdi + 0x6468]
lea rcx, [rdi + 0x646c]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140015b27
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6468], cx
movsx rax, cx
lea rcx, [rdi + 0x646c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r12d
inc word [rcx + 6]
inc dword [rdi + 0x6464]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x5088], r12
lea rcx, [rbx + 0x50c8]
call fcn.14000f730
lea rcx, [rbx + 0x51b0]
call fcn.140039820
lea rcx, [rbx + 0x51a0]
call fcn.140039900
lea rcx, [rbx + 0x61d0]
call fcn.14000f730
lea rcx, [rbx + 0x61e0]
call fcn.14000f730
lea rcx, [rbx + 0x5218]
call fcn.14000f730
lea rcx, [rbx + 0x5228]
call fcn.14000f730
lea rcx, [rbx + 0x5238]
call fcn.14000f730
mov dword [rbx + 0x6098], r12d
lea rcx, [rbx + 0x60a0]
call fcn.14000f730
lea rcx, [rbx + 0x62e8]
call fcn.14000f730
mov r8, qword [rbx + 0x62e0]
test r8, r8
je 0x140015c52
mov qword [rbx + 0x62d8], r12
mov rdi, qword [0x1400e94e0]
test rdi, rdi
je 0x140015c42
mov r9d, dword [rdi + 0x4100]
movsx r10, word [rdi + 0x6468]
lea rdx, [rdi + 0x646c]
lea rdx, [rdx + r10*8]
cmp dword [rdx], r9d
je 0x140015c38
lea ecx, [r10 + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [rdi + 0x6468], cx
movsx rax, cx
lea rdx, [rdi + 0x646c]
lea rdx, [rdx + rax*8]
mov dword [rdx], r9d
mov dword [rdx + 4], r12d
inc word [rdx + 6]
inc dword [rdi + 0x6464]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 0x62e0], r12
cmp qword [rbx + 0x6388], 0
je 0x140015c83
mov rdi, qword [rbx + 0x6388]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x140015c7c
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbx + 0x6388], r12
lea rcx, [rbx + 0x6390]
call fcn.14000f730
lea rcx, [rbx + 0x63c8]
call fcn.14000f730
lea rcx, [rbx + 0x63d8]
call fcn.14000f730
mov dword [rbx + 0x63e8], r12d
mov byte [rbx], 0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret