Function at 0x140006990
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 [0x1407e5d20]
mov rdi, rax
mov rcx, qword [rax + 0x58]
test rcx, rcx
je 0x1400069f6
cmp byte [rax + 1], 0
je 0x1400069f6
mov byte [rcx + 0x18], 0
mov rbx, qword [rax + 0x58]
test rbx, rbx
je 0x1400069f6
mov rcx, rbx
call fcn.1400359a0
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x1400069e6
dec dword [rax + 0xfc]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1407e5d20]
xor r12d, r12d
mov qword [rdi + 0x58], r12
mov rcx, qword [rdi + 0x3d90]
test rcx, rcx
je 0x140006a2f
mov qword [rdi + 0x3d88], r12
test rax, rax
je 0x140006a1b
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3d90], r12
mov rax, qword [0x1407e5d20]
cmp byte [rdi], r12b
je 0x1400072b8
cmp byte [rdi + 0x5d80], r12b
je 0x140006a99
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140006a99
mov dword [rax + 0x5d84], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.14001b860
mov rsi, rax
lea rdx, [0x1404e059c]
mov rcx, rbx
call fcn.140003980
mov rbx, rax
test rax, rax
je 0x140006a99
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.14001e300
mov esi, r12d
cmp dword [rdi + 0x5d48], r12d
jle 0x140006af2
mov rbp, r12
nop dword [rax]
mov rax, qword [rdi + 0x5d50]
mov rbx, qword [rax + rbp + 8]
test rbx, rbx
je 0x140006ae4
mov rcx, rbx
call fcn.14001fed0
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x140006adb
dec dword [rax + 0xfc]
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 + 0x5d48]
jl 0x140006ab0
mov ebx, r12d
cmp dword [rdi + 0x5dc8], r12d
jle 0x140006b31
mov rsi, r12
mov rcx, qword [rdi + 0x5dd0]
cmp dword [rsi + rcx + 4], 6
jne 0x140006b23
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 + 0x5dc8]
jl 0x140006b01
mov esi, r12d
cmp dword [rdi + 0x3f90], r12d
jle 0x140006b81
mov r14, r12
mov rax, qword [rdi + 0x3f98]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140006b73
mov rcx, rbx
call fcn.140007860
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x140006b6a
dec dword [rax + 0xfc]
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 + 0x3f90]
jl 0x140006b40
mov rcx, qword [rdi + 0x3f98]
test rcx, rcx
je 0x140006bb3
mov qword [rdi + 0x3f90], r12
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x140006ba6
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3f98], r12
mov rcx, qword [rdi + 0x3fa8]
test rcx, rcx
je 0x140006be5
mov qword [rdi + 0x3fa0], r12
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x140006bd8
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fa8], r12
mov rcx, qword [rdi + 0x3fb8]
test rcx, rcx
je 0x140006c17
mov qword [rdi + 0x3fb0], r12
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x140006c0a
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fb8], r12
mov qword [rdi + 0x3ff0], r12
mov rcx, qword [rdi + 0x3fc8]
test rcx, rcx
je 0x140006c50
mov qword [rdi + 0x3fc0], r12
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x140006c43
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fc8], r12
mov rcx, qword [rdi + 0x3fd8]
test rcx, rcx
je 0x140006c82
mov qword [rdi + 0x3fd0], r12
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x140006c75
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3fd8], r12
mov qword [rdi + 0x4a40], r12
mov qword [rdi + 0x4000], r12
mov qword [rdi + 0x3ff8], r12
mov qword [rdi + 0x4088], r12
mov qword [rdi + 0x4070], r12
mov qword [rdi + 0x4008], r12
lea rcx, [rdi + 0x4728]
call fcn.140001c40
mov rcx, qword [rdi + 0x4960]
test rcx, rcx
je 0x140006cea
mov qword [rdi + 0x4958], r12
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x140006cdd
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4960], r12
mov rcx, qword [rdi + 0x4970]
test rcx, rcx
je 0x140006d1c
mov qword [rdi + 0x4968], r12
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x140006d0f
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4970], r12
mov rcx, qword [rdi + 0x4980]
test rcx, rcx
je 0x140006d4e
mov qword [rdi + 0x4978], r12
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x140006d41
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4980], r12
mov rcx, qword [rdi + 0x49c0]
test rcx, rcx
je 0x140006d80
mov qword [rdi + 0x49b8], r12
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x140006d73
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49c0], r12
mov rcx, qword [rdi + 0x49d0]
test rcx, rcx
je 0x140006db2
mov qword [rdi + 0x49c8], r12
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x140006da5
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49d0], r12
mov qword [rdi + 0x4a08], r12
mov qword [rdi + 0x4a00], r12
mov qword [rdi + 0x49f8], r12
mov ebp, r12d
cmp dword [rdi + 0x49e0], r12d
jle 0x140006e9d
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x49e8]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140006e8b
mov rsi, qword [rbx + 0x98]
test rsi, rsi
je 0x140006e23
mov rcx, rsi
call fcn.140001a40
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x140006e1a
dec dword [rax + 0xfc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rbx + 0xa0]
test rsi, rsi
je 0x140006e53
mov rcx, rsi
call fcn.140001a40
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x140006e49
dec dword [rax + 0xfc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbx + 0xe0]
lea r9, [0x140027cb0]
mov edx, reloc.WS2_32.dll_recv
lea r8d, [rdx - 0xe]
call fcn.1401dbcbc
nop
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x140006e82
dec dword [rax + 0xfc]
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 + 0x49e0]
jl 0x140006de0
mov rcx, qword [rdi + 0x49e8]
test rcx, rcx
je 0x140006ecf
mov qword [rdi + 0x49e0], r12
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x140006ec2
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x49e8], r12
lea rcx, [rdi + 0x4d18]
call fcn.140027ff0
mov rcx, qword [rdi + 0x4d48]
test rcx, rcx
je 0x140006f0d
mov qword [rdi + 0x4d40], r12
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x140006f00
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d48], r12
mov rcx, qword [rdi + 0x4d58]
test rcx, rcx
je 0x140006f3f
mov qword [rdi + 0x4d50], r12
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x140006f32
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d58], r12
mov ebx, r12d
cmp dword [rdi + 0x4c98], r12d
jle 0x140006f88
mov rsi, r12
nop
mov rax, qword [rdi + 0x4ca0]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x140006f7a
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x140006f73
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4c98]
jl 0x140006f50
mov rcx, qword [rdi + 0x4ca0]
test rcx, rcx
je 0x140006fba
mov qword [rdi + 0x4c98], r12
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x140006fad
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4ca0], r12
lea rcx, [rdi + 0x4cc8]
call fcn.140028170
mov esi, r12d
cmp dword [rdi + 0x4cb8], r12d
jle 0x140007025
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x4cc0]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.1400352e0
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x140007017
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x140007010
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4cb8]
jl 0x140006fe0
mov rcx, qword [rdi + 0x4cc0]
test rcx, rcx
je 0x140007057
mov qword [rdi + 0x4cb8], r12
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x14000704a
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4cc0], r12
mov rcx, qword [rdi + 0x4d08]
test rcx, rcx
je 0x140007089
mov qword [rdi + 0x4d00], r12
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x14000707c
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d08], r12
mov rcx, qword [rdi + 0x5d08]
test rcx, rcx
je 0x1400070bb
mov qword [rdi + 0x5d00], r12
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x1400070ae
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d08], r12
mov rcx, qword [rdi + 0x5d18]
test rcx, rcx
je 0x1400070ed
mov qword [rdi + 0x5d10], r12
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x1400070e0
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d18], r12
mov rcx, qword [rdi + 0x4d98]
test rcx, rcx
je 0x14000711f
mov qword [rdi + 0x4d90], r12
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x140007112
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4d98], r12
mov rcx, qword [rdi + 0x4da8]
test rcx, rcx
je 0x140007151
mov qword [rdi + 0x4da0], r12
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x140007144
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4da8], r12
mov rcx, qword [rdi + 0x4db8]
test rcx, rcx
je 0x140007183
mov qword [rdi + 0x4db0], r12
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x140007176
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4db8], r12
mov rcx, qword [rdi + 0x5db0]
test rcx, rcx
je 0x1400071b5
mov qword [rdi + 0x5da8], r12
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x1400071a8
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5db0], r12
mov rcx, qword [rdi + 0x5da0]
test rcx, rcx
je 0x1400071e7
mov qword [rdi + 0x5d98], r12
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x1400071da
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5da0], r12
cmp qword [rdi + 0x5e28], 0
je 0x140007218
mov rbx, qword [rdi + 0x5e28]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x140007211
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5e28], r12
mov rcx, qword [rdi + 0x5e38]
test rcx, rcx
je 0x14000724a
mov qword [rdi + 0x5e30], r12
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x14000723d
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5e38], r12
mov rcx, qword [rdi + 0x5e70]
test rcx, rcx
je 0x14000727c
mov qword [rdi + 0x5e68], r12
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x14000726f
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5e70], r12
mov rcx, qword [rdi + 0x5e80]
test rcx, rcx
je 0x1400072ae
mov qword [rdi + 0x5e78], r12
mov rax, qword [0x1407e5d20]
test rax, rax
je 0x1400072a1
dec dword [rax + 0xfc]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5e80], r12
mov dword [rdi + 0x5e88], 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