Function at 0x1400a1e40
Capabilities:
Create thread
Delete file
Get file system object information
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x860]
sub rsp, 0x960
mov rax, qword [0x140263a80]
xor rax, rsp
mov qword [rbp + 0x850], rax
mov rsi, r8
mov rdi, rdx
mov r12, rcx
mov qword [rsp + 0x48], rcx
movzx eax, byte [rdx]
cmp eax, 0xb
ja case.0x1400a1e9b.9
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0xa384c]
add rax, rcx
jmp rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
xor r14d, r14d
mov qword [rbp - 0x10], r14
lea rdx, [r8 - 3]
shr rdx, 1
lea rcx, [rdi + 3]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov rdx, rax
lea r8, [rbp - 0x20]
lea rcx, [rdi + 3]
call fcn.1400a42d0
mov edx, 0x4000
mov r15d, 1
mov ecx, r15d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov r14, rax
test rax, rax
jne 0x1400a1f5a
mov r8, qword [rbp - 0x20]
test r8, r8
je 0x1400a368d
mov rcx, qword [rbp - 0x10]
sub rcx, r8
movabs rax, 0xef2eb71fc4345239
imul rcx
add rdx, rcx
sar rdx, 9
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rdx, rdx, 0x224
mov rax, r8
cmp rdx, 0x1000
jb 0x1400a1f4a
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a1f4a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.1401d0398
mov eax, r15d
jmp 0x1400a3821
mov word [rax], ntohl
mov r12, qword [rbp - 0x18]
mov rcx, r12
mov r15, qword [rbp - 0x20]
sub rcx, r15
movabs r13, 0xef2eb71fc4345239
mov rax, r13
imul rcx
add rdx, rcx
sar rdx, 9
mov rcx, rdx
shr rcx, 0x3f
add rcx, rdx
call qword [sym.imp.WS2_32.dll_htonl]
lea rcx, [r14 + 2]
test rcx, rcx
jne 0x1400a1fb1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
jmp 0x1400a1fb3
mov dword [rcx], eax
mov esi, 6
cmp r15, r12
je 0x1400a2100
mov rbx, r15
mov r13d, 0x4000
mov r15, qword [rsp + 0x48]
nop
mov rdi, r13
sub rdi, rsi
lea rcx, [rsi + r14]
test rcx, rcx
jne 0x1400a1ff0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400a20aa
test rbx, rbx
je 0x1400a2078
cmp rdi, 0x224
jb 0x1400a2078
mov rax, rbx
mov edx, 4
nop word [rax + rax]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x1400a2010
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
mov eax, dword [rax + 0x20]
mov dword [rcx + 0x20], eax
jmp 0x1400a20b0
mov r8, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
test rbx, rbx
jne 0x1400a2095
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400a20aa
cmp rdi, 0x224
jae 0x1400a20b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], Ordinal_35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
add rsi, 0x224
add rbx, 0x224
mov rax, r13
sub rax, rsi
cmp rax, 0x224
jb 0x1400a20d5
cmp rbx, r12
jne 0x1400a1fd0
mov r8d, esi
mov rdx, r14
mov rcx, r15
call qword [0x140267ea0]
mov esi, 6
cmp rbx, r12
jne 0x1400a1fd0
mov r15, qword [rbp - 0x20]
movabs r13, 0xef2eb71fc4345239
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
test r15, r15
je case.0x1400a1e9b.9
mov rcx, qword [rbp - 0x10]
sub rcx, r15
mov rax, r13
imul rcx
add rdx, rcx
sar rdx, 9
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rdx, rdx, 0x224
mov rax, r15
cmp rdx, 0x1000
jb 0x1400a2160
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400a2160
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.1401d0398
jmp case.0x1400a1e9b.9
add rdi, 3
xor edx, edx
mov r8d, 0x2b8
lea rcx, [rbp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x20], 0x200
mov r9d, 0x2b8
lea r8, [rbp + 0x30]
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov r13d, 0x4000
mov edx, r13d
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
jne 0x1400a21c6
lea eax, [rbx + 2]
jmp 0x1400a3821
mov word [rax], 0x10b
test rdi, rdi
jne 0x1400a21d5
xor r14d, r14d
jmp 0x1400a21e5
lea rdx, [rsi - 1]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov r14, rax
add r14, r14
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_htonl]
lea rcx, [rbx + 2]
test rcx, rcx
jne 0x1400a220e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
jmp 0x1400a2210
mov dword [rcx], eax
lea rsi, [r14 + r14]
lea rcx, [rbx + 6]
test rsi, rsi
je 0x1400a2286
test rcx, rcx
jne 0x1400a2230
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400a2280
test rdi, rdi
je 0x1400a224b
cmp rsi, 0x3ffa
ja 0x1400a224b
mov r8, rsi
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400a2286
xor edx, edx
mov r8d, 0x3ffa
call sub.VCRUNTIME140.dll_memset
test rdi, rdi
jne 0x1400a226b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400a2280
cmp rsi, 0x3ffa
jbe 0x1400a2286
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], Ordinal_35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
lea rdi, [r14 + 6]
mov edx, 0x104
lea rcx, [rbp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
lea rsi, [rax + rax]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_htonl]
mov r8, r13
sub r8, rdi
lea rcx, [rdi + rbx]
test rcx, rcx
jne 0x1400a22c2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400a22df
cmp r8, 4
jb 0x1400a22cc
mov dword [rcx], eax
jmp 0x1400a22e5
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], Ordinal_35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
add rdi, 4
lea r8, [rsi + rsi]
sub r13, rdi
lea rcx, [rdi + rbx]
test r8, r8
je 0x1400a2338
test rcx, rcx
jne 0x1400a230c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400a2332
cmp r13, r8
jb 0x1400a231c
lea rdx, [rbp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400a2338
mov r8, r13
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], Ordinal_35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
lea r8d, [rdi + rsi]
mov rdx, rbx
mov rcx, r12
call qword [0x140267ea0]
mov rcx, rbx
jmp 0x1400a3819
add rdi, 3
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp + 0x640]
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov r15, rax
movsxd rbx, eax
lea rsi, [rbx + rbx]
test rsi, rsi
je 0x1400a23c7
test rdi, rdi
je 0x1400a23b5
cmp rsi, 0x20a
ja 0x1400a23a7
mov r8, rsi
mov rdx, rdi
lea rcx, [rbp + 0x640]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400a23c7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], Ordinal_35
jmp 0x1400a23c1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp + 0x430]
call sub.VCRUNTIME140.dll_memset
lea rbx, [rdi + rbx*2]
mov edx, 0x104
lea rcx, [rbx + 4]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
lea r8, [rax + rax]
lea rdx, [rbx + 4]
lea rcx, [rbp + 0x430]
call sub.VCRUNTIME140.dll_memcpy
xor r14d, r14d
mov qword [rbp - 0x78], 4
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x5e], xmm0
mov dword [rbp - 0x4e], r14d
mov word [rbp - 0x4a], r14w
mov qword [rbp - 0x80], r14
lea rax, [rbp + 0x640]
mov qword [rbp - 0x70], rax
lea rax, [rbp + 0x430]
mov qword [rbp - 0x68], rax
mov eax, 0x614
mov word [rbp - 0x60], ax
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x33]
call sub.VCRUNTIME140.dll_memset
mov word [rbp + 0x30], 0x20b
lea rcx, [rbp - 0x80]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete byte [rbp + 0x32]
mov r8, rsi
mov rdx, rdi
lea rcx, [rbp + 0x33]
call sub.VCRUNTIME140.dll_memcpy
lea r8d, [r15*2 + 3]
lea rdx, [rbp + 0x30]
mov rcx, r12
call qword [0x140267ea0]
jmp case.0x1400a1e9b.9
lea rsi, [rdx + 3]
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp + 0x640]
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov rdi, rax
movsxd rbx, eax
add rbx, rbx
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp + 0x640]
call sub.VCRUNTIME140.dll_memcpy
xor r14d, r14d
mov qword [rbp - 0x78], 3
mov qword [rbp - 0x68], r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x5e], xmm0
mov dword [rbp - 0x4e], r14d
mov word [rbp - 0x4a], r14w
mov qword [rbp - 0x80], r14
lea rax, [rbp + 0x640]
mov qword [rbp - 0x70], rax
mov eax, 0x614
mov word [rbp - 0x60], ax
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x33]
call sub.VCRUNTIME140.dll_memset
mov word [rbp + 0x30], 0x30b
lea rcx, [rbp - 0x80]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete byte [rbp + 0x32]
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp + 0x33]
call sub.VCRUNTIME140.dll_memcpy
lea r8d, [rdi*2 + 3]
lea rdx, [rbp + 0x30]
mov rcx, r12
call qword [0x140267ea0]
jmp case.0x1400a1e9b.9
mov edx, 0x3ffd
lea rcx, [rdi + 3]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
cmp eax, 0xffffffff
je case.0x1400a1e9b.9
mov rcx, qword [0x140268120]
lea eax, [rax*2 + 2]
mov r8d, 8
xor r14d, r14d
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], eax
lea r9, [rdi + 3]
mov rdx, qword [rcx + 8]
call fcn.140076b40
jmp case.0x1400a1e9b.9
lea rsi, [rdx + 3]
mov edx, 0x228
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
jne 0x1400a25d2
lea eax, [rbx + 4]
jmp 0x1400a3821
mov edx, 0x104
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
movsxd rdi, eax
add rdi, rdi
lea rcx, [rbx + 0x20]
je 0x1400a2655
test rcx, rcx
jne 0x1400a25ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400a264f
test rsi, rsi
je 0x1400a261a
cmp rdi, 0x208
ja 0x1400a261a
mov r8, rdi
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400a2655
xor edx, edx
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
test rsi, rsi
jne 0x1400a263a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400a264f
cmp rdi, 0x208
jbe 0x1400a2655
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], Ordinal_35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov qword [rbx + 0x10], r12
lea rcx, [0x1402682c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r14d, r14d
mov dword [rbx], r14d
mov rax, qword [0x1402682b8]
mov qword [rbx + 8], rax
inc rax
mov qword [0x1402682b8], rax
mov rdi, qword [0x140269a88]
movabs rax, 0xaaaaaaaaaaaaaaa
cmp qword [0x140269a90], rax
je 0x1400a27f2
lea rax, [0x140269a88]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], r14
lea ecx, [r14 + 0x18]
call fcn.1401d0330
mov qword [rax + 0x10], rbx
inc qword [0x140269a90]
mov rdx, qword [rdi + 8]
mov qword [rax], rdi
mov qword [rax + 8], rdx
mov qword [rdi + 8], rax
mov qword [rdx], rax
lea rcx, [0x1402682c0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
mov r9, rbx
lea r8, [0x1400a19c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
jmp case.0x1400a1e9b.9
mov edx, 0x228
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
jne 0x1400a2724
lea eax, [rbx + 5]
jmp 0x1400a3821
mov rax, qword [rdi + 1]
bswap rax
mov qword [rbx + 8], rax
mov rax, qword [rdi + 9]
bswap rax
mov qword [rbx + 0x18], rax
lea rsi, [rdi + 0x13]
mov edx, 0x104
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
movsxd rdi, eax
add rdi, rdi
lea rcx, [rbx + 0x20]
je 0x1400a27c1
test rcx, rcx
jne 0x1400a276b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400a27bb
test rsi, rsi
je 0x1400a2786
cmp rdi, 0x208
ja 0x1400a2786
mov r8, rdi
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400a27c1
xor edx, edx
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
test rsi, rsi
jne 0x1400a27a6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400a27bb
cmp rdi, 0x208
jbe 0x1400a27c1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], Ordinal_35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov qword [rbx + 0x10], r12
lea rcx, [0x1402682c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r14d, r14d
mov dword [rbx], r14d
mov rdi, qword [0x140269a88]
movabs rax, 0xaaaaaaaaaaaaaaa
cmp qword [0x140269a90], rax
jne 0x1400a2800
lea rcx, str.list_too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [0x140269a88]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], r14
mov ecx, Ordinal_27
call fcn.1401d0330
mov qword [rax + 0x10], rbx
inc qword [0x140269a90]
mov rcx, qword [rdi + 8]
mov qword [rax], rdi
mov qword [rax + 8], rcx
mov qword [rdi + 8], rax
mov qword [rcx], rax
jmp 0x1400a26d4
mov rbx, qword [rdx + 1]
bswap rbx
lea rcx, [0x1402682c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdx, qword [0x140269a88]
mov rax, qword [rdx]
cmp rax, rdx
je 0x1400a288a
nop
mov rcx, qword [rax + 0x10]
cmp qword [rcx + 8], rbx
je 0x1400a2884
mov rax, qword [rax]
cmp rax, rdx
jne 0x1400a2860
lea rcx, [0x1402682c0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.0x1400a1e9b.9
mov dword [rcx], 1
lea rcx, [0x1402682c0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.0x1400a1e9b.9
movzx ecx, byte [rdx + 1]
test ecx, ecx
je 0x1400a2b86
cmp ecx, 1
jne case.0x1400a1e9b.9
xor r14d, r14d
mov r13d, r14d
lea r12, [rdx + 2]
mov rsi, qword [r12]
bswap rsi
mov ebx, r14d
lea rcx, [0x1402682f0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdx, qword [0x140269a78]
mov rax, qword [rdx]
cmp rax, rdx
je 0x1400a28f5
mov rcx, qword [rax + 0x10]
cmp qword [rcx + 0x20], rsi
cmove rbx, rcx
mov rax, qword [rax]
cmp rax, rdx
jne 0x1400a28e1
lea rcx, [0x1402682f0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x1400a2a9c
mov ecx, dword [rdi + 0xa]
call qword [sym.imp.WS2_32.dll_ntohl]
mov r15d, r14d
lea rdx, [rdi + 0xe]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
mov r8d, eax
mov rcx, qword [rbx + 0x238]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400a2a8f
mov eax, dword [rsp + 0x40]
add qword [rbx + 0x18], rax
mov rax, qword [rbx + 0x18]
cmp qword [rbx + 0x10], rax
jne 0x1400a29a5
mov rcx, qword [rbx + 0x238]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x238], r14
lea rcx, [rbx + 0x30]
lea rdx, [rbp + 0x18]
call fcn.140095c90
test eax, eax
setne r13b
mov edx, r14d
mov rcx, rbx
lea r8, [rbp + 0x18]
sub r8, rbx
movzx eax, byte [rcx]
cmp byte [r8 + rcx], al
jne 0x1400a2998
inc edx
inc rcx
cmp edx, 0x10
jb 0x1400a2983
jmp 0x1400a299e
mov r13d, 1
mov r15d, r13d
xor r15d, 1
mov edi, r13d
test r15d, r15d
je 0x1400a2a94
mov qword [rbp - 0x1d], r14
mov word [rbp - 0x20], 0x70b
mov byte [rbp - 0x1e], 1
test r12, r12
je 0x1400a29ce
mov rax, qword [r12]
mov qword [rbp - 0x1d], rax
jmp 0x1400a29e6
xor eax, eax
mov qword [rbp - 0x1d], rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov r8d, recv
lea rdx, [rbp - 0x20]
mov rcx, qword [rsp + 0x48]
call qword [0x140267ea0]
mov rcx, qword [rbx + 0x238]
test rcx, rcx
je 0x1400a2a0d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x1402682f0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdx, qword [0x140269a78]
mov rcx, qword [rdx]
cmp rcx, rdx
je 0x1400a2a80
mov r8, qword [rbx + 0x20]
nop dword [rax]
mov rax, qword [rcx + 0x10]
cmp qword [rax + 0x20], r8
je 0x1400a2a51
mov rcx, qword [rcx]
cmp rcx, rdx
jne 0x1400a2a30
lea rcx, [0x1402682f0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400a2a94
mov rdx, qword [rcx + 8]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
dec qword [0x140269a80]
mov edx, Ordinal_27
call fcn.1401d0398
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [0x1402682f0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400a2a94
mov edi, 1
test edi, edi
je case.0x1400a1e9b.9
mov qword [rbp - 5], r14
mov word [rbp - 8], 0x70b
mov byte [rbp - 6], 2
test r12, r12
je 0x1400a2ab9
mov rax, qword [r12]
mov qword [rbp - 5], rax
jmp 0x1400a2ad1
xor eax, eax
mov qword [rbp - 5], rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov r8d, recv
lea rdx, [rbp - 8]
mov rcx, qword [rsp + 0x48]
call qword [0x140267ea0]
test rbx, rbx
je case.0x1400a1e9b.9
mov rcx, qword [rbx + 0x238]
test rcx, rcx
je 0x1400a2b01
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x1402682f0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdx, qword [0x140269a78]
mov rcx, qword [rdx]
cmp rcx, rdx
je 0x1400a2b74
mov r8, qword [rbx + 0x20]
mov rax, qword [rcx + 0x10]
cmp qword [rax + 0x20], r8
je 0x1400a2b45
mov rcx, qword [rcx]
cmp rcx, rdx
jne 0x1400a2b21
lea rcx, [0x1402682f0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.0x1400a1e9b.9
mov rdx, qword [rcx + 8]
mov rax, qword [rcx]
mov qword [rdx], rax
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
dec qword [0x140269a80]
mov edx, Ordinal_27
call fcn.1401d0398
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [0x1402682f0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.0x1400a1e9b.9
mov rax, qword [rdx + 0x13]
bswap rax
mov qword [rbp - 8], rax
lea r15, [rdx + 0x1d]
mov qword [rbp - 0x20], r15
xor r14d, r14d
test r15, r15
jne 0x1400a2ba6
mov eax, r14d
jmp 0x1400a2bb3
lea rdx, [r8 - 0x1d]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
lea esi, [rax*2 + 2]
add rsi, 0x1f
add rsi, rdi
mov qword [rsp + 0x50], rsi
mov rcx, r15
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rbx, rax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x44], r14d
mov r13d, 0x4000
cmp rax, r15
je 0x1400a34b3
mov edx, 0x240
mov r13d, 1
mov ecx, r13d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov r12, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x1400a34ad
lea rax, [rdi + 2]
mov qword [rsp + 0x78], rax
test rax, rax
je 0x1400a2c28
movups xmm0, xmmword [rax]
movups xmmword [r12], xmm0
jmp 0x1400a2c42
xorps xmm0, xmm0
movups xmmword [r12], xmm0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x430]
call sub.VCRUNTIME140.dll_memset
mov edi, r14d
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov qword [rsp + 0x68], rax
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x640]
call sub.VCRUNTIME140.dll_memset
mov r8, qword [rsp + 0x68]
sub r8, rbx
sar r8, 1
add r8, r8
je 0x1400a2cca
test rbx, rbx
je 0x1400a2cb8
cmp r8, 0x208
ja 0x1400a2caa
mov rdx, rbx
lea rcx, [rbp + 0x640]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400a2cca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], Ordinal_35
jmp 0x1400a2cc4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov ebx, 3
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov r8, rsi
lea rcx, [rbp + 0x430]
test edi, edi
je 0x1400a2d0c
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
lea r9, [rbp + 0x640]
lea rdx, str._s_s__d__s
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x1400a2d1e
mov r9, qword [rsp + 0x70]
lea rdx, str._s_s
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000000
lea rcx, [rbp + 0x430]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [r12 + 0x238], rax
cmp rax, 0xffffffffffffffff
jne 0x1400a2e54
call qword [sym.imp.KERNEL32.dll_GetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x1400a2e6f
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [rbp + 0x430]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
test rax, rax
je 0x1400a2e4d
lea rcx, [rbp - 0x80]
call fcn.1401077e0
nop dword [rax]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x58]
mov r8d, 0x400
lea rdx, [rbp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400a2e44
mov r8d, dword [rsp + 0x58]
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x80]
call fcn.140107830
cmp dword [rsp + 0x58], r14d
jne 0x1400a2db0
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 8]
call fcn.140107670
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, r14d
lea rcx, [rbp + 8]
lea rax, [rbp + 8]
mov r8, r12
sub r8, rax
movzx eax, byte [r8 + rcx]
cmp byte [rcx], al
jne 0x1400a2e4d
inc edx
inc rcx
cmp edx, 0x10
jb 0x1400a2e11
mov ebx, r13d
lea rcx, [r12 + 0x30]
mov r9d, 0x104
lea r8, [rbp + 0x430]
mov edx, r9d
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
jmp 0x1400a2e72
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
jmp 0x1400a2cca
lea rcx, [r12 + 0x30]
mov r9d, 0x104
lea r8, [rbp + 0x430]
mov edx, r9d
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov ebx, r14d
mov rax, qword [r12 + 0x238]
cmp rax, 0xffffffffffffffff
je 0x1400a31fd
test rax, rax
je 0x1400a31fd
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x1400a2ea1
movups xmm0, xmmword [rax]
movups xmmword [r12], xmm0
jmp 0x1400a2ebb
xorps xmm0, xmm0
movups xmmword [r12], xmm0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov rax, qword [rbp - 8]
mov qword [r12 + 0x10], rax
lea rcx, [0x1402682f0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1402682e8]
mov qword [r12 + 0x20], rax
inc rax
mov qword [0x1402682e8], rax
mov rbx, qword [0x140269a78]
movabs rax, 0xaaaaaaaaaaaaaaa
cmp qword [0x140269a80], rax
jne 0x1400a2f0f
lea rcx, str.list_too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [0x140269a78]
mov qword [rbp - 8], rax
mov qword [rbp], r14
mov ecx, Ordinal_27
call fcn.1401d0330
mov qword [rax + 0x10], r12
inc qword [0x140269a80]
mov rcx, qword [rbx + 8]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov qword [rbx + 8], rax
mov qword [rcx], rax
lea rcx, [0x1402682f0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edx, edx
mov r8d, 0x3fd
lea rcx, [rbp + 0x33]
call sub.VCRUNTIME140.dll_memset
mov word [rbp + 0x30], 0x70b
mov byte [rbp + 0x32], 0
mov rax, qword [r12 + 0x20]
bswap rax
mov qword [rbp + 0x33], rax
test r15, r15
jne 0x1400a2f85
mov ebx, r14d
xor ecx, ecx
jmp 0x1400a2f98
mov edx, 0x104
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
lea ebx, [rax + rax]
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp + 0x3b], eax
lea rcx, [rbp + 0x3f]
test rbx, rbx
je 0x1400a3000
test r15, r15
je 0x1400a2fc5
cmp rbx, 0x3ff1
ja 0x1400a2fc5
mov r8, rbx
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400a3000
xor edx, edx
mov r8d, 0x3ff1
call sub.VCRUNTIME140.dll_memset
test r15, r15
jne 0x1400a2fe5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400a2ffa
cmp rbx, 0x3ff1
jbe 0x1400a3000
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], Ordinal_35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
lea eax, [rbx + 4]
movsxd rbx, eax
add rbx, 0xb
mov edi, 0x4000
sub rdi, rbx
lea r15, [rbp + 0x30]
add r15, rbx
test rsi, rsi
jne 0x1400a3023
mov rax, r14
jmp 0x1400a3031
mov edx, 0x104
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
lea r12d, [rax + rax]
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_htonl]
test r15, r15
jne 0x1400a3051
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400a3075
cmp rdi, 4
jb 0x1400a305c
mov dword [r15], eax
jmp 0x1400a307b
mov r8, rdi
xor edx, edx
mov rcx, r15
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], Ordinal_35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov esi, r12d
add rdi, 0xfffffffffffffffc
lea rcx, [r15 + 4]
test r12d, r12d
je 0x1400a30ee
test rcx, rcx
jne 0x1400a309e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400a30e8
mov r15, qword [rsp + 0x50]
test r15, r15
je 0x1400a30ba
cmp rdi, rsi
jb 0x1400a30ba
mov r8, rsi
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400a30ee
mov r8, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
test r15, r15
jne 0x1400a30d7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400a30e8
cmp rdi, rsi
jae 0x1400a30ee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], Ordinal_35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
lea eax, [r12 + 4]
movsxd rcx, eax
add rbx, rcx
mov edi, 0x4000
sub rdi, rbx
lea r12, [rbp + 0x30]
add r12, rbx
mov rsi, qword [rsp + 0x60]
add rsi, 0x30
jne 0x1400a3118
mov rax, r14
jmp 0x1400a3126
mov edx, 0x104
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
lea r15d, [rax + rax]
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_htonl]
test r12, r12
jne 0x1400a3146
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400a316b
cmp rdi, 4
jb 0x1400a3152
mov dword [r12], eax
jmp 0x1400a3171
mov r8, rdi
xor edx, edx
mov rcx, r12
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], Ordinal_35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
add rdi, 0xfffffffffffffffc
lea rcx, [r12 + 4]
test r15, r15
je 0x1400a31dd
test rcx, rcx
jne 0x1400a3192
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400a31d7
test rsi, rsi
je 0x1400a31a9
cmp rdi, r15
jb 0x1400a31a9
mov r8, r15
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400a31dd
mov r8, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
test rsi, rsi
jne 0x1400a31c6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400a31d7
cmp rdi, r15
jae 0x1400a31dd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], Ordinal_35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
lea r8d, [r15 + 4]
add r8d, ebx
lea rdx, [rbp + 0x30]
mov rcx, qword [rsp + 0x48]
call qword [0x140267ea0]
mov dword [rsp + 0x44], r13d
jmp 0x1400a34ad
test ebx, ebx
je 0x1400a34a4
xor edx, edx
mov r8d, 0x3fd
lea rcx, [rbp + 0x33]
call sub.VCRUNTIME140.dll_memset
mov word [rbp + 0x30], 0x70b
mov byte [rbp + 0x32], 4
test r15, r15
jne 0x1400a322c
mov ebx, r14d
xor ecx, ecx
jmp 0x1400a323f
mov edx, 0x104
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
lea ebx, [rax + rax]
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp + 0x33], eax
lea rcx, [rbp + 0x37]
test rbx, rbx
je 0x1400a32a7
test r15, r15
je 0x1400a326c
cmp rbx, 0x3ff9
ja 0x1400a326c
mov r8, rbx
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400a32a7
xor edx, edx
mov r8d, 0x3ff9
call sub.VCRUNTIME140.dll_memset
test r15, r15
jne 0x1400a328c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400a32a1
cmp rbx, 0x3ff9
jbe 0x1400a32a7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], Ordinal_35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
lea eax, [rbx + 4]
movsxd rbx, eax
add rbx, 3
mov edi, 0x4000
sub rdi, rbx
lea r15, [rbp + 0x30]
add r15, rbx
test rsi, rsi
jne 0x1400a32ca
mov rax, r14
jmp 0x1400a32d8
mov edx, 0x104
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
lea r12d, [rax + rax]
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_htonl]
test r15, r15
jne 0x1400a32f8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400a331c
cmp rdi, 4
jb 0x1400a3303
mov dword [r15], eax
jmp 0x1400a3322
mov r8, rdi
xor edx, edx
mov rcx, r15
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], Ordinal_35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov esi, r12d
add rdi, 0xfffffffffffffffc
lea rcx, [r15 + 4]
test r12d, r12d
je 0x1400a3395
test rcx, rcx
jne 0x1400a3345
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400a338f
mov r15, qword [rsp + 0x50]
test r15, r15
je 0x1400a3361
cmp rdi, rsi
jb 0x1400a3361
mov r8, rsi
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400a3395
mov r8, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
test r15, r15
jne 0x1400a337e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400a338f
cmp rdi, rsi
jae 0x1400a3395
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], Ordinal_35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
lea eax, [r12 + 4]
movsxd rcx, eax
add rbx, rcx
mov edi, 0x4000
sub rdi, rbx
lea r12, [rbp + 0x30]
add r12, rbx
mov rsi, qword [rsp + 0x60]
add rsi, 0x30
jne 0x1400a33bf
mov rax, r14
jmp 0x1400a33cd
mov edx, 0x104
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
lea r15d, [rax + rax]
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_htonl]
test r12, r12
jne 0x1400a33ed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400a3412
cmp rdi, 4
jb 0x1400a33f9
mov dword [r12], eax
jmp 0x1400a3418
mov r8, rdi
xor edx, edx
mov rcx, r12
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], Ordinal_35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
add rdi, 0xfffffffffffffffc
lea rcx, [r12 + 4]
test r15, r15
je 0x1400a3484
test rcx, rcx
jne 0x1400a3439
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400a347e
test rsi, rsi
je 0x1400a3450
cmp rdi, r15
jb 0x1400a3450
mov r8, r15
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400a3484
mov r8, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
test rsi, rsi
jne 0x1400a346d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400a347e
cmp rdi, r15
jae 0x1400a3484
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], Ordinal_35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
lea r8d, [r15 + 4]
add r8d, ebx
lea rdx, [rbp + 0x30]
mov rcx, qword [rsp + 0x48]
call qword [0x140267ea0]
mov dword [rsp + 0x44], r13d
mov r12, qword [rsp + 0x60]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r13d, 0x4000
cmp dword [rsp + 0x44], 0
jne case.0x1400a1e9b.9
xor edx, edx
mov r8d, 0x3fd
lea rcx, [rbp + 0x33]
call sub.VCRUNTIME140.dll_memset
mov word [rbp + 0x30], 0x70b
mov byte [rbp + 0x32], 3
mov rdi, qword [rbp - 0x20]
test rdi, rdi
jne 0x1400a34e9
mov ebx, r14d
xor ecx, ecx
jmp 0x1400a34fc
mov edx, 0x104
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
lea ebx, [rax + rax]
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp + 0x33], eax
lea rcx, [rbp + 0x37]
test rbx, rbx
je 0x1400a3564
test rdi, rdi
je 0x1400a3529
cmp rbx, 0x3ff9
ja 0x1400a3529
mov r8, rbx
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400a3564
xor edx, edx
mov r8d, 0x3ff9
call sub.VCRUNTIME140.dll_memset
test rdi, rdi
jne 0x1400a3549
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400a355e
cmp rbx, 0x3ff9
jbe 0x1400a3564
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], Ordinal_35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
lea eax, [rbx + 4]
movsxd rdi, eax
add rdi, 3
sub r13, rdi
lea rsi, [rbp + 0x30]
add rsi, rdi
mov r12, qword [rsp + 0x50]
test r12, r12
je 0x1400a3593
mov edx, 0x104
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov r14, rax
lea r15d, [r14 + r14]
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_htonl]
test rsi, rsi
jne 0x1400a35b3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400a35d6
cmp r13, 4
jb 0x1400a35bd
mov dword [rsi], eax
jmp 0x1400a35dc
mov r8, r13
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], Ordinal_35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov ebx, r15d
lea r14, [r13 - 4]
lea rcx, [rsi + 4]
test r15d, r15d
je 0x1400a363c
test rcx, rcx
jne 0x1400a35ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400a3636
test r12, r12
je 0x1400a3616
cmp r14, rbx
jb 0x1400a3616
mov r8, rbx
mov rdx, r12
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400a363c
mov r8, r14
xor edx, edx
call sub.VCRUNTIME140.dll_memset
test r12, r12
je 0x1400a35f1
cmp r14, rbx
jae 0x1400a363c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], Ordinal_35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
lea r8d, [r15 + 4]
add r8d, edi
lea rdx, [rbp + 0x30]
mov rcx, qword [rsp + 0x48]
call qword [0x140267ea0]
jmp case.0x1400a1e9b.9
movzx ecx, word [rdx + 1]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx ebx, ax
cmp ax, 7
jbe 0x1400a366f
mov ebx, 7
mov esi, 0x4000
mov edx, esi
mov r15d, 1
mov ecx, r15d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov r13, rax
test rax, rax
jne 0x1400a3695
mov eax, r15d
jmp 0x1400a3821
mov word [rax], 0x60b
mov r8d, 3
movzx edx, bx
mov qword [rsp + 0x50], rdx
test rdx, rdx
je 0x1400a380a
xor r14d, r14d
mov eax, edx
nop word [rax + rax]
movzx edx, byte [r14 + rdi + 3]
cmp edx, 6
ja case.default.0x1400a36e1
lea r9, [0x140000000]
mov ecx, dword [r9 + rdx*4 + 0xa387c]
add rcx, r9
jmp rcx
lea rbx, [0x1402689cc]
jmp 0x1400a3720
lea rbx, [0x140268bd4]
jmp 0x1400a3720
lea rbx, [0x140268fe4]
jmp 0x1400a3720
lea rbx, [0x1402691ec]
jmp 0x1400a3720
lea rbx, [0x1402693f4]
jmp 0x1400a3720
lea rbx, [0x1402695fc]
jmp 0x1400a3720
lea rbx, [0x140268ddc]
inc byte [r13 + 2]
mov eax, r8d
mov byte [rax + r13], dl
inc r8d
mov dword [rsp + 0x40], r8d
mov eax, r8d
sub rsi, rax
lea r15, [r8 + r13]
mov edx, 0x208
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
lea r12d, [rax + rax]
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_htonl]
test r15, r15
jne 0x1400a376b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400a378f
cmp rsi, 4
jb 0x1400a3776
mov dword [r15], eax
jmp 0x1400a3795
mov r8, rsi
xor edx, edx
mov rcx, r15
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], Ordinal_35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov r8d, r12d
add rsi, 0xfffffffffffffffc
lea rcx, [r15 + 4]
test r12d, r12d
je 0x1400a37e3
test rcx, rcx
jne 0x1400a37b8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
jmp 0x1400a37dd
cmp rsi, r8
jb 0x1400a37c7
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400a37e3
mov r8, rsi
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], Ordinal_35
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov r8d, dword [rsp + 0x40]
add r8d, 4
add r8d, r12d
mov esi, 0x4000
mov rax, qword [rsp + 0x50]
inc r14
cmp r14, rax
jl 0x1400a36c0
mov r12, qword [rsp + 0x48]
mov rdx, r13
mov rcx, r12
call qword [0x140267ea0]
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rcx, qword [rbp + 0x850]
xor rcx, rsp
call fcn.1401d0310
mov rbx, qword [rsp + 0x9b8]
add rsp, 0x960
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret