Function at 0x140010100
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 [0x14023cee0]
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x14001015c
cmp byte [rdi + 1], 0
je 0x14001015c
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x38]
test rbx, rbx
je 0x14001015c
mov rcx, rbx
call fcn.1400342f0
mov rax, qword [0x14023cee0]
test rax, rax
je 0x140010153
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 0x140010195
mov qword [rdi + 0x3c68], r12
mov rax, qword [0x14023cee0]
test rax, rax
je 0x140010188
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 0x140010a01
cmp byte [rdi + 0x5c29], r12b
je 0x140010206
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140010206
mov rax, qword [0x14023cee0]
mov dword [rax + 0x5c2c], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.140024840
mov rsi, rax
lea rdx, [0x140151934]
mov rcx, rbx
call fcn.14000d4b0
mov rbx, rax
test rax, rax
je 0x140010206
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 0x140010250
mov rsi, r12
nop word [rax + rax]
mov rcx, qword [rdi + 0x5c78]
cmp dword [rsi + rcx + 4], 6
jne 0x140010242
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 0x140010220
mov esi, r12d
cmp dword [rdi + 0x3ea8], r12d
jle 0x1400102a1
mov r14, r12
nop
mov rax, qword [rdi + 0x3eb0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140010293
mov rcx, rbx
call fcn.140010f20
mov rax, qword [0x14023cee0]
test rax, rax
je 0x14001028a
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 0x140010260
mov rcx, qword [rdi + 0x3eb0]
test rcx, rcx
je 0x1400102d3
mov qword [rdi + 0x3ea8], r12
mov rax, qword [0x14023cee0]
test rax, rax
je 0x1400102c6
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 0x140010305
mov qword [rdi + 0x3eb8], r12
mov rax, qword [0x14023cee0]
test rax, rax
je 0x1400102f8
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 0x140010337
mov qword [rdi + 0x3ec8], r12
mov rax, qword [0x14023cee0]
test rax, rax
je 0x14001032a
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 0x140010370
mov qword [rdi + 0x3ed8], r12
mov rax, qword [0x14023cee0]
test rax, rax
je 0x140010363
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 0x1400103a2
mov qword [rdi + 0x3ee8], r12
mov rax, qword [0x14023cee0]
test rax, rax
je 0x140010395
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.14000b760
mov rcx, qword [rdi + 0x4860]
test rcx, rcx
je 0x14001040a
mov qword [rdi + 0x4858], r12
mov rax, qword [0x14023cee0]
test rax, rax
je 0x1400103fd
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 0x14001043c
mov qword [rdi + 0x4868], r12
mov rax, qword [0x14023cee0]
test rax, rax
je 0x14001042f
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 0x14001046e
mov qword [rdi + 0x4878], r12
mov rax, qword [0x14023cee0]
test rax, rax
je 0x140010461
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 0x1400104a0
mov qword [rdi + 0x48b8], r12
mov rax, qword [0x14023cee0]
test rax, rax
je 0x140010493
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 0x1400104d2
mov qword [rdi + 0x48c8], r12
mov rax, qword [0x14023cee0]
test rax, rax
je 0x1400104c5
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 0x1400105a4
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x48e8]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140010592
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x140010530
mov rcx, rsi
call fcn.14000b560
mov rax, qword [0x14023cee0]
test rax, rax
je 0x140010527
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 0x14001055d
mov rcx, rsi
call fcn.14000b560
mov rax, qword [0x14023cee0]
test rax, rax
je 0x140010553
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, [0x140025880]
mov edx, reloc.WS2_32.dll_recv
lea r8d, [rdx - 0xe]
call fcn.14012092c
nop
mov rax, qword [0x14023cee0]
test rax, rax
je 0x140010589
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 0x1400104f0
mov rcx, qword [rdi + 0x48e8]
test rcx, rcx
je 0x1400105d6
mov qword [rdi + 0x48e0], r12
mov rax, qword [0x14023cee0]
test rax, rax
je 0x1400105c9
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.1400258b0
mov rcx, qword [rdi + 0x4c08]
test rcx, rcx
je 0x140010614
mov qword [rdi + 0x4c00], r12
mov rax, qword [0x14023cee0]
test rax, rax
je 0x140010607
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 0x140010646
mov qword [rdi + 0x4c10], r12
mov rax, qword [0x14023cee0]
test rax, rax
je 0x140010639
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 0x140010698
mov rsi, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x4b60]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x14001068a
mov rax, qword [0x14023cee0]
test rax, rax
je 0x140010683
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 0x140010660
mov rcx, qword [rdi + 0x4b60]
test rcx, rcx
je 0x1400106ca
mov qword [rdi + 0x4b58], r12
mov rax, qword [0x14023cee0]
test rax, rax
je 0x1400106bd
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.140025a20
mov esi, r12d
cmp dword [rdi + 0x4b78], r12d
jle 0x140010735
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x4b80]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.1400338d0
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x140010727
mov rax, qword [0x14023cee0]
test rax, rax
je 0x140010720
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 0x1400106f0
mov rcx, qword [rdi + 0x4b80]
test rcx, rcx
je 0x140010767
mov qword [rdi + 0x4b78], r12
mov rax, qword [0x14023cee0]
test rax, rax
je 0x14001075a
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 0x140010799
mov qword [rdi + 0x4bc0], r12
mov rax, qword [0x14023cee0]
test rax, rax
je 0x14001078c
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 0x1400107cb
mov qword [rdi + 0x5be8], r12
mov rax, qword [0x14023cee0]
test rax, rax
je 0x1400107be
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 0x1400107fd
mov qword [rdi + 0x5bf8], r12
mov rax, qword [0x14023cee0]
test rax, rax
je 0x1400107f0
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 0x14001082f
mov qword [rdi + 0x4c60], r12
mov rax, qword [0x14023cee0]
test rax, rax
je 0x140010822
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 0x140010861
mov qword [rdi + 0x4c70], r12
mov rax, qword [0x14023cee0]
test rax, rax
je 0x140010854
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 0x140010893
mov qword [rdi + 0x4c80], r12
mov rax, qword [0x14023cee0]
test rax, rax
je 0x140010886
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 0x1400108cc
mov qword [rdi + 0x5ae0], r12
mov rax, qword [0x14023cee0]
test rax, rax
je 0x1400108bf
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 0x1400108fe
mov qword [rdi + 0x5c50], r12
mov rax, qword [0x14023cee0]
test rax, rax
je 0x1400108f1
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 0x140010930
mov qword [rdi + 0x5c40], r12
mov rax, qword [0x14023cee0]
test rax, rax
je 0x140010923
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 0x140010961
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 0x14001095a
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 0x140010993
mov qword [rdi + 0x5cd8], r12
mov rax, qword [0x14023cee0]
test rax, rax
je 0x140010986
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 0x1400109c5
mov qword [rdi + 0x5d10], r12
mov rax, qword [0x14023cee0]
test rax, rax
je 0x1400109b8
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 0x1400109f7
mov qword [rdi + 0x5d20], r12
mov rax, qword [0x14023cee0]
test rax, rax
je 0x1400109ea
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