Function at 0x1400331f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, qword [0x1402095c0]
mov rax, qword [rsi + 0x58]
test rax, rax
je 0x140033254
cmp byte [rsi + 1], 0
je 0x140033254
mov byte [rax + 0x18], 0
mov rdi, qword [rsi + 0x58]
test rdi, rdi
je 0x140033254
mov rcx, rdi
call fcn.140055730
mov rax, qword [0x1402095c0]
test rax, rax
je 0x140033244
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
mov rcx, rdi
call qword [0x1401eb350]
mov qword [rsi + 0x58], 0
mov rcx, qword [rsi + 0x3c60]
test rcx, rcx
je 0x14003329d
mov qword [rsi + 0x3c58], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x140033285
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
call qword [0x1401eb350]
mov qword [rsi + 0x3c60], 0
cmp byte [rsi], 0
je 0x140033d56
cmp byte [rsi + 0x5c09], 0
je 0x140033312
mov rbx, qword [rsi + 0x20]
test rbx, rbx
je 0x140033312
mov rax, qword [0x1402095c0]
mov dword [rax + 0x5c0c], 0
mov qword [rbp - 0x10], 0
lea rcx, [rbp - 0x10]
call fcn.14004be90
mov rdi, rax
lea rdx, [0x14011d4ae]
mov rcx, rbx
call fcn.14002d990
test rax, rax
je 0x140033312
mov rbx, rax
mov r8, qword [rbp - 0x10]
mov edx, 1
mov rcx, rdi
mov r9, rax
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]
mov eax, dword [rsi + 0x5c50]
test eax, eax
jle 0x140033362
xor edi, edi
xor ebx, ebx
jmp 0x14003333f
inc rbx
movsxd rcx, eax
add rdi, 0x20
cmp rbx, rcx
jge 0x140033362
mov r8, qword [rsi + 0x5c58]
cmp dword [r8 + rdi + 4], 6
jne 0x140033330
lea rdx, [r8 + rdi]
mov rcx, rsi
call qword [r8 + rdi + 0x10]
mov eax, dword [rsi + 0x5c50]
jmp 0x140033330
mov eax, dword [rsi + 0x3e98]
test eax, eax
jle 0x1400333bd
xor ebx, ebx
jmp 0x140033391
mov rdx, qword [0x1402095d0]
mov rcx, rdi
call qword [0x1401eb350]
mov eax, dword [rsi + 0x3e98]
inc rbx
movsxd rcx, eax
cmp rbx, rcx
jge 0x1400333bd
mov rcx, qword [rsi + 0x3ea0]
mov rdi, qword [rcx + rbx*8]
test rdi, rdi
je 0x140033386
mov rcx, rdi
call fcn.1400352b0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x140033370
dec dword [rax + 0xf4]
jmp 0x140033370
mov rcx, qword [rsi + 0x3ea0]
test rcx, rcx
je 0x1400333fe
mov qword [rsi + 0x3e98], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x1400333e6
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
call qword [0x1401eb350]
mov qword [rsi + 0x3ea0], 0
mov rcx, qword [rsi + 0x3eb0]
test rcx, rcx
je 0x14003343f
mov qword [rsi + 0x3ea8], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x140033427
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
call qword [0x1401eb350]
mov qword [rsi + 0x3eb0], 0
mov rcx, qword [rsi + 0x3ec0]
test rcx, rcx
je 0x140033480
mov qword [rsi + 0x3eb8], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x140033468
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
call qword [0x1401eb350]
mov qword [rsi + 0x3ec0], 0
mov qword [rsi + 0x3ef8], 0
mov rcx, qword [rsi + 0x3ed0]
test rcx, rcx
je 0x1400334cc
mov qword [rsi + 0x3ec8], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x1400334b4
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
call qword [0x1401eb350]
mov qword [rsi + 0x3ed0], 0
mov rcx, qword [rsi + 0x3ee0]
test rcx, rcx
je 0x14003350d
mov qword [rsi + 0x3ed8], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x1400334f5
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
call qword [0x1401eb350]
mov qword [rsi + 0x3ee0], 0
mov qword [rsi + 0x48d8], 0
mov qword [rsi + 0x3f90], 0
mov qword [rsi + 0x3f78], 0
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [rsi + 0x3f00], xmm0
mov qword [rsi + 0x3f10], 0
vpcmpeqd ymm0, ymm0, ymm0
vmovdqu ymmword [rsi + 0x4630], ymm0
vmovdqu ymmword [rsi + 0x4650], ymm0
vmovdqu ymmword [rsi + 0x4670], ymm0
vmovdqu ymmword [rsi + 0x4690], ymm0
vmovdqu ymmword [rsi + 0x46b0], ymm0
vmovdqu ymmword [rsi + 0x46d0], ymm0
vmovdqu ymmword [rsi + 0x46f0], ymm0
vmovdqu ymmword [rsi + 0x4710], ymm0
vmovdqu ymmword [rsi + 0x4728], ymm0
mov rcx, qword [rsi + 0x4750]
test rcx, rcx
je 0x1400335d5
mov qword [rsi + 0x4748], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x1400335ba
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
vzeroupper
call qword [0x1401eb350]
mov qword [rsi + 0x4750], 0
mov rcx, qword [rsi + 0x4760]
test rcx, rcx
je 0x140033619
mov qword [rsi + 0x4758], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x1400335fe
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
vzeroupper
call qword [0x1401eb350]
mov qword [rsi + 0x4760], 0
mov rcx, qword [rsi + 0x4848]
test rcx, rcx
je 0x14003365d
mov qword [rsi + 0x4840], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x140033642
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
vzeroupper
call qword [0x1401eb350]
mov qword [rsi + 0x4848], 0
mov rcx, qword [rsi + 0x4858]
test rcx, rcx
je 0x1400336a1
mov qword [rsi + 0x4850], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x140033686
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
vzeroupper
call qword [0x1401eb350]
mov qword [rsi + 0x4858], 0
mov rcx, qword [rsi + 0x4868]
test rcx, rcx
je 0x1400336e5
mov qword [rsi + 0x4860], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x1400336ca
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
vzeroupper
call qword [0x1401eb350]
mov qword [rsi + 0x4868], 0
mov rcx, qword [rsi + 0x48a8]
test rcx, rcx
je 0x140033729
mov qword [rsi + 0x48a0], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x14003370e
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
vzeroupper
call qword [0x1401eb350]
mov qword [rsi + 0x48a8], 0
mov rcx, qword [rsi + 0x48b8]
test rcx, rcx
je 0x14003376d
mov qword [rsi + 0x48b0], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x140033752
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
vzeroupper
call qword [0x1401eb350]
mov qword [rsi + 0x48b8], 0
mov eax, dword [rsi + 0x48c8]
test eax, eax
jle 0x1400337d0
xor ebx, ebx
jmp 0x1400337a1
mov rdx, qword [0x1402095d0]
mov rcx, rdi
call qword [0x1401eb350]
mov eax, dword [rsi + 0x48c8]
inc rbx
movsxd rcx, eax
cmp rbx, rcx
jge 0x1400337d0
mov rcx, qword [rsi + 0x48d0]
mov rdi, qword [rcx + rbx*8]
test rdi, rdi
je 0x140033796
mov rcx, rdi
vzeroupper
call fcn.14004e4a0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x140033780
dec dword [rax + 0xf4]
jmp 0x140033780
mov rcx, qword [rsi + 0x48d0]
test rcx, rcx
je 0x140033814
mov qword [rsi + 0x48c8], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x1400337f9
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
vzeroupper
call qword [0x1401eb350]
mov qword [rsi + 0x48d0], 0
lea rcx, [rsi + 0x4bc8]
vzeroupper
call fcn.140034840
mov rcx, qword [rsi + 0x4bf8]
test rcx, rcx
je 0x140033864
mov qword [rsi + 0x4bf0], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x14003384c
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
call qword [0x1401eb350]
mov qword [rsi + 0x4bf8], 0
mov rcx, qword [rsi + 0x4c08]
test rcx, rcx
je 0x1400338a5
mov qword [rsi + 0x4c00], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x14003388d
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
call qword [0x1401eb350]
mov qword [rsi + 0x4c08], 0
mov eax, dword [rsi + 0x4b48]
test eax, eax
jle 0x140033906
mov edi, 0x20
xor ebx, ebx
jmp 0x1400338e2
mov rdx, qword [0x1402095d0]
call qword [0x1401eb350]
mov eax, dword [rsi + 0x4b48]
inc rbx
movsxd rcx, eax
add rdi, 0x28
cmp rbx, rcx
jge 0x140033906
mov rcx, qword [rsi + 0x4b50]
mov rcx, qword [rcx + rdi]
test rcx, rcx
je 0x1400338d3
mov rax, qword [0x1402095c0]
test rax, rax
je 0x1400338c0
dec dword [rax + 0xf4]
jmp 0x1400338c0
mov rcx, qword [rsi + 0x4b50]
test rcx, rcx
je 0x140033947
mov qword [rsi + 0x4b48], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x14003392f
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
call qword [0x1401eb350]
mov qword [rsi + 0x4b50], 0
lea rcx, [rsi + 0x4b78]
call fcn.1400349c0
cmp dword [rsi + 0x4b68], 0
jle 0x1400339be
mov edi, 0x10
xor ebx, ebx
jmp 0x140033990
mov rdx, qword [0x1402095d0]
call qword [0x1401eb350]
inc rbx
movsxd rax, dword [rsi + 0x4b68]
add rdi, 0x70
cmp rbx, rax
jge 0x1400339be
mov r14, qword [rsi + 0x4b70]
lea rcx, [r14 + rdi]
call fcn.14004f480
mov rcx, qword [r14 + rdi + 0x10]
test rcx, rcx
je 0x14003397d
mov rax, qword [0x1402095c0]
test rax, rax
je 0x140033970
dec dword [rax + 0xf4]
jmp 0x140033970
mov rcx, qword [rsi + 0x4b70]
test rcx, rcx
je 0x1400339ff
mov qword [rsi + 0x4b68], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x1400339e7
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
call qword [0x1401eb350]
mov qword [rsi + 0x4b70], 0
mov rcx, qword [rsi + 0x4bb8]
test rcx, rcx
je 0x140033a40
mov qword [rsi + 0x4bb0], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x140033a28
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
call qword [0x1401eb350]
mov qword [rsi + 0x4bb8], 0
mov rcx, qword [rsi + 0x5bd0]
test rcx, rcx
je 0x140033a81
mov qword [rsi + 0x5bc8], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x140033a69
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
call qword [0x1401eb350]
mov qword [rsi + 0x5bd0], 0
mov rcx, qword [rsi + 0x5be0]
test rcx, rcx
je 0x140033ac2
mov qword [rsi + 0x5bd8], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x140033aaa
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
call qword [0x1401eb350]
mov qword [rsi + 0x5be0], 0
mov rcx, qword [rsi + 0x4c48]
test rcx, rcx
je 0x140033b03
mov qword [rsi + 0x4c40], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x140033aeb
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
call qword [0x1401eb350]
mov qword [rsi + 0x4c48], 0
mov rcx, qword [rsi + 0x4c58]
test rcx, rcx
je 0x140033b44
mov qword [rsi + 0x4c50], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x140033b2c
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
call qword [0x1401eb350]
mov qword [rsi + 0x4c58], 0
mov rcx, qword [rsi + 0x4c68]
test rcx, rcx
je 0x140033b85
mov qword [rsi + 0x4c60], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x140033b6d
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
call qword [0x1401eb350]
mov qword [rsi + 0x4c68], 0
mov dword [rsi + 0x5ab8], 0
mov rcx, qword [rsi + 0x5ac8]
test rcx, rcx
je 0x140033bd0
mov qword [rsi + 0x5ac0], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x140033bb8
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
call qword [0x1401eb350]
mov qword [rsi + 0x5ac8], 0
mov rcx, qword [rsi + 0x5c38]
test rcx, rcx
je 0x140033c11
mov qword [rsi + 0x5c30], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x140033bf9
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
call qword [0x1401eb350]
mov qword [rsi + 0x5c38], 0
mov rcx, qword [rsi + 0x5c28]
test rcx, rcx
je 0x140033c52
mov qword [rsi + 0x5c20], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x140033c3a
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
call qword [0x1401eb350]
mov qword [rsi + 0x5c28], 0
mov rdi, qword [rsi + 0x5ca8]
test rdi, rdi
je 0x140033c86
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rdi, rax
je 0x140033c7b
mov rcx, qword [rsi + 0x5ca8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rsi + 0x5ca8], 0
mov rcx, qword [rsi + 0x5cb8]
test rcx, rcx
je 0x140033cc7
mov qword [rsi + 0x5cb0], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x140033caf
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
call qword [0x1401eb350]
mov qword [rsi + 0x5cb8], 0
mov rcx, qword [rsi + 0x5cf0]
test rcx, rcx
je 0x140033d08
mov qword [rsi + 0x5ce8], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x140033cf0
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
call qword [0x1401eb350]
mov qword [rsi + 0x5cf0], 0
mov rcx, qword [rsi + 0x5d00]
test rcx, rcx
je 0x140033d49
mov qword [rsi + 0x5cf8], 0
mov rax, qword [0x1402095c0]
test rax, rax
je 0x140033d31
dec dword [rax + 0xf4]
mov rdx, qword [0x1402095d0]
call qword [0x1401eb350]
mov qword [rsi + 0x5d00], 0
mov dword [rsi + 0x5d08], 0
mov byte [rsi], 0
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret