Function at 0x140073420
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 rax, qword [0x14027bf58]
mov rdi, rax
mov rcx, qword [rax + 0x38]
test rcx, rcx
je 0x140073463
cmp byte [rax + 1], 0
je 0x140073463
mov byte [rcx + 0x18], 0
mov rcx, qword [rax + 0x38]
call fcn.140098550
mov rax, qword [0x14027bf58]
xor r12d, r12d
mov qword [rdi + 0x38], r12
mov rcx, qword [rdi + 0x3d90]
test rcx, rcx
je 0x14007349c
mov qword [rdi + 0x3d88], r12
test rax, rax
je 0x140073488
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3d90], r12
mov rax, qword [0x14027bf58]
cmp byte [rdi], r12b
je 0x140073cf1
cmp byte [rdi + 0x5e18], r12b
je 0x140073506
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140073506
mov dword [rax + 0x5e1c], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.14008aa40
mov rsi, rax
lea rdx, [0x1402188d8]
mov rcx, rbx
call fcn.14006fd90
mov rbx, rax
test rax, rax
je 0x140073506
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, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call fcn.14008d190
mov esi, r12d
cmp dword [rdi + 0x5dd8], r12d
jle 0x140073562
mov rbp, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x5de0]
mov rbx, qword [rax + rbp + 8]
test rbx, rbx
je 0x140073554
mov rcx, rbx
call fcn.14008ee30
mov rax, qword [0x14027bf58]
test rax, rax
je 0x14007354b
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add rbp, 0x10
cmp esi, dword [rdi + 0x5dd8]
jl 0x140073520
mov ebx, r12d
cmp dword [rdi + 0x5e60], r12d
jle 0x1400735a1
mov rsi, r12
mov rcx, qword [rdi + 0x5e68]
cmp dword [rsi + rcx + 4], 6
jne 0x140073593
mov rax, qword [rsi + rcx + 0x10]
movsxd rdx, ebx
shl rdx, 5
add rdx, rcx
mov rcx, rdi
call rax
inc ebx
add rsi, 0x20
cmp ebx, dword [rdi + 0x5e60]
jl 0x140073571
mov esi, r12d
cmp dword [rdi + 0x3fb8], r12d
jle 0x1400735f1
mov r14, r12
mov rax, qword [rdi + 0x3fc0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x1400735e3
mov rcx, rbx
call fcn.1400742c0
mov rax, qword [0x14027bf58]
test rax, rax
je 0x1400735da
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add r14, 8
cmp esi, dword [rdi + 0x3fb8]
jl 0x1400735b0
mov rcx, qword [rdi + 0x3fc0]
test rcx, rcx
je 0x140073623
mov qword [rdi + 0x3fb8], r12
mov rax, qword [0x14027bf58]
test rax, rax
je 0x140073616
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fc0], r12
mov rcx, qword [rdi + 0x3fd0]
test rcx, rcx
je 0x140073655
mov qword [rdi + 0x3fc8], r12
mov rax, qword [0x14027bf58]
test rax, rax
je 0x140073648
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fd0], r12
mov rcx, qword [rdi + 0x3fe0]
test rcx, rcx
je 0x140073687
mov qword [rdi + 0x3fd8], r12
mov rax, qword [0x14027bf58]
test rax, rax
je 0x14007367a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fe0], r12
mov qword [rdi + 0x4018], r12
mov rcx, qword [rdi + 0x3ff0]
test rcx, rcx
je 0x1400736c0
mov qword [rdi + 0x3fe8], r12
mov rax, qword [0x14027bf58]
test rax, rax
je 0x1400736b3
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ff0], r12
mov rcx, qword [rdi + 0x4000]
test rcx, rcx
je 0x1400736f2
mov qword [rdi + 0x3ff8], r12
mov rax, qword [0x14027bf58]
test rax, rax
je 0x1400736e5
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4000], r12
mov qword [rdi + 0x4a98], r12
mov qword [rdi + 0x4028], r12
mov qword [rdi + 0x4020], r12
mov qword [rdi + 0x40b0], r12
mov qword [rdi + 0x4098], r12
mov qword [rdi + 0x4030], r12
lea rcx, [rdi + 0x4750]
call fcn.14006dd20
mov rcx, qword [rdi + 0x4990]
test rcx, rcx
je 0x14007375a
mov qword [rdi + 0x4988], r12
mov rax, qword [0x14027bf58]
test rax, rax
je 0x14007374d
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4990], r12
mov rcx, qword [rdi + 0x49a0]
test rcx, rcx
je 0x14007378c
mov qword [rdi + 0x4998], r12
mov rax, qword [0x14027bf58]
test rax, rax
je 0x14007377f
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49a0], r12
mov rcx, qword [rdi + 0x49b0]
test rcx, rcx
je 0x1400737be
mov qword [rdi + 0x49a8], r12
mov rax, qword [0x14027bf58]
test rax, rax
je 0x1400737b1
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49b0], r12
mov rcx, qword [rdi + 0x49f0]
test rcx, rcx
je 0x1400737f0
mov qword [rdi + 0x49e8], r12
mov rax, qword [0x14027bf58]
test rax, rax
je 0x1400737e3
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49f0], r12
mov rcx, qword [rdi + 0x4a00]
test rcx, rcx
je 0x140073822
mov qword [rdi + 0x49f8], r12
mov rax, qword [0x14027bf58]
test rax, rax
je 0x140073815
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4a00], r12
mov rcx, qword [rdi + 0x4a10]
test rcx, rcx
je 0x140073854
mov qword [rdi + 0x4a08], r12
mov rax, qword [0x14027bf58]
test rax, rax
je 0x140073847
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4a10], r12
mov qword [rdi + 0x4a48], r12
mov qword [rdi + 0x4a40], r12
mov qword [rdi + 0x4a38], r12
mov ebx, r12d
cmp dword [rdi + 0x4a20], r12d
jle 0x14007389e
mov rsi, r12
nop dword [rax + rax]
mov rcx, qword [rdi + 0x4a28]
mov rcx, qword [rsi + rcx]
call fcn.1400986a0
inc ebx
lea rsi, [rsi + 8]
cmp ebx, dword [rdi + 0x4a20]
jl 0x140073880
mov rcx, qword [rdi + 0x4a28]
test rcx, rcx
je 0x1400738d0
mov qword [rdi + 0x4a20], r12
mov rax, qword [0x14027bf58]
test rax, rax
je 0x1400738c3
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4a28], r12
lea rcx, [rdi + 0x4d80]
call fcn.140097440
mov rcx, qword [rdi + 0x4db0]
test rcx, rcx
je 0x14007390e
mov qword [rdi + 0x4da8], r12
mov rax, qword [0x14027bf58]
test rax, rax
je 0x140073901
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4db0], r12
mov rcx, qword [rdi + 0x4dc0]
test rcx, rcx
je 0x140073940
mov qword [rdi + 0x4db8], r12
mov rax, qword [0x14027bf58]
test rax, rax
je 0x140073933
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4dc0], r12
mov ebx, r12d
cmp dword [rdi + 0x4d00], r12d
jle 0x140073988
mov rsi, r12
nop
mov rax, qword [rdi + 0x4d08]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x14007397a
mov rax, qword [0x14027bf58]
test rax, rax
je 0x140073973
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4d00]
jl 0x140073950
mov rcx, qword [rdi + 0x4d08]
test rcx, rcx
je 0x1400739ba
mov qword [rdi + 0x4d00], r12
mov rax, qword [0x14027bf58]
test rax, rax
je 0x1400739ad
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d08], r12
lea rcx, [rdi + 0x4d30]
call fcn.1400975b0
mov esi, r12d
cmp dword [rdi + 0x4d20], r12d
jle 0x140073a25
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x4d28]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.1400a4170
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x140073a17
mov rax, qword [0x14027bf58]
test rax, rax
je 0x140073a10
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4d20]
jl 0x1400739e0
mov rcx, qword [rdi + 0x4d28]
test rcx, rcx
je 0x140073a57
mov qword [rdi + 0x4d20], r12
mov rax, qword [0x14027bf58]
test rax, rax
je 0x140073a4a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d28], r12
mov rcx, qword [rdi + 0x4d70]
test rcx, rcx
je 0x140073a89
mov qword [rdi + 0x4d68], r12
mov rax, qword [0x14027bf58]
test rax, rax
je 0x140073a7c
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d70], r12
mov rcx, qword [rdi + 0x5d98]
test rcx, rcx
je 0x140073abb
mov qword [rdi + 0x5d90], r12
mov rax, qword [0x14027bf58]
test rax, rax
je 0x140073aae
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d98], r12
mov rcx, qword [rdi + 0x5da8]
test rcx, rcx
je 0x140073aed
mov qword [rdi + 0x5da0], r12
mov rax, qword [0x14027bf58]
test rax, rax
je 0x140073ae0
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5da8], r12
mov rcx, qword [rdi + 0x4e10]
test rcx, rcx
je 0x140073b1f
mov qword [rdi + 0x4e08], r12
mov rax, qword [0x14027bf58]
test rax, rax
je 0x140073b12
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4e10], r12
mov rcx, qword [rdi + 0x4e20]
test rcx, rcx
je 0x140073b51
mov qword [rdi + 0x4e18], r12
mov rax, qword [0x14027bf58]
test rax, rax
je 0x140073b44
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4e20], r12
mov rcx, qword [rdi + 0x4e30]
test rcx, rcx
je 0x140073b83
mov qword [rdi + 0x4e28], r12
mov rax, qword [0x14027bf58]
test rax, rax
je 0x140073b76
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4e30], r12
mov dword [rdi + 0x5c80], r12d
mov rcx, qword [rdi + 0x5c90]
test rcx, rcx
je 0x140073bbc
mov qword [rdi + 0x5c88], r12
mov rax, qword [0x14027bf58]
test rax, rax
je 0x140073baf
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c90], r12
mov rcx, qword [rdi + 0x5e48]
test rcx, rcx
je 0x140073bee
mov qword [rdi + 0x5e40], r12
mov rax, qword [0x14027bf58]
test rax, rax
je 0x140073be1
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5e48], r12
mov rcx, qword [rdi + 0x5e38]
test rcx, rcx
je 0x140073c20
mov qword [rdi + 0x5e30], r12
mov rax, qword [0x14027bf58]
test rax, rax
je 0x140073c13
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5e38], r12
cmp qword [rdi + 0x5ec8], 0
je 0x140073c51
mov rbx, qword [rdi + 0x5ec8]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x140073c4a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5ec8], r12
mov rcx, qword [rdi + 0x5ed8]
test rcx, rcx
je 0x140073c83
mov qword [rdi + 0x5ed0], r12
mov rax, qword [0x14027bf58]
test rax, rax
je 0x140073c76
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ed8], r12
mov rcx, qword [rdi + 0x5f10]
test rcx, rcx
je 0x140073cb5
mov qword [rdi + 0x5f08], r12
mov rax, qword [0x14027bf58]
test rax, rax
je 0x140073ca8
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5f10], r12
mov rcx, qword [rdi + 0x5f20]
test rcx, rcx
je 0x140073ce7
mov qword [rdi + 0x5f18], r12
mov rax, qword [0x14027bf58]
test rax, rax
je 0x140073cda
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5f20], r12
mov dword [rdi + 0x5f28], r12d
mov byte [rdi], 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