Function at 0x140008e00
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, rcx
mov rax, qword [rcx + 0xa8]
test rax, rax
je 0x140008e5e
cmp byte [rcx + 1], 0
je 0x140008e5e
mov byte [rax + 0x18], 0
mov rbx, qword [rcx + 0xa8]
test rbx, rbx
je 0x140008e5e
mov rcx, rbx
call fcn.140022a40
mov rax, qword [0x1400f2330]
test rax, rax
je 0x140008e55
dec dword [rax + 0x3b0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r12d, r12d
mov qword [rdi + 0xa8], r12
cmp byte [rdi], r12b
je 0x14000962d
cmp byte [rdi + 0x30d9], r12b
je 0x140008ee7
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140008ee7
mov rsi, qword [0x1400f2330]
mov qword [0x1400f2330], rdi
mov dword [rdi + 0x30dc], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.140015980
mov rbp, rax
lea rdx, [0x1400bb7d0]
mov rcx, rbx
call fcn.140003f10
mov rbx, rax
test rax, rax
je 0x140008ee0
mov r9, rax
mov r8, qword [rsp + 0x50]
lea edx, [r12 + 1]
mov rcx, rbp
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 qword [0x1400f2330], rsi
mov ebx, r12d
cmp dword [rdi + 0x3120], r12d
jle 0x140008f30
mov rsi, r12
nop word [rax + rax]
mov rcx, qword [rdi + 0x3128]
cmp dword [rsi + rcx + 4], 6
jne 0x140008f22
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 + 0x3120]
jl 0x140008f00
mov esi, r12d
cmp dword [rdi + 0x1bc8], r12d
jle 0x140008f81
mov r14, r12
nop
mov rax, qword [rdi + 0x1bd0]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140008f73
mov rcx, rbx
call fcn.140005df0
mov rax, qword [0x1400f2330]
test rax, rax
je 0x140008f6a
dec dword [rax + 0x3b0]
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 + 0x1bc8]
jl 0x140008f40
mov rcx, qword [rdi + 0x1bd0]
test rcx, rcx
je 0x140008fb3
mov qword [rdi + 0x1bc8], r12
mov rax, qword [0x1400f2330]
test rax, rax
je 0x140008fa6
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1bd0], r12
mov rcx, qword [rdi + 0x1be0]
test rcx, rcx
je 0x140008fe5
mov qword [rdi + 0x1bd8], r12
mov rax, qword [0x1400f2330]
test rax, rax
je 0x140008fd8
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1be0], r12
mov rcx, qword [rdi + 0x1bf0]
test rcx, rcx
je 0x140009017
mov qword [rdi + 0x1be8], r12
mov rax, qword [0x1400f2330]
test rax, rax
je 0x14000900a
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1bf0], r12
mov qword [rdi + 0x1c28], r12
mov rcx, qword [rdi + 0x1c00]
test rcx, rcx
je 0x140009050
mov qword [rdi + 0x1bf8], r12
mov rax, qword [0x1400f2330]
test rax, rax
je 0x140009043
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1c00], r12
mov rcx, qword [rdi + 0x1c10]
test rcx, rcx
je 0x140009082
mov qword [rdi + 0x1c08], r12
mov rax, qword [0x1400f2330]
test rax, rax
je 0x140009075
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1c10], r12
mov qword [rdi + 0x1e28], r12
mov qword [rdi + 0x1c38], r12
mov qword [rdi + 0x1c30], r12
mov qword [rdi + 0x1cb8], r12
mov qword [rdi + 0x1ca0], r12
mov qword [rdi + 0x1c40], r12
mov rcx, qword [rdi + 0x1d98]
test rcx, rcx
je 0x1400090de
mov qword [rdi + 0x1d90], r12
mov rax, qword [0x1400f2330]
test rax, rax
je 0x1400090d1
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1d98], r12
mov rcx, qword [rdi + 0x1da8]
test rcx, rcx
je 0x140009110
mov qword [rdi + 0x1da0], r12
mov rax, qword [0x1400f2330]
test rax, rax
je 0x140009103
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1da8], r12
mov rcx, qword [rdi + 0x1db8]
test rcx, rcx
je 0x140009142
mov qword [rdi + 0x1db0], r12
mov rax, qword [0x1400f2330]
test rax, rax
je 0x140009135
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1db8], r12
mov rcx, qword [rdi + 0x1df8]
test rcx, rcx
je 0x140009174
mov qword [rdi + 0x1df0], r12
mov rax, qword [0x1400f2330]
test rax, rax
je 0x140009167
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1df8], r12
mov rcx, qword [rdi + 0x1e08]
test rcx, rcx
je 0x1400091a6
mov qword [rdi + 0x1e00], r12
mov rax, qword [0x1400f2330]
test rax, rax
je 0x140009199
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1e08], r12
mov ebp, r12d
cmp dword [rdi + 0x1e18], r12d
jle 0x140009274
mov r14, r12
nop dword [rax]
mov rax, qword [rdi + 0x1e20]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140009262
mov rsi, qword [rbx + 0x30]
test rsi, rsi
je 0x140009200
mov rcx, rsi
call fcn.1400029a0
mov rax, qword [0x1400f2330]
test rax, rax
je 0x1400091f7
dec dword [rax + 0x3b0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x14000922d
mov rcx, rsi
call fcn.1400029a0
mov rax, qword [0x1400f2330]
test rax, rax
je 0x140009223
dec dword [rax + 0x3b0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbx + 0x70]
lea r9, [0x140016560]
mov edx, reloc.WS2_32.dll_recv
lea r8d, [rdx - 0xe]
call fcn.1400a6be0
nop
mov rax, qword [0x1400f2330]
test rax, rax
je 0x140009259
dec dword [rax + 0x3b0]
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 + 0x1e18]
jl 0x1400091c0
mov rcx, qword [rdi + 0x1e20]
test rcx, rcx
je 0x1400092a6
mov qword [rdi + 0x1e18], r12
mov rax, qword [0x1400f2330]
test rax, rax
je 0x140009299
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x1e20], r12
lea rcx, [rdi + 0x20e8]
call fcn.140016690
mov rcx, qword [rdi + 0x2118]
test rcx, rcx
je 0x1400092e4
mov qword [rdi + 0x2110], r12
mov rax, qword [0x1400f2330]
test rax, rax
je 0x1400092d7
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2118], r12
mov rcx, qword [rdi + 0x2128]
test rcx, rcx
je 0x140009316
mov qword [rdi + 0x2120], r12
mov rax, qword [0x1400f2330]
test rax, rax
je 0x140009309
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2128], r12
mov ebx, r12d
cmp dword [rdi + 0x2068], r12d
jle 0x140009368
mov rsi, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x2070]
mov rcx, qword [rsi + rax + 0x18]
test rcx, rcx
je 0x14000935a
mov rax, qword [0x1400f2330]
test rax, rax
je 0x140009353
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc ebx
add rsi, 0x20
cmp ebx, dword [rdi + 0x2068]
jl 0x140009330
mov rcx, qword [rdi + 0x2070]
test rcx, rcx
je 0x14000939a
mov qword [rdi + 0x2068], r12
mov rax, qword [0x1400f2330]
test rax, rax
je 0x14000938d
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2070], r12
lea rcx, [rdi + 0x2098]
call fcn.140016810
mov esi, r12d
cmp dword [rdi + 0x2088], r12d
jle 0x140009405
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x2090]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.1400224e0
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x1400093f7
mov rax, qword [0x1400f2330]
test rax, rax
je 0x1400093f0
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x2088]
jl 0x1400093c0
mov rcx, qword [rdi + 0x2090]
test rcx, rcx
je 0x140009437
mov qword [rdi + 0x2088], r12
mov rax, qword [0x1400f2330]
test rax, rax
je 0x14000942a
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2090], r12
mov rcx, qword [rdi + 0x20d8]
test rcx, rcx
je 0x140009469
mov qword [rdi + 0x20d0], r12
mov rax, qword [0x1400f2330]
test rax, rax
je 0x14000945c
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x20d8], r12
mov rcx, qword [rdi + 0x30b0]
test rcx, rcx
je 0x14000949b
mov qword [rdi + 0x30a8], r12
mov rax, qword [0x1400f2330]
test rax, rax
je 0x14000948e
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x30b0], r12
mov rcx, qword [rdi + 0x30c0]
test rcx, rcx
je 0x1400094cd
mov qword [rdi + 0x30b8], r12
mov rax, qword [0x1400f2330]
test rax, rax
je 0x1400094c0
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x30c0], r12
mov rcx, qword [rdi + 0x2150]
test rcx, rcx
je 0x1400094ff
mov qword [rdi + 0x2148], r12
mov rax, qword [0x1400f2330]
test rax, rax
je 0x1400094f2
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2150], r12
mov rcx, qword [rdi + 0x2160]
test rcx, rcx
je 0x140009531
mov qword [rdi + 0x2158], r12
mov rax, qword [0x1400f2330]
test rax, rax
je 0x140009524
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2160], r12
mov rcx, qword [rdi + 0x2170]
test rcx, rcx
je 0x140009563
mov qword [rdi + 0x2168], r12
mov rax, qword [0x1400f2330]
test rax, rax
je 0x140009556
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x2170], r12
mov rcx, qword [rdi + 0x3108]
test rcx, rcx
je 0x140009595
mov qword [rdi + 0x3100], r12
mov rax, qword [0x1400f2330]
test rax, rax
je 0x140009588
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3108], r12
mov rcx, qword [rdi + 0x30f8]
test rcx, rcx
je 0x1400095c7
mov qword [rdi + 0x30f0], r12
mov rax, qword [0x1400f2330]
test rax, rax
je 0x1400095ba
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x30f8], r12
cmp qword [rdi + 0x3140], 0
je 0x1400095f8
mov rbx, qword [rdi + 0x3140]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x1400095f1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x3140], r12
mov rcx, qword [rdi + 0x3150]
test rcx, rcx
je 0x14000962a
mov qword [rdi + 0x3148], r12
mov rax, qword [0x1400f2330]
test rax, rax
je 0x14000961d
dec dword [rax + 0x3b0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3150], r12
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