Function at 0x18001ed50
Capabilities:
Get file attributes

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xba0
mov qword [rsp + 0x338], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1800a7120]
xor rax, rsp
mov qword [rsp + 0xb90], rax
mov r12d, r8d
mov ebp, edx
mov rsi, rcx
lea rbx, case.0x18003191c.6
or r13, 0xffffffffffffffff
movabs rdi, 0x6666666666666667
xor r15d, r15d
test dl, 1
je 0x18001ef11
mov eax, r8d
shr eax, 4
and eax, 1
jne 0x18001ee33
mov rcx, qword [rcx + 0x80]
sub rcx, qword [rsi + 0x78]
mov rax, rdi
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
jne 0x18001ef11
mov rcx, qword [rsi + 0x80]
sub rcx, qword [rsi + 0x78]
mov rax, rdi
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x18001ee10
call fcn.18005dfbc
mov rax, qword [rsi + 0x78]
cmp qword [rax + 0x20], 8
jb 0x18001ee21
mov rcx, qword [rax + 8]
jmp 0x18001ee25
lea rcx, [rax + 8]
call fcn.18001adc0
cmp eax, r15d
je 0x18001ef11
mov rcx, rbx
mov rax, qword [case.0x18003191c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea r8, [rsp + 0x78]
mov edx, 0x1f41
lea rcx, [0x1800a9320]
call fcn.180024ec4
mov qword [rsp + 0x1c8], 7
mov qword [rsp + 0x1c0], r15
mov word [rsp + 0x1b0], r15w
xor eax, eax
mov rcx, r13
mov rdx, qword [rsp + 0x78]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x1a8]
call fcn.180003900
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x1a8]
call fcn.1800220b8
nop
cmp qword [rsp + 0x1c8], 8
jb 0x18001eece
mov rcx, qword [rsp + 0x1b0]
call fcn.18005bda0
mov qword [rsp + 0x110], 1
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x110]
call fcn.180021978
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x18001ef11
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
mov r14d, r12d
and r14d, 2
je 0x18001f5f6
mov rcx, rbx
mov rax, qword [case.0x18003191c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0xa8], rax
test bpl, 2
je 0x18001f02b
mov rcx, rbx
mov rax, qword [case.0x18003191c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0xa0], rax
lea r8, [rsp + 0xa0]
mov edx, 0x1f46
lea rcx, [0x1800a9320]
call fcn.180024ec4
mov qword [rsp + 0x150], 7
mov qword [rsp + 0x148], r15
mov word [rsp + 0x138], r15w
xor eax, eax
mov rcx, r13
mov rdx, qword [rsp + 0xa0]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x130]
call fcn.180003900
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x130]
call fcn.1800220b8
nop
cmp qword [rsp + 0x150], 8
jb 0x18001efe5
mov rcx, qword [rsp + 0x138]
call fcn.18005bda0
mov qword [rsp + 0x100], 2
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x100]
call fcn.180021978
nop
mov rdx, qword [rsp + 0xa0]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x18001f02b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
test bpl, 4
je 0x18001f113
mov rcx, rbx
mov rax, qword [case.0x18003191c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x68]
mov edx, 0x1f47
lea rcx, [0x1800a9320]
call fcn.180024ec4
mov qword [rsp + 0x218], 7
mov qword [rsp + 0x210], r15
mov word [rsp + 0x200], r15w
xor eax, eax
mov rcx, r13
mov rdx, qword [rsp + 0x68]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x1f8]
call fcn.180003900
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x1f8]
call fcn.1800220b8
nop
cmp qword [rsp + 0x218], 8
jb 0x18001f0d0
mov rcx, qword [rsp + 0x200]
call fcn.18005bda0
mov qword [rsp + 0xe0], 4
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0xe0]
call fcn.180021978
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x18001f113
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
bt ebp, 0xc
jae 0x18001f207
mov rcx, rbx
mov rax, qword [case.0x18003191c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x98], rax
lea r8, [rsp + 0x98]
mov edx, 0x1f5a
lea rcx, [0x1800a9320]
call fcn.180024ec4
mov qword [rsp + 0x308], 7
mov qword [rsp + 0x300], r15
mov word [rsp + 0x2f0], r15w
xor eax, eax
mov rcx, r13
mov rdx, qword [rsp + 0x98]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x2e8]
call fcn.180003900
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x2e8]
call fcn.1800220b8
nop
cmp qword [rsp + 0x308], 8
jb 0x18001f1c1
mov rcx, qword [rsp + 0x2f0]
call fcn.18005bda0
mov qword [rsp + 0x120], 0x1000
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x120]
call fcn.180021978
nop
mov rdx, qword [rsp + 0x98]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x18001f207
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
test bpl, 8
je 0x18001f486
mov rcx, qword [rsi + 0x80]
sub rcx, qword [rsi + 0x78]
movabs rdi, 0x6666666666666667
mov rax, rdi
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
jne 0x18001f490
mov rcx, qword [rsi + 0x80]
sub rcx, qword [rsi + 0x78]
mov rax, rdi
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x18001f26a
call fcn.18005dfbc
mov rax, qword [rsi + 0x78]
cmp qword [rax + 0x20], 8
jb 0x18001f27b
mov rcx, qword [rax + 8]
jmp 0x18001f27f
lea rcx, [rax + 8]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rdx, rax
lea rcx, [rsp + 0x350]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x350]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov word [rax], r15w
lea rcx, [rsp + 0x350]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov rdi, rax
lea rdx, str..tar
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, r15d
jne 0x18001f2d2
mov word [rdi], r15w
xor edx, edx
lea rcx, [rsp + 0x350]
call fcn.180020458
mov rcx, rbx
mov rax, qword [case.0x18003191c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x30]
mov edx, 0x1f48
lea rcx, [0x1800a9320]
call fcn.180024ec4
mov edx, 0x104
lea rcx, [rsp + 0x350]
call fcn.18001a880
mov rdx, qword [rsp + 0x30]
cmp dword [rdx - 8], 1
jle 0x18001f33c
mov edx, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.1800040a0
mov rdx, qword [rsp + 0x30]
lea r8, [rsp + 0x350]
lea rcx, [rsp + 0x770]
call qword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov rcx, r13
lea rdi, [rsp + 0x350]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x350]
lea rcx, [rsi + 0x338]
call fcn.180003c80
lea rcx, [rsp + 0x770]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x340], rax
cmp rax, r15
jne 0x18001f3a6
mov ecx, 0x8007000e
call fcn.180002f90
nop
mov qword [rsp + 0x268], 7
mov qword [rsp + 0x260], r15
mov word [rsp + 0x250], r15w
xor eax, eax
mov rcx, r13
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbx
lea rcx, [rsp + 0x248]
call fcn.180003900
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x248]
call fcn.1800220b8
nop
cmp qword [rsp + 0x268], 8
jb 0x18001f413
mov rcx, qword [rsp + 0x250]
call fcn.18005bda0
mov qword [rsp + 0xf0], 8
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0xf0]
call fcn.180021978
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x18001f473
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
lea rbx, case.0x18003191c.6
movabs rdi, 0x6666666666666667
jmp 0x18001f490
lea rbx, case.0x18003191c.6
movabs rdi, 0x6666666666666667
jmp 0x18001f490
movabs rdi, 0x6666666666666667
test bpl, 0x10
je 0x18001f5d1
lea r8, str.SmartExtr
lea rdx, [0x1800882c4]
lea rcx, [rsp + 0xa8]
call fcn.180010c18
mov rcx, rbx
mov rax, qword [case.0x18003191c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x48], rax
mov rcx, qword [rsi + 0x80]
sub rcx, qword [rsi + 0x78]
mov rax, rdi
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
jne 0x18001f508
lea r8, [rsp + 0x48]
mov edx, 0x1f49
lea rcx, [0x1800a9320]
call fcn.180024ec4
jmp 0x18001f51e
lea r8, [rsp + 0x48]
mov edx, 0x1f4a
lea rcx, [0x1800a9320]
call fcn.180024ec4
mov qword [rsp + 0x330], 7
mov qword [rsp + 0x328], r15
mov word [rsp + 0x318], r15w
xor eax, eax
mov rcx, r13
mov rdx, qword [rsp + 0x48]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x310]
call fcn.180003900
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x310]
call fcn.1800220b8
nop
cmp qword [rsp + 0x330], 8
jb 0x18001f58d
mov rcx, qword [rsp + 0x318]
call fcn.18005bda0
mov qword [rsp + 0xc8], reloc.WS2_32.dll_recv
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0xc8]
call fcn.180021978
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x18001f5d1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov rdx, qword [rsp + 0xa8]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x18001f5f6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
test r12b, 1
je 0x18001fc02
test bpl, 0x20
je 0x18001f6e8
mov rcx, rbx
mov rax, qword [case.0x18003191c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x50]
mov edx, 0x1f45
lea rcx, [0x1800a9320]
call fcn.180024ec4
mov qword [rsp + 0x2b8], 7
mov qword [rsp + 0x2b0], r15
mov word [rsp + 0x2a0], r15w
xor eax, eax
mov rcx, r13
mov rdx, qword [rsp + 0x50]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x298]
call fcn.180003900
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x298]
call fcn.1800220b8
nop
cmp qword [rsp + 0x2b8], 8
jb 0x18001f6a5
mov rcx, qword [rsp + 0x2a0]
call fcn.18005bda0
mov qword [rsp + 0xd0], reloc.WLDAP32.dll_Ordinal_32
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0xd0]
call fcn.180021978
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x18001f6e8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
mov edx, ebp
shr edx, 0xb
and edx, 1
mov rcx, rsi
call fcn.18001ecd0
bt ebp, 8
jae 0x18001f7ec
mov rcx, rbx
mov rax, qword [case.0x18003191c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x90], rax
lea r8, [rsp + 0x90]
mov edx, 0x1f52
lea rcx, [0x1800a9320]
call fcn.180024ec4
mov qword [rsp + 0x178], 7
mov qword [rsp + 0x170], r15
mov word [rsp + 0x160], r15w
xor eax, eax
mov rcx, r13
mov rdx, qword [rsp + 0x90]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x158]
call fcn.180003900
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x158]
call fcn.1800220b8
nop
cmp qword [rsp + 0x178], 8
jb 0x18001f7a6
mov rcx, qword [rsp + 0x160]
call fcn.18005bda0
mov qword [rsp + 0xd8], 0x100
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0xd8]
call fcn.180021978
nop
mov rdx, qword [rsp + 0x90]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x18001f7ec
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
test bpl, bpl
jns 0x18001fa5f
mov rcx, rbx
mov rax, qword [case.0x18003191c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x20]
mov edx, 0x1f53
lea rcx, [0x1800a9320]
call fcn.180024ec4
xor eax, eax
mov rcx, r13
lea rdx, [0x1800881b4]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x20]
call fcn.180010a64
xor eax, eax
mov rcx, r13
lea rdx, [0x1800881dc]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x20]
call fcn.180010a64
xor r9d, r9d
mov edi, 0x104
mov r8d, edi
lea rdx, [rsp + 0x980]
mov rcx, rsi
call fcn.18001aa20
lea rcx, [rsp + 0x980]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rdx, rax
lea rcx, [rsp + 0x560]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, edi
lea rcx, [rsp + 0x560]
call fcn.18001a880
xor eax, eax
mov rcx, r13
lea rdi, [rsp + 0x560]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x560]
lea rcx, [rsp + 0x20]
call fcn.180010a64
xor eax, eax
mov rcx, r13
lea rdx, [0x180088264]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x20]
call fcn.180010a64
xor eax, eax
mov rcx, r13
lea rdx, [0x1800882cc]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x20]
call fcn.180010a64
mov rcx, rbx
mov rax, qword [case.0x18003191c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x88], rax
lea r8, [rsp + 0x88]
mov edx, 0x1f54
lea rcx, [0x1800a9320]
call fcn.180024ec4
mov rdx, qword [rsp + 0x88]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x20]
call fcn.180010a64
mov rdx, qword [rsp + 0x20]
mov ecx, 1
sub ecx, dword [rdx - 8]
mov eax, dword [rdx - 0xc]
or eax, ecx
jge 0x18001f98c
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.180003fe0
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x1a0], 7
mov qword [rsp + 0x198], r15
mov word [rsp + 0x188], r15w
xor eax, eax
mov rcx, r13
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x180]
call fcn.180003900
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x180]
call fcn.1800220b8
nop
cmp qword [rsp + 0x1a0], 8
jb 0x18001f9f6
mov rcx, qword [rsp + 0x188]
call fcn.18005bda0
mov qword [rsp + 0xe8], 0x80
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0xe8]
call fcn.180021978
nop
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x18001fa3d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x18001fa5f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
lea rdx, [0x1800882d0]
lea rcx, [rsp + 0xc0]
call fcn.1800035d0
nop
mov r8d, 1
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0xb0]
call fcn.180022398
nop
lea rcx, [rsp + 0xb0]
call fcn.180022308
mov r13d, eax
mov ebx, r15d
cmp eax, r15d
jle 0x18001fbcb
lea rcx, case.0x18003191c.6
mov rdx, qword [case.0x18003191c.6]
call qword [rdx + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0xb8], rax
mov r9d, ebx
lea r8, [0x1800882e8]
lea rdx, [0x180088300]
lea rcx, [rsp + 0xb8]
call fcn.180010c18
mov r8d, 1
mov rdi, qword [rsp + 0xb8]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.180022398
nop
mov dword [rsp + 0x40], r15d
lea r8, [rsp + 0x40]
lea rdx, [0x180088310]
lea rcx, [rsp + 0x38]
call fcn.1800222c8
cmp dword [rsp + 0x40], r15d
je 0x18001fb4e
lea rcx, [rsp + 0x38]
call fcn.180022378
nop
lea rdx, [rdi - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, r15d
jg 0x18001fbc0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
jmp 0x18001fbc0
mov dword [rsp + 0x28], r15d
lea r8, [rsp + 0x28]
lea rdx, str.AppendMenu
lea rcx, [rsp + 0x38]
call fcn.1800222c8
cmp dword [rsp + 0x28], r15d
jne 0x18001fb99
lea rcx, [rsp + 0x38]
call fcn.180022378
nop
lea rdx, [rdi - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, r15d
jg 0x18001fbc0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
jmp 0x18001fbc0
lea rcx, [rsp + 0x38]
call fcn.180022378
nop
lea rdx, [rdi - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, r15d
jg 0x18001fbc0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
inc ebx
cmp ebx, r13d
jl 0x18001faac
lea rcx, [rsp + 0xb0]
call fcn.180022378
nop
mov rdx, qword [rsp + 0xc0]
add rdx, 0xffffffffffffffe8
or r13, 0xffffffffffffffff
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x18001fc02
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
cmp r14d, r15d
je 0x18001fd01
bt ebp, 9
jae 0x18001fcfa
mov qword [rsp + 0xf8], 0x200
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0xf8]
call fcn.180021978
lea rcx, case.0x18003191c.6
mov rax, qword [case.0x18003191c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x58]
mov edx, 0x1f55
lea rcx, [0x1800a9320]
call fcn.180024ec4
mov ebx, 7
mov qword [rsp + 0x1f0], rbx
mov qword [rsp + 0x1e8], r15
mov word [rsp + 0x1d8], r15w
xor eax, eax
mov rcx, r13
mov rdx, qword [rsp + 0x58]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x1d0]
call fcn.180003900
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x1d0]
call fcn.1800220b8
nop
cmp qword [rsp + 0x1f0], 8
jb 0x18001fcd6
mov rcx, qword [rsp + 0x1d8]
call fcn.18005bda0
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x18001fd06
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
jmp 0x18001fd06
mov ebx, 7
jmp 0x18001fd06
mov ebx, 7
cmp dword [rsi], r15d
je 0x18001fe75
bt ebp, 0x17
jae 0x18001fe81
mov rcx, qword [rsi + 0x80]
sub rcx, qword [rsi + 0x78]
movabs r14, 0x6666666666666667
mov rax, r14
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
jne 0x18001fe8b
mov rcx, qword [rsi + 0x80]
sub rcx, qword [rsi + 0x78]
mov rax, r14
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x18001fd72
call fcn.18005dfbc
mov rax, qword [rsi + 0x78]
cmp qword [rax + 0x20], 8
jb 0x18001fd83
mov rcx, qword [rax + 8]
jmp 0x18001fd87
lea rcx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x18001fe8b
lea rcx, case.0x18003191c.6
mov rax, qword [case.0x18003191c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0x60]
mov edx, 0x1f59
lea rcx, [0x1800a9320]
call fcn.180024ec4
mov qword [rsp + 0x240], rbx
mov qword [rsp + 0x238], r15
mov word [rsp + 0x228], r15w
xor eax, eax
mov rcx, r13
mov rdx, qword [rsp + 0x60]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x220]
call fcn.180003900
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x220]
call fcn.1800220b8
nop
cmp qword [rsp + 0x240], 8
jb 0x18001fe30
mov rcx, qword [rsp + 0x228]
call fcn.18005bda0
mov qword [rsp + 0x108], 0x800000
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x108]
call fcn.180021978
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x18001fe8b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
jmp 0x18001fe8b
movabs r14, 0x6666666666666667
jmp 0x18001fe8b
movabs r14, 0x6666666666666667
test r12b, 4
je 0x18001ff82
bt ebp, 0x10
jae 0x18001ff82
lea rcx, case.0x18003191c.6
mov rax, qword [case.0x18003191c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0x70]
mov edx, 0x1f42
lea rcx, [0x1800a9320]
call fcn.180024ec4
mov qword [rsp + 0x290], rbx
mov qword [rsp + 0x288], r15
mov word [rsp + 0x278], r15w
xor eax, eax
mov rcx, r13
mov rdx, qword [rsp + 0x70]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x270]
call fcn.180003900
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x270]
call fcn.1800220b8
nop
cmp qword [rsp + 0x290], 8
jb 0x18001ff3a
mov rcx, qword [rsp + 0x278]
call fcn.18005bda0
mov qword [rsp + 0x118], 0x10000
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x118]
call fcn.180021978
inc dword [rsi + 0x120]
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x18001ff82
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
test r12b, 8
je 0x1800200ae
bt ebp, 0x12
jae 0x1800200ae
mov rdx, qword [rsi + 0x80]
sub rdx, qword [rsi + 0x78]
mov rax, r14
imul rdx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
jne 0x1800200ae
lea rcx, case.0x18003191c.6
mov rax, qword [case.0x18003191c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x80], rax
lea r8, [rsp + 0x80]
mov edx, 0x1f44
lea rcx, [0x1800a9320]
call fcn.180024ec4
mov qword [rsp + 0x2e0], rbx
mov qword [rsp + 0x2d8], r15
mov word [rsp + 0x2c8], r15w
xor eax, eax
mov rcx, r13
mov rdx, qword [rsp + 0x80]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x2c0]
call fcn.180003900
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x2c0]
call fcn.1800220b8
nop
cmp qword [rsp + 0x2e0], 8
jb 0x180020063
mov rcx, qword [rsp + 0x2c8]
call fcn.18005bda0
mov qword [rsp + 0x128], 0x40000
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x128]
call fcn.180021978
inc dword [rsi + 0x120]
mov rdx, qword [rsp + 0x80]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
cmp eax, r15d
jg 0x1800200ae
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
xor eax, eax
mov rcx, qword [rsp + 0xb90]
xor rcx, rsp
call fcn.18005c4c0
lea r11, [rsp + 0xba0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret