Function at 0x140023e20
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x568]
sub rsp, 0x630
mov qword [rbp + 0x98], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
movaps xmmword [rax - 0x48], xmm6
mov rax, qword [0x140104508]
xor rax, rsp
mov qword [rbp + 0x510], rax
mov r12, rdx
mov qword [rbp + 8], rdx
mov rdi, rcx
mov qword [rbp + 0x30], rcx
xor r14d, r14d
mov qword [rbp + 0x78], r14
mov dword [rbp - 0x80], r14d
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x80], xmm0
mov qword [rbp + 0x90], r14
mov rax, qword [0x140104018]
mov qword [rsp + 0x50], rax
mov qword [rbp + 0x68], r14
mov dword [rsp + 0x78], r14d
mov r15, 0xffffffffffffffff
mov qword [rbp + 0x38], r15
mov qword [rbp - 0x60], r14
mov qword [rbp + 0x70], rax
cmp dword [rcx + 0x7fc], r14d
je 0x140023f28
mov qword [rbp - 0x78], rax
lea rsi, [0x1400d0d70]
mov rax, rsi
shr rax, 0x10
test ax, ax
jne 0x140023ee8
movzx edx, si
lea rcx, [rbp - 0x78]
call fcn.140001ff0
lea rdx, [rbp - 0x78]
jmp 0x140023f8b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
test eax, eax
je 0x140023f22
mov edx, ebx
lea rcx, [rbp - 0x78]
call fcn.140001970
test eax, eax
je 0x140023f22
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
lea rdx, [rbp - 0x78]
jmp 0x140023f8b
mov qword [rbp - 0x70], rax
lea rsi, [0x1400d0d98]
mov rax, rsi
shr rax, 0x10
test ax, ax
jne 0x140023f4d
movzx edx, si
lea rcx, [rbp - 0x70]
call fcn.140001ff0
jmp 0x140023f87
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
test eax, eax
je 0x140023f87
mov edx, ebx
lea rcx, [rbp - 0x70]
call fcn.140001970
test eax, eax
je 0x140023f87
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
lea rdx, [rbp - 0x70]
lea rsi, [rdi + 0x5d8]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call fcn.140002330
mov rcx, r12
call fcn.140009c60
mov qword [rbp - 0x28], rax
mov r8, rax
lea rdx, [0x1400d0dc0]
lea rcx, [rsp + 0x50]
call fcn.1400086c0
mov rdx, qword [rsp + 0x50]
cmp dword [rdx - 0xc], 0
jl 0x140023fd5
mov qword [rbp], rdx
lock inc dword [rdx - 0xc]
jmp 0x140023fe9
mov rax, qword [0x140104018]
mov qword [rbp], rax
lea rcx, [rbp]
call fcn.140006470
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp]
mov rcx, rsi
call fcn.140002330
cmp dword [rdi + 0x7fc], 0
je 0x140024023
lea r13, [rdi + 0x7f0]
mov qword [rbp + 0x58], r13
lea rdx, [rdi + 0x800]
mov rcx, r13
call fcn.1400063d0
jmp 0x14002414e
lea rdx, [rbp + 0x60]
mov rcx, r12
call fcn.1400092b0
mov rdi, rax
mov rbx, qword [0x140104018]
mov qword [rbp + 0x40], rbx
mov dword [rbp - 0x80], 1
lea rcx, [0x1400ced98]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r12, eax
mov r13, qword [rdi]
movsxd rdi, dword [r13 - 8]
lea r14d, [r12 + rdi]
cmp r14d, edi
jl 0x1400240e2
cmp r14d, r12d
jl 0x1400240e2
test r14d, r14d
je 0x1400240e2
mov edx, r14d
lea rcx, [rbp + 0x40]
call fcn.140001970
mov rbx, qword [rbp + 0x40]
test eax, eax
je 0x1400240e2
add rdi, rdi
lea eax, [r14 + 1]
movsxd rdx, eax
add rdx, rdx
mov r9, rdi
mov r8, r13
mov rcx, rbx
call fcn.1400029b0
mov r8, r12
lea eax, [r12 + 1]
movsxd rcx, eax
add rcx, rcx
lea rax, [rdi + rbx]
add r8, r8
je 0x1400240e2
test rax, rax
jne 0x1400240ca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], socket
jmp 0x140025052
cmp rcx, r8
jb 0x140025039
lea rdx, [0x1400ced98]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov r13, qword [rbp + 0x30]
add r13, 0x7f0
mov qword [rbp + 0x58], r13
lea rdx, [rbp + 0x40]
mov rcx, r13
call fcn.1400063d0
nop
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140104010]
je 0x14002411d
mov eax, r15d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14002411d
call fcn.1400bf5e4
nop
mov rcx, qword [rbp + 0x60]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140104010]
je 0x140024147
mov eax, r15d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x140024147
mov rcx, qword [rbp + 0x60]
add rcx, 0xfffffffffffffff4
call fcn.1400bf5e4
xor r14d, r14d
mov r12, qword [rbp + 8]
mov r8, qword [r13]
lea rdx, [0x1400d0e20]
lea rcx, [rsp + 0x50]
call fcn.1400086c0
mov rax, qword [rsp + 0x50]
cmp dword [rax - 0xc], 0
jl 0x140024178
mov qword [rbp + 0x48], rax
lock inc dword [rax - 0xc]
jmp 0x140024191
mov rax, qword [0x140104018]
mov qword [rbp + 0x48], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp + 0x48]
call fcn.140006470
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rbp + 0x48]
mov rcx, rsi
call fcn.140002330
xor edx, edx
mov rcx, r13
call fcn.140001c10
mov rcx, rax
xor edx, edx
call fcn.140054c30
mov rdi, rax
mov qword [rbp - 0x30], rax
test rax, rax
jne 0x140024248
mov rax, qword [0x140104018]
mov qword [rbp - 0x68], rax
lea rdi, [0x1400d0e60]
mov rax, rdi
shr rax, 0x10
test ax, ax
jne 0x1400241f4
movzx edx, di
lea rcx, [rbp - 0x68]
call fcn.140001ff0
jmp 0x14002422e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
test eax, eax
je 0x14002422e
mov edx, ebx
lea rcx, [rbp - 0x68]
call fcn.140001970
test eax, eax
je 0x14002422e
mov r9, rbx
add r9, r9
lea eax, [rbx + 1]
movsxd rdx, eax
add rdx, rdx
mov r8, rdi
mov rcx, qword [rbp - 0x68]
call fcn.1400029b0
mov r9b, 1
mov r8d, 0x64
lea rdx, [rbp - 0x68]
mov rcx, rsi
call fcn.140002330
jmp 0x140024d1c
mov ebx, r14d
mov dword [rsp + 0x7c], ebx
mov rcx, r12
call fcn.140009750
test eax, eax
jle 0x1400246c3
movss xmm6, dword [0x1400d230c]
nop word [rax + rax]
mov edx, ebx
mov rcx, r12
call fcn.140009530
mov r14, rax
mov rcx, rsi
call fcn.140001fb0
test al, al
jne 0x140024ac6
mov rdi, qword [r14]
lea rbx, [rdi - 0xc]
cmp dword [rbx], 1
jg 0x14002429f
cmp dword [rdi - 4], 0
jge 0x140024311
mov esi, dword [rdi - 8]
mov r13d, esi
test esi, esi
mov eax, 0
cmovle r13d, eax
mov edx, r13d
mov rcx, r14
call fcn.140001970
test eax, eax
jne 0x1400242d0
mov rax, qword [0x140104018]
mov qword [rsp + 0x58], rax
jmp 0x14002437d
lea eax, [rsi + 1]
movsxd r9, eax
add r9, r9
lea eax, [r13 + 1]
movsxd rdx, eax
add rdx, rdx
mov r8, rdi
mov rcx, qword [r14]
call fcn.1400029b0
mov rax, qword [r14]
mov dword [rax - 8], esi
cmp rbx, qword [0x140104010]
je 0x140024311
mov eax, r15d
lock xadd dword [rbx], eax
sub eax, 1
jg 0x140024311
mov rcx, rbx
call fcn.1400bf5e4
mov rbx, qword [r14]
mov rax, qword [0x140104018]
mov qword [rsp + 0x58], rax
test rbx, rbx
je 0x14002437d
mov rax, rbx
shr rax, 0x10
test ax, ax
jne 0x140024340
movzx edx, bx
lea rcx, [rsp + 0x58]
call fcn.140001ff0
jmp 0x14002437d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rdi, eax
test eax, eax
je 0x14002437d
mov edx, edi
lea rcx, [rsp + 0x58]
call fcn.140001970
test eax, eax
je 0x14002437d
mov r9, rdi
add r9, r9
lea eax, [rdi + 1]
movsxd rdx, eax
add rdx, rdx
mov r8, rbx
mov rcx, qword [rsp + 0x58]
call fcn.1400029b0
nop
mov rsi, qword [r14 + 8]
lea rbx, [rsi - 0xc]
cmp dword [rbx], 1
jg 0x140024390
cmp dword [rsi - 4], 0
jge 0x14002440a
mov r13d, dword [rsi - 8]
mov r12d, r13d
test r13d, r13d
mov eax, 0
cmovle r12d, eax
mov edx, r12d
lea rcx, [r14 + 8]
call fcn.140001970
test eax, eax
jne 0x1400243c4
mov rax, qword [0x140104018]
mov qword [rsp + 0x70], rax
jmp 0x140024477
lea eax, [r13 + 1]
movsxd r9, eax
add r9, r9
lea eax, [r12 + 1]
movsxd rdx, eax
add rdx, rdx
mov r8, rsi
mov rcx, qword [r14 + 8]
call fcn.1400029b0
mov rax, qword [r14 + 8]
mov dword [rax - 8], r13d
cmp rbx, qword [0x140104010]
je 0x14002440a
mov eax, r15d
lock xadd dword [rbx], eax
sub eax, 1
jg 0x14002440a
mov rcx, rbx
call fcn.1400bf5e4
mov rbx, qword [r14 + 8]
mov rax, qword [0x140104018]
mov qword [rsp + 0x70], rax
test rbx, rbx
je 0x140024477
mov rax, rbx
shr rax, 0x10
test ax, ax
jne 0x14002443a
movzx edx, bx
lea rcx, [rsp + 0x70]
call fcn.140001ff0
jmp 0x140024477
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rdi, eax
test eax, eax
je 0x140024477
mov edx, edi
lea rcx, [rsp + 0x70]
call fcn.140001970
test eax, eax
je 0x140024477
mov r9, rdi
add r9, r9
lea eax, [rdi + 1]
movsxd rdx, eax
add rdx, rdx
mov r8, rbx
mov rcx, qword [rsp + 0x70]
call fcn.1400029b0
nop
mov rsi, qword [r14 + 0x10]
cmp dword [rsi - 0xc], 0
jl 0x1400244c9
mov qword [rsp + 0x68], rsi
lock inc dword [rsi - 0xc]
xor r14d, r14d
mov rbx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x58]
lea rdx, [0x1400d0e98]
lea rcx, [rsp + 0x50]
call fcn.1400086c0
mov rax, qword [rsp + 0x50]
cmp dword [rax - 0xc], 0
jl 0x14002456a
mov qword [rbp - 0x20], rax
lock inc dword [rax - 0xc]
mov rbx, qword [rsp + 0x68]
jmp 0x140024583
mov rbx, qword [0x140104018]
mov qword [rsp + 0x68], rbx
test rsi, rsi
jne 0x1400244df
xor r14d, r14d
jmp 0x1400244eb
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r14d, eax
lea rcx, [rbx - 0xc]
cmp dword [rcx], 1
jg 0x1400244fa
cmp r14d, dword [rbx - 4]
jle 0x14002453a
cmp rcx, qword [0x140104010]
je 0x140024520
mov eax, r15d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x140024514
call fcn.1400bf5e4
mov rax, qword [0x140104018]
mov qword [rsp + 0x68], rax
mov edx, r14d
lea rcx, [rsp + 0x68]
call fcn.140001970
test eax, eax
je 0x14002448a
mov rbx, qword [rsp + 0x68]
movsxd rax, r14d
lea rdi, [rax + rax]
lea eax, [r14 + 1]
movsxd rdx, eax
add rdx, rdx
mov r9, rdi
mov r8, rsi
mov rcx, rbx
call fcn.1400029b0
mov dword [rbx - 8], r14d
xor r14d, r14d
mov word [rdi + rbx], r14w
jmp 0x140024492
mov rax, qword [0x140104018]
mov qword [rbp - 0x20], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp - 0x20]
call fcn.140006470
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x20]
mov rsi, qword [rbp + 0x30]
add rsi, 0x5d8
mov rcx, rsi
call fcn.140002330
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rdi, qword [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
mov qword [rbp + 0x38], rax
cmp rax, 0xffffffffffffffff
jne 0x14002470f
mov r8, rdi
lea rdx, [0x1400d0ec0]
lea rcx, [rsp + 0x50]
call fcn.1400086c0
mov rax, qword [rsp + 0x50]
cmp dword [rax - 0xc], 0
jl 0x14002460b
mov qword [rbp - 0x18], rax
lock inc dword [rax - 0xc]
mov rbx, qword [rsp + 0x68]
jmp 0x140024624
mov rax, qword [0x140104018]
mov qword [rbp - 0x18], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp - 0x18]
call fcn.140006470
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x18]
mov rcx, rsi
call fcn.140002330
nop
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140104010]
je 0x140024656
mov eax, r15d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x140024656
call fcn.1400bf5e4
nop
mov rcx, qword [rsp + 0x70]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140104010]
je 0x14002467a
mov eax, r15d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14002467a
call fcn.1400bf5e4
nop
mov rcx, qword [rsp + 0x58]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140104010]
je 0x14002469d
mov eax, r15d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x14002469d
call fcn.1400bf5e4
mov rdi, qword [rbp - 0x30]
mov ebx, dword [rsp + 0x7c]
inc ebx
mov dword [rsp + 0x7c], ebx
mov r12, qword [rbp + 8]
mov rcx, r12
call fcn.140009750
cmp ebx, eax
jl 0x140024270
mov r13, qword [rbp + 0x58]
xor edx, edx
mov rcx, rdi
call fcn.140054330
mov rbx, qword [rbp + 0x30]
cmp dword [rbx + 0x7fc], 0
jne 0x140024cf8
mov r8, qword [r13]
lea rdx, [0x1400d0f80]
lea rcx, [rsp + 0x50]
call fcn.1400086c0
mov rax, qword [rsp + 0x50]
cmp dword [rax - 0xc], 0
jl 0x140024ad5
mov qword [rbp + 0x10], rax
lock inc dword [rax - 0xc]
jmp 0x140024aee
lea rdx, [rbp + 0xd8]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0xec]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov dword [rbp + 0xc8], r14d
movzx eax, word [rbp + 0xa0]
mov dword [rbp + 0xc4], eax
movzx eax, word [rbp + 0xa2]
dec eax
mov dword [rbp + 0xc0], eax
movzx eax, word [rbp + 0xa6]
mov dword [rbp + 0xbc], eax
movzx eax, word [rbp + 0xa8]
mov dword [rbp + 0xb8], eax
movzx eax, word [rbp + 0xaa]
mov dword [rbp + 0xb4], eax
movzx eax, word [rbp + 0xac]
mov dword [rbp + 0xb0], eax
mov dword [rbp + 0xd0], 0x80
mov dword [rbp + 0xcc], 0x80
mov rdx, rbx
lea rcx, [rbp + 0x80]
call fcn.140031120
mov rdi, rax
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.140001c10
mov rdx, rax
lea rcx, [rbp + 0x80]
call fcn.140031120
mov rdx, rax
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x40], 8
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea r8, [rbp + 0xb0]
mov rdi, qword [rbp - 0x30]
mov rcx, rdi
call fcn.140054df0
test eax, eax
je 0x1400248e0
mov r8, qword [rsp + 0x58]
lea rdx, [0x1400d0ef0]
lea rcx, [rsp + 0x50]
call fcn.1400086c0
mov rax, qword [rsp + 0x50]
cmp dword [rax - 0xc], 0
jl 0x14002483d
mov qword [rbp - 0x10], rax
lock inc dword [rax - 0xc]
mov rbx, qword [rsp + 0x68]
jmp 0x140024856
mov rax, qword [0x140104018]
mov qword [rbp - 0x10], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp - 0x10]
call fcn.140006470
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x10]
mov rcx, rsi
call fcn.140002330
nop
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140104010]
je 0x140024888
mov eax, r15d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x140024888
call fcn.1400bf5e4
nop
mov rcx, qword [rsp + 0x70]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140104010]
je 0x1400248ac
mov eax, r15d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x1400248ac
call fcn.1400bf5e4
nop
mov rcx, qword [rsp + 0x58]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140104010]
je 0x1400246a1
mov eax, r15d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x1400246a1
call fcn.1400bf5e4
jmp 0x1400246a1
mov rcx, rsi
call fcn.140001fb0
test al, al
jne 0x140024a60
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x78]
mov r8d, 0x400
lea rdx, [rbp + 0x110]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400249d8
mov r8d, dword [rsp + 0x78]
test r8d, r8d
je 0x1400249d8
lea rdx, [rbp + 0x110]
mov rcx, rdi
call fcn.1400554e0
test eax, eax
jne 0x140024975
mov eax, dword [rsp + 0x78]
mov rcx, qword [rbp + 0x68]
add rcx, rax
mov qword [rbp + 0x68], rcx
xorps xmm1, xmm1
cvtsi2ss xmm1, rcx
mulss xmm1, xmm6
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [rbp - 0x28]
divss xmm1, xmm0
cvttss2si edx, xmm1
xor r8d, r8d
mov rcx, rsi
call fcn.1400022e0
jmp 0x1400248e0
mov rcx, rdi
call fcn.140054740
mov r8, qword [rsp + 0x58]
lea rdx, [0x1400d0f30]
lea rcx, [rsp + 0x50]
call fcn.1400086c0
mov rax, qword [rsp + 0x50]
cmp dword [rax - 0xc], 0
jl 0x1400249ad
mov qword [rbp - 8], rax
lock inc dword [rax - 0xc]
mov rbx, qword [rsp + 0x68]
jmp 0x1400249c6
mov rax, qword [0x140104018]
mov qword [rbp - 8], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp - 8]
call fcn.140006470
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 8]
mov rcx, rsi
call fcn.140002330
mov rcx, rdi
call fcn.140054740
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x38], r15
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140104010]
je 0x140024a0c
mov eax, r15d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x140024a0c
call fcn.1400bf5e4
nop
mov rcx, qword [rsp + 0x70]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140104010]
je 0x140024a30
mov eax, r15d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x140024a30
call fcn.1400bf5e4
nop
mov rcx, qword [rsp + 0x58]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140104010]
je 0x1400246a1
mov eax, r15d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x1400246a1
call fcn.1400bf5e4
jmp 0x1400246a1
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140104010]
je 0x140024a7f
mov eax, r15d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x140024a7f
call fcn.1400bf5e4
nop
mov rcx, qword [rsp + 0x70]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140104010]
je 0x140024aa3
mov eax, r15d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x140024aa3
call fcn.1400bf5e4
nop
mov rcx, qword [rsp + 0x58]
add rcx, 0xfffffffffffffff4
cmp rcx, qword [0x140104010]
je 0x140024ac6
mov eax, r15d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x140024ac6
call fcn.1400bf5e4
xor edx, edx
mov rcx, rdi
call fcn.140054330
jmp 0x140024d09
mov rax, qword [0x140104018]
mov qword [rbp + 0x10], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp + 0x10]
call fcn.140006470
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x10]
mov rcx, rsi
call fcn.140002330
mov rdx, qword [r13]
cmp dword [rdx - 0xc], 0
jl 0x140024b14
mov qword [rbp + 0x18], rdx
lock inc dword [rdx - 0xc]
jmp 0x140024b28
mov rax, qword [0x140104018]
mov qword [rbp + 0x18], rax
lea rcx, [rbp + 0x18]
call fcn.140006470
lea r8, [rbp + 0x70]
lea rdx, [rbp + 0x18]
mov rcx, rbx
call fcn.140021e70
test eax, eax
je 0x140024b96
mov r8, qword [r13]
lea rdx, [0x1400d0fd0]
lea rcx, [rsp + 0x50]
call fcn.1400086c0
mov rax, qword [rsp + 0x50]
cmp dword [rax - 0xc], 0
jl 0x140024b66
mov qword [rbp + 0x20], rax
lock inc dword [rax - 0xc]
jmp 0x140024b7f
mov rax, qword [0x140104018]
mov qword [rbp + 0x20], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp + 0x20]
call fcn.140006470
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x20]
mov rcx, rsi
call fcn.140002330
jmp 0x140024d09
mov rbx, qword [0x140104018]
mov qword [rbp + 0x50], rbx
mov dword [rbp - 0x80], 2
lea rcx, [0x1400d1020]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r12, eax
mov r13, qword [r13]
movsxd rdi, dword [r13 - 8]
lea r14d, [r12 + rdi]
cmp r14d, edi
jl 0x140024c47
cmp r14d, r12d
jl 0x140024c47
test r14d, r14d
je 0x140024c47
mov edx, r14d
lea rcx, [rbp + 0x50]
call fcn.140001970
mov rbx, qword [rbp + 0x50]
test eax, eax
je 0x140024c47
add rdi, rdi
lea eax, [r14 + 1]
movsxd rdx, eax
add rdx, rdx
mov r9, rdi
mov r8, r13
mov rcx, rbx
call fcn.1400029b0
mov r8, r12
lea eax, [r12 + 1]
movsxd rcx, eax
add rcx, rcx
lea rax, [rdi + rbx]
add r8, r8
je 0x140024c47
test rax, rax
jne 0x140024c2f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], socket
jmp 0x140025028
cmp rcx, r8
jb 0x14002500f
lea rdx, [0x1400d1020]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea r8, [0x1400ccf90]
mov rdx, rbx
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
nop
lea rcx, [rbx - 0xc]
cmp rcx, qword [0x140104010]
je 0x140024c7a
mov eax, r15d
lock xadd dword [rcx], eax
sub eax, 1
jg 0x140024c7a
call fcn.1400bf5e4
mov rcx, qword [rbp - 0x60]
test rcx, rcx
jne 0x140024cdd
mov r8, qword [rbp + 0x58]
mov r8, qword [r8]
lea rdx, [0x1400d1030]
lea rcx, [rsp + 0x50]
call fcn.1400086c0
mov rax, qword [rsp + 0x50]
cmp dword [rax - 0xc], 0
jl 0x140024cb0
mov qword [rbp + 0x28], rax
lock inc dword [rax - 0xc]
jmp 0x140024cc9
mov rax, qword [0x140104018]
mov qword [rbp + 0x28], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp + 0x28]
call fcn.140006470
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x28]
mov rcx, rsi
call fcn.140002330
jmp 0x140024d09
mov rdx, qword [rbp + 0x70]
call fcn.140031210
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [rbp - 0x60], 0
mov rax, qword [rbp - 0x28]
cmp rax, qword [rbp + 0x68]
jne 0x140024d09
mov dword [rbp + 0x78], 1
mov rax, qword [rbp + 0x38]
cmp rax, 0xffffffffffffffff
je 0x140024d1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x140024d2b
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rbp + 0x78]
mov rax, qword [0x140104018]
test edi, edi
je 0x140024da7
mov qword [rbp - 0x58], rax
lea r14, [0x1400d1080]
mov rax, r14
shr rax, 0x10
test ax, ax
jne 0x140024d67
movzx edx, r14w
lea rcx, [rbp - 0x58]
call fcn.140001ff0
lea rdx, [rbp - 0x58]
jmp 0x140024e0b
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
test eax, eax
je 0x140024da1
mov edx, ebx
lea rcx, [rbp - 0x58]
call fcn.140001970
test eax, eax
je 0x140024da1
mov r9, rbx
add r9, r9
lea eax, [rbx + 1]
movsxd rdx, eax
add rdx, rdx
mov r8, r14
mov rcx, qword [rbp - 0x58]
call fcn.1400029b0
lea rdx, [rbp - 0x58]
jmp 0x140024e0b
mov qword [rbp - 0x50], rax
lea r14, [0x1400d10c0]
mov rax, r14
shr rax, 0x10
test ax, ax
jne 0x140024dcd
movzx edx, r14w
lea rcx, [rbp - 0x50]
call fcn.140001ff0
jmp 0x140024e07
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
test eax, eax
je 0x140024e07
mov edx, ebx
lea rcx, [rbp - 0x50]
call fcn.140001970
test eax, eax
je 0x140024e07
mov r9, rbx
add r9, r9
lea eax, [rbx + 1]
movsxd rdx, eax
add rdx, rdx
mov r8, r14
mov rcx, qword [rbp - 0x50]
call fcn.1400029b0
lea rdx, [rbp - 0x50]
mov r9b, 1
mov r8d, 0x64
mov rcx, rsi
call fcn.140002330
mov rax, qword [rbp + 0x30]
cmp dword [rax + 0x7fc], 0
mov rax, qword [0x140104018]
je 0x140024f15
test edi, edi
je 0x140024ea8
mov qword [rbp - 0x48], rax
lea r14, [0x1400d10f8]
mov rax, r14
shr rax, 0x10
test ax, ax
jne 0x140024e65
movzx edx, r14w
lea rcx, [rbp - 0x48]
call fcn.140001ff0
lea rdx, [rbp - 0x48]
jmp 0x140024f79
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
test eax, eax
je 0x140024e9f
mov edx, ebx
lea rcx, [rbp - 0x48]
call fcn.140001970
test eax, eax
je 0x140024e9f
mov r9, rbx
add r9, r9
lea eax, [rbx + 1]
movsxd rdx, eax
add rdx, rdx
mov r8, r14
mov rcx, qword [rbp - 0x48]
call fcn.1400029b0
lea rdx, [rbp - 0x48]
jmp 0x140024f79
mov qword [rbp - 0x40], rax
lea r14, [0x1400d1130]
mov rax, r14
shr rax, 0x10
test ax, ax
jne 0x140024ed5
movzx edx, r14w
lea rcx, [rbp - 0x40]
call fcn.140001ff0
lea rdx, [rbp - 0x40]
jmp 0x140024f79
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
test eax, eax
je 0x140024f0f
mov edx, ebx
lea rcx, [rbp - 0x40]
call fcn.140001970
test eax, eax
je 0x140024f0f
mov r9, rbx
add r9, r9
lea eax, [rbx + 1]
movsxd rdx, eax
add rdx, rdx
mov r8, r14
invalid
invalid