Function at 0x140006040
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 [0x140105590]
mov rdi, rax
mov rcx, qword [rax + 0x58]
test rcx, rcx
je 0x1400060a6
cmp byte [rax + 1], 0
je 0x1400060a6
mov byte [rcx + 0x18], 0
mov rbx, qword [rax + 0x58]
test rbx, rbx
je 0x1400060a6
mov rcx, rbx
call fcn.14002b4e0
mov rax, qword [0x140105590]
test rax, rax
je 0x140006096
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x140105590]
xor r12d, r12d
mov qword [rdi + 0x58], r12
mov rcx, qword [rdi + 0x3c48]
test rcx, rcx
je 0x1400060df
mov qword [rdi + 0x3c40], r12
test rax, rax
je 0x1400060cb
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3c48], r12
mov rax, qword [0x140105590]
cmp byte [rdi], r12b
je 0x140006911
cmp byte [rdi + 0x5be1], r12b
je 0x140006149
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140006149
mov dword [rax + 0x5be4], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.14001ca40
mov rsi, rax
lea rdx, [0x1400c62dc]
mov rcx, rbx
call fcn.140003750
mov rbx, rax
test rax, rax
je 0x140006149
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]
mov edx, 6
mov rcx, rdi
call fcn.140006930
mov esi, r12d
cmp dword [rdi + 0x3e70], r12d
jle 0x1400061b1
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x3e78]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x1400061a3
mov rcx, rbx
call fcn.140006f60
mov rax, qword [0x140105590]
test rax, rax
je 0x14000619a
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 + 0x3e70]
jl 0x140006170
mov rcx, qword [rdi + 0x3e78]
test rcx, rcx
je 0x1400061e3
mov qword [rdi + 0x3e70], r12
mov rax, qword [0x140105590]
test rax, rax
je 0x1400061d6
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e78], r12
mov rcx, qword [rdi + 0x3e88]
test rcx, rcx
je 0x140006215
mov qword [rdi + 0x3e80], r12
mov rax, qword [0x140105590]
test rax, rax
je 0x140006208
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e88], r12
mov rcx, qword [rdi + 0x3e98]
test rcx, rcx
je 0x140006247
mov qword [rdi + 0x3e90], r12
mov rax, qword [0x140105590]
test rax, rax
je 0x14000623a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e98], r12
mov qword [rdi + 0x3ed0], r12
mov rcx, qword [rdi + 0x3ea8]
test rcx, rcx
je 0x140006280
mov qword [rdi + 0x3ea0], r12
mov rax, qword [0x140105590]
test rax, rax
je 0x140006273
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ea8], r12
mov rcx, qword [rdi + 0x3eb8]
test rcx, rcx
je 0x1400062b2
mov qword [rdi + 0x3eb0], r12
mov rax, qword [0x140105590]
test rax, rax
je 0x1400062a5
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3eb8], r12
mov qword [rdi + 0x48b0], r12
mov qword [rdi + 0x3ee0], r12
mov qword [rdi + 0x3ed8], r12
mov qword [rdi + 0x3f68], r12
mov qword [rdi + 0x3f50], r12
mov qword [rdi + 0x3ee8], r12
lea rcx, [rdi + 0x4608]
call fcn.140001940
mov rcx, qword [rdi + 0x4820]
test rcx, rcx
je 0x14000631a
mov qword [rdi + 0x4818], r12
mov rax, qword [0x140105590]
test rax, rax
je 0x14000630d
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4820], r12
mov rcx, qword [rdi + 0x4830]
test rcx, rcx
je 0x14000634c
mov qword [rdi + 0x4828], r12
mov rax, qword [0x140105590]
test rax, rax
je 0x14000633f
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4830], r12
mov rcx, qword [rdi + 0x4840]
test rcx, rcx
je 0x14000637e
mov qword [rdi + 0x4838], r12
mov rax, qword [0x140105590]
test rax, rax
je 0x140006371
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4840], r12
mov rcx, qword [rdi + 0x4880]
test rcx, rcx
je 0x1400063b0
mov qword [rdi + 0x4878], r12
mov rax, qword [0x140105590]
test rax, rax
je 0x1400063a3
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4880], r12
mov rcx, qword [rdi + 0x4890]
test rcx, rcx
je 0x1400063e2
mov qword [rdi + 0x4888], r12
mov rax, qword [0x140105590]
test rax, rax
je 0x1400063d5
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4890], r12
mov ebp, r12d
cmp dword [rdi + 0x48a0], r12d
jle 0x1400064b4
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x48a8]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x1400064a2
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x140006440
mov rcx, rsi
call fcn.140001740
mov rax, qword [0x140105590]
test rax, rax
je 0x140006437
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rbx + 0x40]
test rsi, rsi
je 0x14000646d
mov rcx, rsi
call fcn.140001740
mov rax, qword [0x140105590]
test rax, rax
je 0x140006463
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbx + 0x78]
lea r9, [0x14001dd60]
mov edx, reloc.WS2_32.dll_recv
lea r8d, [rdx - 0xe]
call fcn.1400ae2ac
nop
mov rax, qword [0x140105590]
test rax, rax
je 0x140006499
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x48a0]
jl 0x140006400
mov rcx, qword [rdi + 0x48a8]
test rcx, rcx
je 0x1400064e6
mov qword [rdi + 0x48a0], r12
mov rax, qword [0x140105590]
test rax, rax
je 0x1400064d9
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x48a8], r12
lea rcx, [rdi + 0x4ba0]
call fcn.14001dd90
mov rcx, qword [rdi + 0x4bd0]
test rcx, rcx
je 0x140006524
mov qword [rdi + 0x4bc8], r12
mov rax, qword [0x140105590]
test rax, rax
je 0x140006517
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4bd0], r12
mov rcx, qword [rdi + 0x4be0]
test rcx, rcx
je 0x140006556
mov qword [rdi + 0x4bd8], r12
mov rax, qword [0x140105590]
test rax, rax
je 0x140006549
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4be0], r12
mov ebx, r12d
cmp dword [rdi + 0x4b20], r12d
jle 0x1400065a8
mov rsi, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x4b28]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x14000659a
mov rax, qword [0x140105590]
test rax, rax
je 0x140006593
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 + 0x4b20]
jl 0x140006570
mov rcx, qword [rdi + 0x4b28]
test rcx, rcx
je 0x1400065da
mov qword [rdi + 0x4b20], r12
mov rax, qword [0x140105590]
test rax, rax
je 0x1400065cd
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4b28], r12
lea rcx, [rdi + 0x4b50]
call fcn.14001df70
mov esi, r12d
cmp dword [rdi + 0x4b40], r12d
jle 0x140006645
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x4b48]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.14002ad50
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x140006637
mov rax, qword [0x140105590]
test rax, rax
je 0x140006630
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 + 0x4b40]
jl 0x140006600
mov rcx, qword [rdi + 0x4b48]
test rcx, rcx
je 0x140006677
mov qword [rdi + 0x4b40], r12
mov rax, qword [0x140105590]
test rax, rax
je 0x14000666a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4b48], r12
mov rcx, qword [rdi + 0x4b90]
test rcx, rcx
je 0x1400066a9
mov qword [rdi + 0x4b88], r12
mov rax, qword [0x140105590]
test rax, rax
je 0x14000669c
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4b90], r12
mov rcx, qword [rdi + 0x5ba8]
test rcx, rcx
je 0x1400066db
mov qword [rdi + 0x5ba0], r12
mov rax, qword [0x140105590]
test rax, rax
je 0x1400066ce
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ba8], r12
mov rcx, qword [rdi + 0x5bb8]
test rcx, rcx
je 0x14000670d
mov qword [rdi + 0x5bb0], r12
mov rax, qword [0x140105590]
test rax, rax
je 0x140006700
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5bb8], r12
mov rcx, qword [rdi + 0x4c20]
test rcx, rcx
je 0x14000673f
mov qword [rdi + 0x4c18], r12
mov rax, qword [0x140105590]
test rax, rax
je 0x140006732
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c20], r12
mov rcx, qword [rdi + 0x4c30]
test rcx, rcx
je 0x140006771
mov qword [rdi + 0x4c28], r12
mov rax, qword [0x140105590]
test rax, rax
je 0x140006764
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c30], r12
mov rcx, qword [rdi + 0x4c40]
test rcx, rcx
je 0x1400067a3
mov qword [rdi + 0x4c38], r12
mov rax, qword [0x140105590]
test rax, rax
je 0x140006796
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c40], r12
mov dword [rdi + 0x5a90], r12d
mov rcx, qword [rdi + 0x5aa0]
test rcx, rcx
je 0x1400067dc
mov qword [rdi + 0x5a98], r12
mov rax, qword [0x140105590]
test rax, rax
je 0x1400067cf
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5aa0], r12
mov rcx, qword [rdi + 0x5c10]
test rcx, rcx
je 0x14000680e
mov qword [rdi + 0x5c08], r12
mov rax, qword [0x140105590]
test rax, rax
je 0x140006801
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c10], r12
mov rcx, qword [rdi + 0x5c00]
test rcx, rcx
je 0x140006840
mov qword [rdi + 0x5bf8], r12
mov rax, qword [0x140105590]
test rax, rax
je 0x140006833
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c00], r12
cmp qword [rdi + 0x5c80], 0
je 0x140006871
mov rbx, qword [rdi + 0x5c80]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x14000686a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5c80], r12
mov rcx, qword [rdi + 0x5c90]
test rcx, rcx
je 0x1400068a3
mov qword [rdi + 0x5c88], r12
mov rax, qword [0x140105590]
test rax, rax
je 0x140006896
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 + 0x5cc8]
test rcx, rcx
je 0x1400068d5
mov qword [rdi + 0x5cc0], r12
mov rax, qword [0x140105590]
test rax, rax
je 0x1400068c8
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5cc8], r12
mov rcx, qword [rdi + 0x5cd8]
test rcx, rcx
je 0x140006907
mov qword [rdi + 0x5cd0], r12
mov rax, qword [0x140105590]
test rax, rax
je 0x1400068fa
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5cd8], r12
mov dword [rdi + 0x5ce0], 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