Function at 0x14002d740
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xb8]
sub rsp, 0x190
mov qword [rbp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140104508]
xor rax, rsp
mov qword [rbp + 0x88], rax
mov r15, rcx
xor r13d, r13d
mov dword [rsp + 0x30], r13d
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], r13
cmp dword [rcx + 0xb0], 0xffffffff
jne 0x14002d829
mov rax, qword [0x140104018]
mov qword [rsp + 0x58], rax
lea rdi, [0x1400d1c40]
mov rax, rdi
shr rax, 0x10
test ax, ax
jne 0x14002d7d1
movzx edx, di
lea rcx, [rsp + 0x58]
call fcn.140001ff0
jmp 0x14002d80d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
test eax, eax
je 0x14002d80d
mov edx, ebx
lea rcx, [rsp + 0x58]
call fcn.140001970
test eax, eax
je 0x14002d80d
mov r9, rbx
add r9, r9
lea eax, [rbx + 1]
movsxd rdx, eax
add rdx, rdx
mov r8, rdi
mov rcx, qword [rsp + 0x58]
call fcn.1400029b0
lea rcx, [r15 + 0x5d8]
mov r9b, 1
xor r8d, r8d
lea rdx, [rsp + 0x58]
call fcn.140002330
jmp 0x14002e698
mov rax, qword [rcx + 0x38]
cmp dword [rax - 8], 0
mov rax, qword [0x140104018]
jne 0x14002d8b9
mov qword [rsp + 0x60], rax
lea rdi, [0x1400d1ce0]
mov rax, rdi
shr rax, 0x10
test ax, ax
jne 0x14002d861
movzx edx, di
lea rcx, [rsp + 0x60]
call fcn.140001ff0
jmp 0x14002d89d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
test eax, eax
je 0x14002d89d
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.140001970
test eax, eax
je 0x14002d89d
mov r9, rbx
add r9, r9
lea eax, [rbx + 1]
movsxd rdx, eax
add rdx, rdx
mov r8, rdi
mov rcx, qword [rsp + 0x60]
call fcn.1400029b0
lea rcx, [r15 + 0x5d8]
mov r9b, 1
xor r8d, r8d
lea rdx, [rsp + 0x60]
call fcn.140002330
jmp 0x14002e698
cmp dword [rcx + 0x80], 0
je 0x14002d941
mov qword [rsp + 0x68], rax
lea rdi, [0x1400d1d90]
mov rax, rdi
shr rax, 0x10
test ax, ax
jne 0x14002d8e9
movzx edx, di
lea rcx, [rsp + 0x68]
call fcn.140001ff0
jmp 0x14002d925
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
test eax, eax
je 0x14002d925
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.140001970
test eax, eax
je 0x14002d925
mov r9, rbx
add r9, r9
lea eax, [rbx + 1]
movsxd rdx, eax
add rdx, rdx
mov r8, rdi
mov rcx, qword [rsp + 0x68]
call fcn.1400029b0
lea rcx, [r15 + 0x5d8]
mov r9b, 1
xor r8d, r8d
lea rdx, [rsp + 0x68]
call fcn.140002330
jmp 0x14002e698
mov qword [rsp + 0x70], rax
lea rdi, [0x1400d1e40]
mov rax, rdi
shr rax, 0x10
test ax, ax
jne 0x14002d968
movzx edx, di
lea rcx, [rsp + 0x70]
call fcn.140001ff0
jmp 0x14002d9a4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
test eax, eax
je 0x14002d9a4
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.140001970
test eax, eax
je 0x14002d9a4
mov r9, rbx
add r9, r9
lea eax, [rbx + 1]
movsxd rdx, eax
add rdx, rdx
mov r8, rdi
mov rcx, qword [rsp + 0x70]
call fcn.1400029b0
lea rdi, [r15 + 0x5d8]
mov qword [rbp + 0x18], rdi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140002330
mov rax, qword [0x140104018]
mov qword [rsp + 0x78], rax
lea rsi, [0x1400d1e90]
mov rax, rsi
shr rax, 0x10
test ax, ax
jne 0x14002d9f0
movzx edx, si
lea rcx, [rsp + 0x78]
call fcn.140001ff0
jmp 0x14002da2c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
test eax, eax
je 0x14002da2c
mov edx, ebx
lea rcx, [rsp + 0x78]
call fcn.140001970
test eax, eax
je 0x14002da2c
mov r9, rbx
add r9, r9
lea eax, [rbx + 1]
movsxd rdx, eax
add rdx, rdx
mov r8, rsi
mov rcx, qword [rsp + 0x78]
call fcn.1400029b0
mov r9b, 1
mov r8d, 1
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.140002330
lea r12, [r15 + 0x728]
mov rcx, r12
call fcn.14003c6c0
test eax, eax
jne 0x14002da78
lea rdx, [rbp + 0x28]
mov rcx, r12
call fcn.14002b0e0
xor r9d, r9d
lea r8d, [r9 + 0x64]
mov rdx, rax
mov rcx, rdi
call fcn.140002330
jmp 0x14002e698
cmp dword [r15 + 0x5d0], 0
je 0x14002dbc0
cmp dword [r15 + 0x808], 0
jne 0x14002dbc0
mov rax, qword [0x140104018]
mov qword [rbp - 0x80], rax
lea rsi, [0x1400d1eb8]
mov rax, rsi
shr rax, 0x10
test ax, ax
jne 0x14002dac0
movzx edx, si
lea rcx, [rbp - 0x80]
call fcn.140001ff0
jmp 0x14002dafa
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
test eax, eax
je 0x14002dafa
mov edx, ebx
lea rcx, [rbp - 0x80]
call fcn.140001970
test eax, eax
je 0x14002dafa
mov r9, rbx
add r9, r9
lea eax, [rbx + 1]
movsxd rdx, eax
add rdx, rdx
mov r8, rsi
mov rcx, qword [rbp - 0x80]
call fcn.1400029b0
mov r9b, 1
xor r8d, r8d
lea rdx, [rbp - 0x80]
mov rcx, rdi
call fcn.140002330
mov dword [rsp + 0x50], 1
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400025d0
cmp dword [rsp + 0x50], 0
je 0x14002dbb5
mov dword [r15 + 0x808], 2
mov rax, qword [0x140104018]
mov qword [rbp - 0x78], rax
lea rsi, [0x1400d1ef8]
mov rax, rsi
shr rax, 0x10
test ax, ax
jne 0x14002db63
movzx edx, si
lea rcx, [rbp - 0x78]
call fcn.140001ff0
jmp 0x14002db9d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
test eax, eax
je 0x14002db9d
mov edx, ebx
lea rcx, [rbp - 0x78]
call fcn.140001970
test eax, eax
je 0x14002db9d
mov r9, rbx
add r9, r9
lea eax, [rbx + 1]
movsxd rdx, eax
add rdx, rdx
mov r8, rsi
mov rcx, qword [rbp - 0x78]
call fcn.1400029b0
xor r9d, r9d
lea r8d, [r9 + 0x64]
lea rdx, [rbp - 0x78]
mov rcx, rdi
call fcn.140002330
jmp 0x14002e698
mov dword [r15 + 0x808], 1
mov rax, qword [0x140104018]
cmp dword [r15 + 0x808], 1
je 0x14002dc48
mov qword [rbp - 0x70], rax
lea rsi, [0x1400d1f20]
mov rax, rsi
shr rax, 0x10
test ax, ax
jne 0x14002dbf6
movzx edx, si
lea rcx, [rbp - 0x70]
call fcn.140001ff0
jmp 0x14002dc30
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
test eax, eax
je 0x14002dc30
mov edx, ebx
lea rcx, [rbp - 0x70]
call fcn.140001970
test eax, eax
je 0x14002dc30
mov r9, rbx
add r9, r9
lea eax, [rbx + 1]
movsxd rdx, eax
add rdx, rdx
mov r8, rsi
mov rcx, qword [rbp - 0x70]
call fcn.1400029b0
xor r9d, r9d
lea r8d, [r9 + 0x64]
lea rdx, [rbp - 0x70]
mov rcx, rdi
call fcn.140002330
jmp 0x14002e698
mov qword [rbp + 0x20], rax
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x10]
call fcn.14003c410
mov r8, qword [rbp - 0x10]
lea rdx, [0x1400d1f70]
lea rcx, [rbp + 0x20]
call fcn.1400086c0
mov rdx, qword [rbp + 0x20]
lea rax, [rdx - 0xc]
mov qword [rsp + 0x28], rax
cmp dword [rax], 0
jl 0x14002dc88
mov qword [rbp - 8], rdx
lock inc dword [rax]
jmp 0x14002dc9c
mov rax, qword [0x140104018]
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140006470
mov r9b, 1
mov r8d, 0xa
lea rdx, [rbp - 8]
mov rcx, rdi
call fcn.140002330
lea rcx, [r15 + 8]
mov edx, dword [r15 + 0x5c4]
call fcn.140009b60
mov rcx, rax
lea rdx, [rbp + 0x30]
call fcn.1400091d0
mov rdx, rax
mov rcx, r12
call fcn.14003cf40
mov rsi, qword [r15 + 0x38]
mov r14, 0xffffffffffffffff
cmp dword [rsi - 0xc], 0
jl 0x14002dcf7
mov qword [rsp + 0x40], rsi
lock inc dword [rsi - 0xc]
jmp 0x14002dd94
mov rax, qword [0x140104018]
mov qword [rsp + 0x40], rax
test rsi, rsi
je 0x14002dd14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r13d, eax
mov rbx, qword [rsp + 0x40]
lea rcx, [rbx - 0xc]
cmp dword [rcx], 1
jg 0x14002dd28
cmp r13d, dword [rbx - 4]
jle 0x14002dd5f
cmp rcx, qword [0x140104010]
je 0x14002dd4e
mov eax, r14d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14002dd42
call fcn.1400bf5e4
mov rax, qword [0x140104018]
mov qword [rsp + 0x40], rax
mov edx, r13d
lea rcx, [rsp + 0x40]
call fcn.140001970
test eax, eax
je 0x14002dd91
movsxd rax, r13d
lea rdi, [rax + rax]
lea eax, [r13 + 1]
movsxd rdx, eax
add rdx, rdx
mov r9, rdi
mov r8, rsi
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1400029b0
mov dword [rbx - 8], r13d
xor r13d, r13d
mov word [rdi + rbx], r13w
jmp 0x14002dd94
xor r13d, r13d
movabs rax, 0x20002c003b
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x10], r13
lea r8, [rbp + 0x10]
lea rdx, [rbp + 0x80]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov rbx, rax
test rax, rax
je 0x14002de9c
nop dword [rax + rax]
mov rax, qword [0x140104018]
mov qword [rsp + 0x48], rax
test rbx, rbx
je 0x14002de39
mov rax, rbx
shr rax, 0x10
test ax, ax
jne 0x14002ddfc
movzx edx, bx
lea rcx, [rsp + 0x48]
call fcn.140001ff0
jmp 0x14002de39
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rdi, eax
test eax, eax
je 0x14002de39
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.140001970
test eax, eax
je 0x14002de39
mov r9, rdi
add r9, r9
lea eax, [rdi + 1]
movsxd rdx, eax
add rdx, rdx
mov r8, rbx
mov rcx, qword [rsp + 0x48]
call fcn.1400029b0
nop
lea r8, [rsp + 0x48]
lea rdx, [0x1400d1fc0]
lea rcx, [rbp + 0x38]
call fcn.140021ab0
mov rdx, rax
mov rcx, r12
call fcn.14003c2c0
nop
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140104010]
je 0x14002de7d
mov eax, r14d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14002de7d
call fcn.1400bf5e4
lea r8, [rbp + 0x10]
lea rdx, [rbp + 0x80]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov rbx, rax
test rax, rax
jne 0x14002ddd0
mov rdx, qword [r15 + 0x40]
cmp dword [rdx - 0xc], 0
jl 0x14002deb0
mov qword [rbp - 0x58], rdx
lock inc dword [rdx - 0xc]
jmp 0x14002dec4
mov rax, qword [0x140104018]
mov qword [rbp - 0x58], rax
lea rcx, [rbp - 0x58]
call fcn.140006470
lea rdx, [rbp - 0x58]
mov rcx, r12
call fcn.14003d080
mov rdi, qword [r15 + 0x7f0]
cmp dword [rdi - 0xc], 0
jl 0x14002deeb
mov qword [rsp + 0x20], rdi
lock inc dword [rdi - 0xc]
jmp 0x14002df83
mov rsi, qword [0x140104018]
mov qword [rsp + 0x20], rsi
test rdi, rdi
je 0x14002df08
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r13d, eax
lea rcx, [rsi - 0xc]
cmp dword [rcx], 1
jg 0x14002df17
cmp r13d, dword [rsi - 4]
jle 0x14002df53
cmp rcx, qword [0x140104010]
je 0x14002df3d
mov eax, r14d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14002df31
call fcn.1400bf5e4
mov rax, qword [0x140104018]
mov qword [rsp + 0x20], rax
mov edx, r13d
lea rcx, [rsp + 0x20]
call fcn.140001970
test eax, eax
je 0x14002df80
mov rsi, qword [rsp + 0x20]
movsxd rax, r13d
lea rbx, [rax + rax]
lea eax, [r13 + 1]
movsxd rdx, eax
add rdx, rdx
mov r9, rbx
mov r8, rdi
mov rcx, rsi
call fcn.1400029b0
mov dword [rsi - 8], r13d
xor r13d, r13d
mov word [rbx + rsi], r13w
jmp 0x14002df88
xor r13d, r13d
mov rsi, qword [rsp + 0x20]
lea rbx, [rsi - 0xc]
cmp dword [rbx], 1
jle 0x14002dff2
cmp rbx, qword [0x140104010]
je 0x14002dfba
mov eax, r14d
lock xadd dword [rbx], eax
sub eax, 1
jg 0x14002dfae
mov rcx, rbx
call fcn.1400bf5e4
mov rax, qword [0x140104018]
mov qword [rsp + 0x20], rax
mov edx, dword [rbx + 4]
lea rcx, [rsp + 0x20]
call fcn.140001970
mov rsi, qword [rsp + 0x20]
test eax, eax
je 0x14002dff2
mov eax, dword [rbx + 4]
inc eax
movsxd r9, eax
add r9, r9
lea r8, [rbx + 0xc]
mov eax, dword [rsi - 4]
inc eax
movsxd rdx, eax
add rdx, rdx
mov rcx, rsi
call fcn.1400029b0
mov rcx, rsi
movsxd rax, dword [rsi - 8]
lea rbx, [rsi + rax*2]
mov edi, VarDateFromDisp
cmp rsi, rbx
jae 0x14002e01e
cmp word [rcx], 0x2f
jne 0x14002e010
mov word [rcx], di
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
cmp rax, rbx
jb 0x14002e007
mov edx, edi
mov rcx, rsi
call sub.VCRUNTIME140.dll_wcsrchr
test rax, rax
je 0x14002e100
sub rax, rsi
sar rax, 1
test eax, eax
js 0x14002e100
mov ecx, dword [rsi - 8]
mov r9d, r13d
add eax, 1
cmovns r9d, eax
mov dword [rsp + 0x38], r9d
mov r8d, r13d
sub ecx, eax
cmovns r8d, ecx
mov edx, dword [rsi - 8]
lea eax, [r8 + r9]
mov ecx, edx
sub ecx, r9d
cmp eax, edx
cmovle ecx, r8d
mov edi, r13d
cmp r9d, edx
cmovle edi, ecx
mov rbx, qword [0x140104018]
mov qword [rbp - 0x68], rbx
mov dword [rsp + 0x30], 4
test edi, edi
jne 0x14002e092
mov qword [rbp - 0x68], rbx
jmp 0x14002e0c6
mov edx, edi
lea rcx, [rbp - 0x68]
call fcn.140001970
mov rbx, qword [rbp - 0x68]
test eax, eax
je 0x14002e0c6
movsxd r9, edi
add r9, r9
movsxd rax, dword [rsp + 0x38]
lea r8, [rsi + rax*2]
lea eax, [rdi + 1]
movsxd rdx, eax
add rdx, rdx
mov rcx, rbx
call fcn.1400029b0
nop
mov dword [rsp + 0x30], 2
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x20]
call fcn.1400063d0
nop
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140104010]
je 0x14002e0fb
mov eax, r14d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14002e0fb
call fcn.1400bf5e4
mov rsi, qword [rsp + 0x20]
mov rdx, qword [r15 + 0x48]
cmp dword [rdx - 8], 0
jne 0x14002e11b
lea rdx, [rbp + 0x40]
mov rcx, r15
call fcn.14002a0d0
mov rdx, rax
jmp 0x14002e148
cmp dword [rdx - 0xc], 0
jl 0x14002e130
mov qword [rbp - 0x50], rdx
lock inc dword [rdx - 0xc]
mov rsi, qword [rsp + 0x20]
jmp 0x14002e144
mov rax, qword [0x140104018]
mov qword [rbp - 0x50], rax
lea rcx, [rbp - 0x50]
call fcn.140006470
lea rdx, [rbp - 0x50]
mov rcx, r12
call fcn.14003cfe0
lea rax, [rbp - 0x48]
mov qword [rsp + 0x38], rax
lea rdi, [rsi - 0xc]
cmp dword [rdi], 0
jl 0x14002e170
mov qword [rbp - 0x48], rsi
lock inc dword [rdi]
mov rsi, qword [rsp + 0x20]
jmp 0x14002e188
mov rax, qword [0x140104018]
mov qword [rbp - 0x48], rax
mov rdx, rsi
lea rcx, [rbp - 0x48]
call fcn.140006470
nop
lea rdx, [r15 + 0x7f0]
lea rcx, [rbp + 0x48]
call fcn.140005880
nop
lea r8, [rbp - 0x48]
mov rdx, rax
mov rcx, r12
call fcn.14003c0a0
mov rax, qword [0x140104018]
mov qword [rbp + 8], rax
lea rdx, [r15 + 0x7f0]
lea rcx, [rbp + 0x50]
call fcn.140005880
lea r8, [rbp + 8]
mov rdx, rax
mov rcx, r15
call fcn.140021e70
lea rcx, [0x1400d1020]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r15, eax
test eax, eax
je 0x14002e30b
cmp dword [rdi], 1
jg 0x14002e258
movsxd rcx, dword [rsi - 8]
mov edx, dword [rsi - 4]
lea eax, [r15 + rcx]
cmp eax, edx
jg 0x14002e258
mov r8, r15
lea eax, [rdx + 1]
movsxd rdx, eax
add rdx, rdx
lea r9, [rsi + rcx*2]
add r8, r8
je 0x14002e244
test r9, r9
jne 0x14002e229
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], socket
jmp 0x14002e711
mov rcx, r9
cmp rdx, r8
jb 0x14002e6fb
lea rdx, [0x1400d1020]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [rsi - 8]
lea eax, [r15 + rcx]
mov dword [rsi - 8], eax
movsxd rcx, eax
mov word [rsi + rcx*2], r13w
jmp 0x14002e30b
movsxd rbx, dword [rdi + 4]
lea r13d, [r15 + rbx]
cmp r13d, ebx
jl 0x14002e30b
cmp r13d, r15d
jl 0x14002e30b
test r13d, r13d
je 0x14002e2e9
mov edx, r13d
lea rcx, [rsp + 0x20]
call fcn.140001970
test eax, eax
je 0x14002e306
add rbx, rbx
lea eax, [r13 + 1]
movsxd rdx, eax
add rdx, rdx
mov r9, rbx
mov r8, rsi
mov rsi, qword [rsp + 0x20]
mov rcx, rsi
call fcn.1400029b0
mov r8, r15
lea eax, [r15 + 1]
movsxd rdx, eax
add rdx, rdx
lea rcx, [rbx + rsi]
add r8, r8
je 0x14002e2e9
test rcx, rcx
jne 0x14002e2d4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], socket
jmp 0x14002e738
cmp rdx, r8
jb 0x14002e722
lea rdx, [0x1400d1020]
call sub.VCRUNTIME140.dll_memcpy
cmp rdi, qword [0x140104010]
je 0x14002e30b
mov eax, r14d
lock xadd dword [rdi], eax
sub eax, 1
jg 0x14002e306
mov rcx, rdi
call fcn.1400bf5e4
mov rsi, qword [rsp + 0x20]
mov rax, qword [0x140104018]
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x18]
call fcn.1400523a0
nop
mov rbx, qword [0x140104018]
mov qword [rbp - 0x40], rbx
or dword [rsp + 0x30], 8
lea rcx, [0x1400cd944]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r13, eax
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x38], rax
movsxd rdi, dword [rax - 8]
lea r15d, [rdi + r13]
cmp r15d, edi
jl 0x14002e3d2
cmp r15d, r13d
jl 0x14002e3d2
test r15d, r15d
je 0x14002e3d2
mov edx, r15d
lea rcx, [rbp - 0x40]
call fcn.140001970
mov rbx, qword [rbp - 0x40]
test eax, eax
je 0x14002e3d2
add rdi, rdi
lea eax, [r15 + 1]
movsxd rdx, eax
add rdx, rdx
mov r9, rdi
mov r8, qword [rsp + 0x38]
mov rcx, rbx
call fcn.1400029b0
mov r8, r13
lea eax, [r13 + 1]
movsxd rdx, eax
add rdx, rdx
lea rcx, [rdi + rbx]
add r8, r8
je 0x14002e3d2
test rcx, rcx
jne 0x14002e3bd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], socket
jmp 0x14002e6ea
cmp rdx, r8
jb 0x14002e6d4
lea rdx, [0x1400cd944]
call sub.VCRUNTIME140.dll_memcpy
lea r8, [rsp + 0x20]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x20]
call fcn.140006a30
nop
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140104010]
je 0x14002e408
mov eax, r14d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14002e403
call fcn.1400bf5e4
mov rsi, qword [rsp + 0x20]
mov qword [rbp - 0x38], 0
lea r8, [0x1400ccf90]
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
cmp qword [rbp - 0x38], 0
je 0x14002e4e9
xor edx, edx
lea rcx, [rbp + 8]
call fcn.140001c10
mov rdx, rax
lea rcx, [rbp + 0x60]
call fcn.140031120
mov rdx, r14
nop word [rax + rax]
inc rdx
cmp byte [rax + rdx], 0
jne 0x14002e450
mov r9, qword [rbp - 0x38]
mov r8d, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rax, [rbp - 0x30]
mov qword [rbp], rax
cmp dword [rsi - 0xc], 0
jl 0x14002e493
mov qword [rbp - 0x30], rsi
lock inc dword [rsi - 0xc]
mov rsi, qword [rsp + 0x20]
jmp 0x14002e4ab
mov rax, qword [0x140104018]
mov qword [rbp - 0x30], rax
mov rdx, rsi
lea rcx, [rbp - 0x30]
call fcn.140006470
nop
mov rdx, qword [rbp - 0x20]
cmp dword [rdx - 0xc], 0
jl 0x14002e4c4
mov qword [rbp - 0x28], rdx
lock inc dword [rdx - 0xc]
mov rsi, qword [rsp + 0x20]
jmp 0x14002e4d9
mov rax, qword [0x140104018]
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x28]
call fcn.140006470
nop
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x28]
mov rcx, r12
call fcn.14003c0a0
mov rcx, r12
call fcn.14003cb70
mov edi, eax
test eax, eax
jne 0x14002e508
lea rdx, [rbp + 0x58]
mov rcx, r12
call fcn.14002b0e0
mov rdx, rax
jmp 0x14002e573
mov rax, qword [0x140104018]
mov qword [rbp - 0x60], rax
lea r15, [0x1400d1fd0]
mov rax, r15
shr rax, 0x10
test ax, ax
jne 0x14002e535
movzx edx, r15w
lea rcx, [rbp - 0x60]
call fcn.140001ff0
jmp 0x14002e56f
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
test eax, eax
je 0x14002e56f
mov edx, ebx
lea rcx, [rbp - 0x60]
call fcn.140001970
test eax, eax
je 0x14002e56f
mov r9, rbx
add r9, r9
lea eax, [rbx + 1]
movsxd rdx, eax
add rdx, rdx
mov r8, r15
mov rcx, qword [rbp - 0x60]
call fcn.1400029b0
lea rdx, [rbp - 0x60]
xor r9d, r9d
lea r8d, [r9 + 0x64]
mov rcx, qword [rbp + 0x18]
call fcn.140002330
mov r13d, edi
mov rcx, qword [rbp - 0x20]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140104010]
je 0x14002e5b5
mov eax, r14d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14002e5b0
mov rcx, qword [rbp - 0x20]
add rcx, 0xfffffffffffffff4
call fcn.1400bf5e4
mov rsi, qword [rsp + 0x20]
mov rcx, qword [rbp - 0x18]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140104010]
je 0x14002e5e4
mov eax, r14d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14002e5df
mov rcx, qword [rbp - 0x18]
add rcx, 0xfffffffffffffff4
call fcn.1400bf5e4
mov rsi, qword [rsp + 0x20]
mov rcx, qword [rbp + 8]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140104010]
je 0x14002e60b
mov eax, r14d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14002e606
call fcn.1400bf5e4
mov rsi, qword [rsp + 0x20]
lea rcx, [rsi - 0xc]
cmp rcx, qword [0x140104010]
je 0x14002e62a
mov eax, r14d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14002e62a
call fcn.1400bf5e4
nop
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140104010]
je 0x14002e64e
mov eax, r14d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14002e64e
call fcn.1400bf5e4
nop
mov rcx, qword [rbp - 0x10]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140104010]
je 0x14002e679
mov eax, r14d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14002e679
mov rcx, qword [rbp - 0x10]
add rcx, 0xfffffffffffffff4
call fcn.1400bf5e4
nop
mov rcx, qword [rsp + 0x28]
cmp rcx, qword [0x140104010]
je 0x14002e698
lock xadd dword [rcx], r14d
sub r14d, 1
jg 0x14002e698
call fcn.1400bf5e4
nop
lea rcx, [rbp + 0x60]
call fcn.1400018c0
mov eax, r13d
mov rcx, qword [rbp + 0x88]
xor rcx, rsp
call fcn.1400bf680
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov r8, rdx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov ecx, 0x80070057
call fcn.140001ac0
nop
mov r8, rdx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov ecx, 0x80070057
call fcn.140001ac0
int3
mov r8, rdx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov ecx, 0x80070057
call fcn.140001ac0
int3