Function at 0x1400159f0
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 rdi, qword [0x140172948]
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x140015a4c
cmp byte [rdi + 1], 0
je 0x140015a4c
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x38]
test rbx, rbx
je 0x140015a4c
mov rcx, rbx
call fcn.140038ee0
mov rax, qword [0x140172948]
test rax, rax
je 0x140015a43
dec dword [rax + 0xec]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r12d, r12d
mov qword [rdi + 0x38], r12
mov rcx, qword [rdi + 0x3c70]
test rcx, rcx
je 0x140015a85
mov qword [rdi + 0x3c68], r12
mov rax, qword [0x140172948]
test rax, rax
je 0x140015a78
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3c70], r12
cmp byte [rdi], r12b
je 0x1400162f1
cmp byte [rdi + 0x5c29], r12b
je 0x140015af6
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140015af6
mov rax, qword [0x140172948]
mov dword [rax + 0x5c2c], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.1400290f0
mov rsi, rax
lea rdx, [0x14013a0a4]
mov rcx, rbx
call fcn.1400132a0
mov rbx, rax
test rax, rax
je 0x140015af6
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 ebx, r12d
cmp dword [rdi + 0x5c70], r12d
jle 0x140015b40
mov rsi, r12
nop word [rax + rax]
mov rcx, qword [rdi + 0x5c78]
cmp dword [rsi + rcx + 4], 6
jne 0x140015b32
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 + 0x5c70]
jl 0x140015b10
mov esi, r12d
cmp dword [rdi + 0x3ea8], r12d
jle 0x140015b91
mov r14, r12
nop
mov rax, qword [rdi + 0x3eb0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140015b83
mov rcx, rbx
call fcn.140016810
mov rax, qword [0x140172948]
test rax, rax
je 0x140015b7a
dec dword [rax + 0xec]
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 + 0x3ea8]
jl 0x140015b50
mov rcx, qword [rdi + 0x3eb0]
test rcx, rcx
je 0x140015bc3
mov qword [rdi + 0x3ea8], r12
mov rax, qword [0x140172948]
test rax, rax
je 0x140015bb6
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3eb0], r12
mov rcx, qword [rdi + 0x3ec0]
test rcx, rcx
je 0x140015bf5
mov qword [rdi + 0x3eb8], r12
mov rax, qword [0x140172948]
test rax, rax
je 0x140015be8
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ec0], r12
mov rcx, qword [rdi + 0x3ed0]
test rcx, rcx
je 0x140015c27
mov qword [rdi + 0x3ec8], r12
mov rax, qword [0x140172948]
test rax, rax
je 0x140015c1a
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ed0], r12
mov qword [rdi + 0x3f08], r12
mov rcx, qword [rdi + 0x3ee0]
test rcx, rcx
je 0x140015c60
mov qword [rdi + 0x3ed8], r12
mov rax, qword [0x140172948]
test rax, rax
je 0x140015c53
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ee0], r12
mov rcx, qword [rdi + 0x3ef0]
test rcx, rcx
je 0x140015c92
mov qword [rdi + 0x3ee8], r12
mov rax, qword [0x140172948]
test rax, rax
je 0x140015c85
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ef0], r12
mov qword [rdi + 0x48f0], r12
mov qword [rdi + 0x3f18], r12
mov qword [rdi + 0x3f10], r12
mov qword [rdi + 0x3fa0], r12
mov qword [rdi + 0x3f88], r12
mov qword [rdi + 0x3f20], r12
lea rcx, [rdi + 0x4640]
call fcn.1400115f0
mov rcx, qword [rdi + 0x4860]
test rcx, rcx
je 0x140015cfa
mov qword [rdi + 0x4858], r12
mov rax, qword [0x140172948]
test rax, rax
je 0x140015ced
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4860], r12
mov rcx, qword [rdi + 0x4870]
test rcx, rcx
je 0x140015d2c
mov qword [rdi + 0x4868], r12
mov rax, qword [0x140172948]
test rax, rax
je 0x140015d1f
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4870], r12
mov rcx, qword [rdi + 0x4880]
test rcx, rcx
je 0x140015d5e
mov qword [rdi + 0x4878], r12
mov rax, qword [0x140172948]
test rax, rax
je 0x140015d51
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4880], r12
mov rcx, qword [rdi + 0x48c0]
test rcx, rcx
je 0x140015d90
mov qword [rdi + 0x48b8], r12
mov rax, qword [0x140172948]
test rax, rax
je 0x140015d83
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x48c0], r12
mov rcx, qword [rdi + 0x48d0]
test rcx, rcx
je 0x140015dc2
mov qword [rdi + 0x48c8], r12
mov rax, qword [0x140172948]
test rax, rax
je 0x140015db5
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x48d0], r12
mov ebp, r12d
cmp dword [rdi + 0x48e0], r12d
jle 0x140015e94
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x48e8]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140015e82
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x140015e20
mov rcx, rsi
call fcn.140011400
mov rax, qword [0x140172948]
test rax, rax
je 0x140015e17
dec dword [rax + 0xec]
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 0x140015e4d
mov rcx, rsi
call fcn.140011400
mov rax, qword [0x140172948]
test rax, rax
je 0x140015e43
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbx + 0x78]
lea r9, [0x14002a130]
mov edx, reloc.WS2_32.dll_recv
lea r8d, [rdx - 0xe]
call fcn.1400accd4
nop
mov rax, qword [0x140172948]
test rax, rax
je 0x140015e79
dec dword [rax + 0xec]
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 + 0x48e0]
jl 0x140015de0
mov rcx, qword [rdi + 0x48e8]
test rcx, rcx
je 0x140015ec6
mov qword [rdi + 0x48e0], r12
mov rax, qword [0x140172948]
test rax, rax
je 0x140015eb9
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x48e8], r12
lea rcx, [rdi + 0x4bd8]
call fcn.14002a160
mov rcx, qword [rdi + 0x4c08]
test rcx, rcx
je 0x140015f04
mov qword [rdi + 0x4c00], r12
mov rax, qword [0x140172948]
test rax, rax
je 0x140015ef7
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c08], r12
mov rcx, qword [rdi + 0x4c18]
test rcx, rcx
je 0x140015f36
mov qword [rdi + 0x4c10], r12
mov rax, qword [0x140172948]
test rax, rax
je 0x140015f29
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c18], r12
mov ebx, r12d
cmp dword [rdi + 0x4b58], r12d
jle 0x140015f88
mov rsi, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x4b60]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x140015f7a
mov rax, qword [0x140172948]
test rax, rax
je 0x140015f73
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4b58]
jl 0x140015f50
mov rcx, qword [rdi + 0x4b60]
test rcx, rcx
je 0x140015fba
mov qword [rdi + 0x4b58], r12
mov rax, qword [0x140172948]
test rax, rax
je 0x140015fad
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4b60], r12
lea rcx, [rdi + 0x4b88]
call fcn.14002a2d0
mov esi, r12d
cmp dword [rdi + 0x4b78], r12d
jle 0x140016025
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x4b80]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.140038920
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x140016017
mov rax, qword [0x140172948]
test rax, rax
je 0x140016010
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4b78]
jl 0x140015fe0
mov rcx, qword [rdi + 0x4b80]
test rcx, rcx
je 0x140016057
mov qword [rdi + 0x4b78], r12
mov rax, qword [0x140172948]
test rax, rax
je 0x14001604a
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4b80], r12
mov rcx, qword [rdi + 0x4bc8]
test rcx, rcx
je 0x140016089
mov qword [rdi + 0x4bc0], r12
mov rax, qword [0x140172948]
test rax, rax
je 0x14001607c
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4bc8], r12
mov rcx, qword [rdi + 0x5bf0]
test rcx, rcx
je 0x1400160bb
mov qword [rdi + 0x5be8], r12
mov rax, qword [0x140172948]
test rax, rax
je 0x1400160ae
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5bf0], r12
mov rcx, qword [rdi + 0x5c00]
test rcx, rcx
je 0x1400160ed
mov qword [rdi + 0x5bf8], r12
mov rax, qword [0x140172948]
test rax, rax
je 0x1400160e0
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c00], r12
mov rcx, qword [rdi + 0x4c68]
test rcx, rcx
je 0x14001611f
mov qword [rdi + 0x4c60], r12
mov rax, qword [0x140172948]
test rax, rax
je 0x140016112
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c68], r12
mov rcx, qword [rdi + 0x4c78]
test rcx, rcx
je 0x140016151
mov qword [rdi + 0x4c70], r12
mov rax, qword [0x140172948]
test rax, rax
je 0x140016144
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c78], r12
mov rcx, qword [rdi + 0x4c88]
test rcx, rcx
je 0x140016183
mov qword [rdi + 0x4c80], r12
mov rax, qword [0x140172948]
test rax, rax
je 0x140016176
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c88], r12
mov dword [rdi + 0x5ad8], r12d
mov rcx, qword [rdi + 0x5ae8]
test rcx, rcx
je 0x1400161bc
mov qword [rdi + 0x5ae0], r12
mov rax, qword [0x140172948]
test rax, rax
je 0x1400161af
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ae8], r12
mov rcx, qword [rdi + 0x5c58]
test rcx, rcx
je 0x1400161ee
mov qword [rdi + 0x5c50], r12
mov rax, qword [0x140172948]
test rax, rax
je 0x1400161e1
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c58], r12
mov rcx, qword [rdi + 0x5c48]
test rcx, rcx
je 0x140016220
mov qword [rdi + 0x5c40], r12
mov rax, qword [0x140172948]
test rax, rax
je 0x140016213
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c48], r12
cmp qword [rdi + 0x5cd0], 0
je 0x140016251
mov rbx, qword [rdi + 0x5cd0]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x14001624a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5cd0], r12
mov rcx, qword [rdi + 0x5ce0]
test rcx, rcx
je 0x140016283
mov qword [rdi + 0x5cd8], r12
mov rax, qword [0x140172948]
test rax, rax
je 0x140016276
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ce0], r12
mov rcx, qword [rdi + 0x5d18]
test rcx, rcx
je 0x1400162b5
mov qword [rdi + 0x5d10], r12
mov rax, qword [0x140172948]
test rax, rax
je 0x1400162a8
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d18], r12
mov rcx, qword [rdi + 0x5d28]
test rcx, rcx
je 0x1400162e7
mov qword [rdi + 0x5d20], r12
mov rax, qword [0x140172948]
test rax, rax
je 0x1400162da
dec dword [rax + 0xec]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d28], r12
mov dword [rdi + 0x5d30], 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