Function at 0x1400113c0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
mov rdi, qword [0x1400bcd20]
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x140011481
cmp byte [rdi + 1], 0
je 0x140011481
mov byte [rax + 0x18], 0
mov rbx, qword [rdi + 0x38]
test rbx, rbx
je 0x140011481
mov rcx, rbx
call fcn.140032ec0
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x140011424
mov rax, qword [0x1400bcd20]
test rax, rax
je 0x14001141e
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x140011445
mov rax, qword [0x1400bcd20]
test rax, rax
je 0x14001143f
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x140011466
mov rax, qword [0x1400bcd20]
test rax, rax
je 0x140011460
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1400bcd20]
test rax, rax
je 0x140011478
dec dword [rax + 0xf0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r15d, r15d
mov qword [rdi + 0x38], r15
mov rcx, qword [rdi + 0x3c50]
test rcx, rcx
je 0x1400114ba
mov rax, qword [0x1400bcd20]
mov qword [rdi + 0x3c48], r15
test rax, rax
je 0x1400114ad
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3c50], r15
cmp byte [rdi], r15b
je 0x140011d88
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
cmp byte [rdi + 0x5c08], r15b
je 0x140011535
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140011535
mov rax, qword [0x1400bcd20]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], r15
mov dword [rax + 0x5c0c], r15d
call fcn.140025550
lea rdx, [0x140097d74]
mov rcx, rbx
mov rsi, rax
call fcn.14000ebd0
mov rbx, rax
test rax, rax
je 0x140011535
mov r8, qword [rsp + 0x40]
mov r9, rax
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 rbx, qword [rdi + 0x5c58]
movsxd rsi, dword [rdi + 0x5c50]
shl rsi, 5
add rsi, rbx
cmp rbx, rsi
je 0x140011568
nop
cmp dword [rbx + 4], 6
jne 0x14001155f
mov rdx, rbx
mov rcx, rdi
call qword [rbx + reloc.WSOCK32.dll_recv]
add rbx, 0x20
cmp rbx, rsi
jne 0x140011550
mov esi, r15d
mov qword [rsp + 0x58], r14
cmp dword [rdi + 0x3e78], r15d
jle 0x1400115c1
mov r14, r15
nop dword [rax]
mov rax, qword [rdi + 0x3e80]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x1400115b3
mov rcx, rbx
call fcn.140012230
mov rax, qword [0x1400bcd20]
test rax, rax
je 0x1400115aa
dec dword [rax + 0xf0]
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 + 0x3e78]
jl 0x140011580
mov rcx, qword [rdi + 0x3e80]
test rcx, rcx
je 0x1400115f3
mov rax, qword [0x1400bcd20]
mov qword [rdi + 0x3e78], r15
test rax, rax
je 0x1400115e6
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e80], r15
mov rcx, qword [rdi + 0x3e90]
test rcx, rcx
je 0x140011625
mov rax, qword [0x1400bcd20]
mov qword [rdi + 0x3e88], r15
test rax, rax
je 0x140011618
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3e90], r15
mov rcx, qword [rdi + 0x3ea0]
test rcx, rcx
je 0x140011657
mov rax, qword [0x1400bcd20]
mov qword [rdi + 0x3e98], r15
test rax, rax
je 0x14001164a
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ea0], r15
mov qword [rdi + 0x3ed8], r15
mov rcx, qword [rdi + 0x3eb0]
test rcx, rcx
je 0x140011690
mov rax, qword [0x1400bcd20]
mov qword [rdi + 0x3ea8], r15
test rax, rax
je 0x140011683
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3eb0], r15
mov rcx, qword [rdi + 0x3ec0]
test rcx, rcx
je 0x1400116c2
mov rax, qword [0x1400bcd20]
mov qword [rdi + 0x3eb8], r15
test rax, rax
je 0x1400116b5
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x3ec0], r15
lea rcx, [rdi + 0x4610]
mov qword [rdi + 0x48d0], r15
mov qword [rdi + 0x3ee8], r15
mov qword [rdi + 0x3ee0], r15
mov qword [rdi + 0x3f70], r15
mov qword [rdi + 0x3f58], r15
mov qword [rdi + 0x3ef0], r15
call fcn.14000cfb0
mov rcx, qword [rdi + 0x4830]
test rcx, rcx
je 0x14001172a
mov rax, qword [0x1400bcd20]
mov qword [rdi + 0x4828], r15
test rax, rax
je 0x14001171d
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4830], r15
mov rcx, qword [rdi + 0x4840]
test rcx, rcx
je 0x14001175c
mov rax, qword [0x1400bcd20]
mov qword [rdi + 0x4838], r15
test rax, rax
je 0x14001174f
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4840], r15
mov rcx, qword [rdi + 0x4850]
test rcx, rcx
je 0x14001178e
mov rax, qword [0x1400bcd20]
mov qword [rdi + 0x4848], r15
test rax, rax
je 0x140011781
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4850], r15
mov rcx, qword [rdi + 0x4890]
test rcx, rcx
je 0x1400117c0
mov rax, qword [0x1400bcd20]
mov qword [rdi + 0x4888], r15
test rax, rax
je 0x1400117b3
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4890], r15
mov rcx, qword [rdi + 0x48a0]
test rcx, rcx
je 0x1400117f2
mov rax, qword [0x1400bcd20]
mov qword [rdi + 0x4898], r15
test rax, rax
je 0x1400117e5
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x48a0], r15
mov rcx, qword [rdi + 0x48b0]
test rcx, rcx
je 0x140011824
mov rax, qword [0x1400bcd20]
mov qword [rdi + 0x48a8], r15
test rax, rax
je 0x140011817
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x48b0], r15
mov ebp, r15d
cmp dword [rdi + 0x48c0], r15d
jle 0x14001191e
mov r14, r15
nop word [rax + rax]
mov rax, qword [rdi + 0x48c8]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x14001190c
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x140011880
mov rcx, rsi
call fcn.14000ce20
mov rax, qword [0x1400bcd20]
test rax, rax
je 0x140011877
dec dword [rax + 0xf0]
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 0x1400118ac
mov rcx, rsi
call fcn.14000ce20
mov rax, qword [0x1400bcd20]
test rax, rax
je 0x1400118a3
dec dword [rax + 0xf0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x1400118d0
mov rax, qword [0x1400bcd20]
test rax, rax
je 0x1400118ca
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x1400118f1
mov rax, qword [0x1400bcd20]
test rax, rax
je 0x1400118eb
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1400bcd20]
test rax, rax
je 0x140011903
dec dword [rax + 0xf0]
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 + 0x48c0]
jl 0x140011840
mov rcx, qword [rdi + 0x48c8]
mov r14, qword [rsp + 0x58]
test rcx, rcx
je 0x140011955
mov rax, qword [0x1400bcd20]
mov qword [rdi + 0x48c0], r15
test rax, rax
je 0x140011948
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x48c8], r15
lea rcx, [rdi + 0x4bb8]
call fcn.140026650
mov rcx, qword [rdi + 0x4be8]
test rcx, rcx
je 0x140011993
mov rax, qword [0x1400bcd20]
mov qword [rdi + 0x4be0], r15
test rax, rax
je 0x140011986
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4be8], r15
mov rcx, qword [rdi + 0x4bf8]
test rcx, rcx
je 0x1400119c5
mov rax, qword [0x1400bcd20]
mov qword [rdi + 0x4bf0], r15
test rax, rax
je 0x1400119b8
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4bf8], r15
mov ebx, r15d
cmp dword [rdi + 0x4b38], r15d
jle 0x140011a17
mov rsi, r15
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rdi + 0x4b40]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x140011a09
mov rax, qword [0x1400bcd20]
test rax, rax
je 0x140011a03
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4b38]
jl 0x1400119e0
mov rcx, qword [rdi + 0x4b40]
test rcx, rcx
je 0x140011a49
mov rax, qword [0x1400bcd20]
mov qword [rdi + 0x4b38], r15
test rax, rax
je 0x140011a3c
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4b40], r15
lea rcx, [rdi + 0x4b68]
call fcn.140026760
mov esi, r15d
cmp dword [rdi + 0x4b58], r15d
jle 0x140011ab3
mov rbp, r15
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [rdi + 0x4b60]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.140032330
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x140011aa5
mov rax, qword [0x1400bcd20]
test rax, rax
je 0x140011a9f
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4b58]
jl 0x140011a70
mov rcx, qword [rdi + 0x4b60]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
test rcx, rcx
je 0x140011aef
mov rax, qword [0x1400bcd20]
mov qword [rdi + 0x4b58], r15
test rax, rax
je 0x140011ae2
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4b60], r15
mov rcx, qword [rdi + 0x4ba8]
test rcx, rcx
je 0x140011b21
mov rax, qword [0x1400bcd20]
mov qword [rdi + 0x4ba0], r15
test rax, rax
je 0x140011b14
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4ba8], r15
mov rcx, qword [rdi + 0x5bd0]
test rcx, rcx
je 0x140011b53
mov rax, qword [0x1400bcd20]
mov qword [rdi + 0x5bc8], r15
test rax, rax
je 0x140011b46
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5bd0], r15
mov rcx, qword [rdi + 0x5be0]
test rcx, rcx
je 0x140011b85
mov rax, qword [0x1400bcd20]
mov qword [rdi + 0x5bd8], r15
test rax, rax
je 0x140011b78
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5be0], r15
mov rcx, qword [rdi + 0x4c48]
test rcx, rcx
je 0x140011bb7
mov rax, qword [0x1400bcd20]
mov qword [rdi + 0x4c40], r15
test rax, rax
je 0x140011baa
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c48], r15
mov rcx, qword [rdi + 0x4c58]
test rcx, rcx
je 0x140011be9
mov rax, qword [0x1400bcd20]
mov qword [rdi + 0x4c50], r15
test rax, rax
je 0x140011bdc
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c58], r15
mov rcx, qword [rdi + 0x4c68]
test rcx, rcx
je 0x140011c1b
mov rax, qword [0x1400bcd20]
mov qword [rdi + 0x4c60], r15
test rax, rax
je 0x140011c0e
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x4c68], r15
mov dword [rdi + 0x5ab8], r15d
mov rcx, qword [rdi + 0x5ac8]
test rcx, rcx
je 0x140011c54
mov rax, qword [0x1400bcd20]
mov qword [rdi + 0x5ac0], r15
test rax, rax
je 0x140011c47
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5ac8], r15
mov rcx, qword [rdi + 0x5c38]
test rcx, rcx
je 0x140011c86
mov rax, qword [0x1400bcd20]
mov qword [rdi + 0x5c30], r15
test rax, rax
je 0x140011c79
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c38], r15
mov rcx, qword [rdi + 0x5c28]
test rcx, rcx
je 0x140011cb8
mov rax, qword [0x1400bcd20]
mov qword [rdi + 0x5c20], r15
test rax, rax
je 0x140011cab
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5c28], r15
cmp qword [rdi + 0x5cb0], r15
je 0x140011ce8
mov rbx, qword [rdi + 0x5cb0]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rax
je 0x140011ce1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rdi + 0x5cb0], r15
mov rcx, qword [rdi + 0x5cc0]
test rcx, rcx
je 0x140011d1a
mov rax, qword [0x1400bcd20]
mov qword [rdi + 0x5cb8], r15
test rax, rax
je 0x140011d0d
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5cc0], r15
mov rcx, qword [rdi + 0x5cf8]
test rcx, rcx
je 0x140011d4c
mov rax, qword [0x1400bcd20]
mov qword [rdi + 0x5cf0], r15
test rax, rax
je 0x140011d3f
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5cf8], r15
mov rcx, qword [rdi + 0x5d08]
test rcx, rcx
je 0x140011d7e
mov rax, qword [0x1400bcd20]
mov qword [rdi + 0x5d00], r15
test rax, rax
je 0x140011d71
dec dword [rax + 0xf0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x5d08], r15
mov dword [rdi + 0x5d10], r15d
mov byte [rdi], r15b
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret