Function at 0x1400490a0
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 [0x1400bcad0]
mov rax, qword [rdi + 0x58]
test rax, rax
je 0x1400490fc
cmp byte [rdi + 1], 0
je 0x1400490fc
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x58]
test rbx, rbx
je 0x1400490fc
mov rcx, rbx
call fcn.14006d720
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x1400490f3
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r12d, r12d
mov qword [rdi + 0x58], r12
mov rcx, qword [rdi + 0x3c70]
test rcx, rcx
je 0x140049135
mov qword [rdi + 0x3c68], r12
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x140049128
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3c70], r12
cmp byte [rdi], r12b
je 0x140049968
cmp byte [rdi + 0x5bb1], r12b
je 0x1400491a6
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x1400491a6
mov rax, qword [0x1400bcad0]
mov dword [rax + 0x5bb4], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.14005cc80
mov rsi, rax
lea rdx, [0x140098438]
mov rcx, rbx
call fcn.140045d90
mov rbx, rax
test rax, rax
je 0x1400491a6
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 + 0x5bf8], r12d
jle 0x1400491f0
mov rsi, r12
nop word [rax + rax]
mov rcx, qword [rdi + 0x5c00]
cmp dword [rsi + rcx + 4], 6
jne 0x1400491e2
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 + 0x5bf8]
jl 0x1400491c0
mov esi, r12d
cmp dword [rdi + 0x3e80], r12d
jle 0x140049241
mov r14, r12
nop
mov rax, qword [rdi + 0x3e88]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140049233
mov rcx, rbx
call fcn.140049e50
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x14004922a
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 + 0x3e80]
jl 0x140049200
mov rcx, qword [rdi + 0x3e88]
test rcx, rcx
je 0x140049273
mov qword [rdi + 0x3e80], r12
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x140049266
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 0x1400492a5
mov qword [rdi + 0x3e90], r12
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x140049298
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e98], r12
mov rcx, qword [rdi + 0x3ea8]
test rcx, rcx
je 0x1400492d7
mov qword [rdi + 0x3ea0], r12
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x1400492ca
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ea8], r12
mov qword [rdi + 0x3ee0], r12
mov rcx, qword [rdi + 0x3eb8]
test rcx, rcx
je 0x140049310
mov qword [rdi + 0x3eb0], r12
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x140049303
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3eb8], r12
mov rcx, qword [rdi + 0x3ec8]
test rcx, rcx
je 0x140049342
mov qword [rdi + 0x3ec0], r12
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x140049335
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ec8], r12
mov qword [rdi + 0x48c0], r12
mov qword [rdi + 0x3ef0], r12
mov qword [rdi + 0x3ee8], r12
mov qword [rdi + 0x3f78], r12
mov qword [rdi + 0x3f60], r12
mov qword [rdi + 0x3ef8], r12
lea rcx, [rdi + 0x4618]
call fcn.140044690
mov rcx, qword [rdi + 0x4830]
test rcx, rcx
je 0x1400493aa
mov qword [rdi + 0x4828], r12
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x14004939d
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 0x1400493dc
mov qword [rdi + 0x4838], r12
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x1400493cf
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 + 0x4850]
test rcx, rcx
je 0x14004940e
mov qword [rdi + 0x4848], r12
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x140049401
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4850], r12
mov rcx, qword [rdi + 0x4890]
test rcx, rcx
je 0x140049440
mov qword [rdi + 0x4888], r12
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x140049433
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4890], r12
mov rcx, qword [rdi + 0x48a0]
test rcx, rcx
je 0x140049472
mov qword [rdi + 0x4898], r12
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x140049465
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x48a0], r12
mov ebp, r12d
cmp dword [rdi + 0x48b0], r12d
jle 0x140049544
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x48b8]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x140049532
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x1400494d0
mov rcx, rsi
call fcn.140044500
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x1400494c7
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 0x1400494fd
mov rcx, rsi
call fcn.140044500
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x1400494f3
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, [0x14005dc90]
mov edx, sendto
lea r8d, [rdx - 0xe]
call fcn.14008f990
nop
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x140049529
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 + 0x48b0]
jl 0x140049490
mov rcx, qword [rdi + 0x48b8]
test rcx, rcx
je 0x140049576
mov qword [rdi + 0x48b0], r12
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x140049569
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x48b8], r12
lea rcx, [rdi + 0x4b98]
call fcn.14005dcc0
mov rcx, qword [rdi + 0x4bc8]
test rcx, rcx
je 0x1400495b4
mov qword [rdi + 0x4bc0], r12
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x1400495a7
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4bc8], r12
mov rcx, qword [rdi + 0x4bd8]
test rcx, rcx
je 0x1400495e6
mov qword [rdi + 0x4bd0], r12
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x1400495d9
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4bd8], r12
mov ebx, r12d
cmp dword [rdi + 0x4b18], r12d
jle 0x140049638
mov rsi, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x4b20]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x14004962a
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x140049623
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 + 0x4b18]
jl 0x140049600
mov rcx, qword [rdi + 0x4b20]
test rcx, rcx
je 0x14004966a
mov qword [rdi + 0x4b18], r12
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x14004965d
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4b20], r12
lea rcx, [rdi + 0x4b48]
call fcn.14005de40
mov esi, r12d
cmp dword [rdi + 0x4b38], r12d
jle 0x1400496d5
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x4b40]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.14006cd20
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x1400496c7
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x1400496c0
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 + 0x4b38]
jl 0x140049690
mov rcx, qword [rdi + 0x4b40]
test rcx, rcx
je 0x140049707
mov qword [rdi + 0x4b38], r12
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x1400496fa
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4b40], r12
mov rcx, qword [rdi + 0x4b88]
test rcx, rcx
je 0x140049739
mov qword [rdi + 0x4b80], r12
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x14004972c
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4b88], r12
mov rcx, qword [rdi + 0x5b78]
test rcx, rcx
je 0x14004976b
mov qword [rdi + 0x5b70], r12
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x14004975e
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5b78], r12
mov rcx, qword [rdi + 0x5b88]
test rcx, rcx
je 0x14004979d
mov qword [rdi + 0x5b80], r12
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x140049790
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5b88], r12
mov rcx, qword [rdi + 0x4c18]
test rcx, rcx
je 0x1400497cf
mov qword [rdi + 0x4c10], r12
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x1400497c2
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c18], r12
mov rcx, qword [rdi + 0x4c28]
test rcx, rcx
je 0x140049801
mov qword [rdi + 0x4c20], r12
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x1400497f4
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c28], r12
mov rcx, qword [rdi + 0x4c38]
test rcx, rcx
je 0x140049833
mov qword [rdi + 0x4c30], r12
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x140049826
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c38], r12
mov rcx, qword [rdi + 0x5be0]
test rcx, rcx
je 0x140049865
mov qword [rdi + 0x5bd8], r12
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x140049858
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5be0], r12
mov rcx, qword [rdi + 0x5bd0]
test rcx, rcx
je 0x140049897
mov qword [rdi + 0x5bc8], r12
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x14004988a
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5bd0], r12
cmp qword [rdi + 0x5c50], 0
je 0x1400498c8
mov rbx, qword [rdi + 0x5c50]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x1400498c1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5c50], r12
mov rcx, qword [rdi + 0x5c60]
test rcx, rcx
je 0x1400498fa
mov qword [rdi + 0x5c58], r12
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x1400498ed
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c60], r12
mov rcx, qword [rdi + 0x5c98]
test rcx, rcx
je 0x14004992c
mov qword [rdi + 0x5c90], r12
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x14004991f
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c98], r12
mov rcx, qword [rdi + 0x5ca8]
test rcx, rcx
je 0x14004995e
mov qword [rdi + 0x5ca0], r12
mov rax, qword [0x1400bcad0]
test rax, rax
je 0x140049951
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ca8], r12
mov dword [rdi + 0x5cb0], 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