Function at 0x18001f3e4
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 [0x1800a8120]
xor rax, rsp
mov qword [rsp + 0xb90], rax
mov r12d, r8d
mov ebp, edx
mov rsi, rcx
lea rbx, case.0x180031f8c.6
or r13, 0xffffffffffffffff
movabs rdi, 0x6666666666666667
xor r15d, r15d
test dl, 1
je 0x18001f5a5
mov eax, r8d
shr eax, 4
and eax, 1
jne 0x18001f4c7
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 0x18001f5a5
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 0x18001f4a4
call fcn.18005e62c
mov rax, qword [rsi + 0x78]
cmp qword [rax + 0x20], 8
jb 0x18001f4b5
mov rcx, qword [rax + 8]
jmp 0x18001f4b9
lea rcx, [rax + 8]
call fcn.18001b454
cmp eax, r15d
je 0x18001f5a5
mov rcx, rbx
mov rax, qword [case.0x180031f8c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea r8, [rsp + 0x78]
mov edx, 0x1f41
lea rcx, [0x1800aa320]
call fcn.18002552c
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.1800038e0
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x1a8]
call fcn.18002273c
nop
cmp qword [rsp + 0x1c8], 8
jb 0x18001f562
mov rcx, qword [rsp + 0x1b0]
call fcn.18005c410
mov qword [rsp + 0x110], 1
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x110]
call fcn.180021ffc
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 0x18001f5a5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
mov r14d, r12d
and r14d, 2
je 0x18001fc8a
mov rcx, rbx
mov rax, qword [case.0x180031f8c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0xa8], rax
test bpl, 2
je 0x18001f6bf
mov rcx, rbx
mov rax, qword [case.0x180031f8c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0xa0], rax
lea r8, [rsp + 0xa0]
mov edx, 0x1f46
lea rcx, [0x1800aa320]
call fcn.18002552c
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.1800038e0
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x130]
call fcn.18002273c
nop
cmp qword [rsp + 0x150], 8
jb 0x18001f679
mov rcx, qword [rsp + 0x138]
call fcn.18005c410
mov qword [rsp + 0x100], 2
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x100]
call fcn.180021ffc
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 0x18001f6bf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
test bpl, 4
je 0x18001f7a7
mov rcx, rbx
mov rax, qword [case.0x180031f8c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x68]
mov edx, 0x1f47
lea rcx, [0x1800aa320]
call fcn.18002552c
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.1800038e0
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x1f8]
call fcn.18002273c
nop
cmp qword [rsp + 0x218], 8
jb 0x18001f764
mov rcx, qword [rsp + 0x200]
call fcn.18005c410
mov qword [rsp + 0xe0], 4
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0xe0]
call fcn.180021ffc
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 0x18001f7a7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
bt ebp, 0xc
jae 0x18001f89b
mov rcx, rbx
mov rax, qword [case.0x180031f8c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x98], rax
lea r8, [rsp + 0x98]
mov edx, 0x1f5a
lea rcx, [0x1800aa320]
call fcn.18002552c
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.1800038e0
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x2e8]
call fcn.18002273c
nop
cmp qword [rsp + 0x308], 8
jb 0x18001f855
mov rcx, qword [rsp + 0x2f0]
call fcn.18005c410
mov qword [rsp + 0x120], 0x1000
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x120]
call fcn.180021ffc
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 0x18001f89b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
test bpl, 8
je 0x18001fb1a
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 0x18001fb24
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 0x18001f8fe
call fcn.18005e62c
mov rax, qword [rsi + 0x78]
cmp qword [rax + 0x20], 8
jb 0x18001f90f
mov rcx, qword [rax + 8]
jmp 0x18001f913
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 0x18001f966
mov word [rdi], r15w
xor edx, edx
lea rcx, [rsp + 0x350]
call fcn.180020aec
mov rcx, rbx
mov rax, qword [case.0x180031f8c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x30]
mov edx, 0x1f48
lea rcx, [0x1800aa320]
call fcn.18002552c
mov edx, 0x104
lea rcx, [rsp + 0x350]
call fcn.18001af14
mov rdx, qword [rsp + 0x30]
cmp dword [rdx - 8], 1
jle 0x18001f9d0
mov edx, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.180004080
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.180003c60
lea rcx, [rsp + 0x770]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x340], rax
cmp rax, r15
jne 0x18001fa3a
mov ecx, 0x8007000e
call fcn.180002f70
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.1800038e0
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x248]
call fcn.18002273c
nop
cmp qword [rsp + 0x268], 8
jb 0x18001faa7
mov rcx, qword [rsp + 0x250]
call fcn.18005c410
mov qword [rsp + 0xf0], 8
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0xf0]
call fcn.180021ffc
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 0x18001fb07
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
lea rbx, case.0x180031f8c.6
movabs rdi, 0x6666666666666667
jmp 0x18001fb24
lea rbx, case.0x180031f8c.6
movabs rdi, 0x6666666666666667
jmp 0x18001fb24
movabs rdi, 0x6666666666666667
test bpl, 0x10
je 0x18001fc65
lea r8, str.SmartExtr
lea rdx, [0x1800893c4]
lea rcx, [rsp + 0xa8]
call fcn.180010c8c
mov rcx, rbx
mov rax, qword [case.0x180031f8c.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 0x18001fb9c
lea r8, [rsp + 0x48]
mov edx, 0x1f49
lea rcx, [0x1800aa320]
call fcn.18002552c
jmp 0x18001fbb2
lea r8, [rsp + 0x48]
mov edx, 0x1f4a
lea rcx, [0x1800aa320]
call fcn.18002552c
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.1800038e0
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x310]
call fcn.18002273c
nop
cmp qword [rsp + 0x330], 8
jb 0x18001fc21
mov rcx, qword [rsp + 0x318]
call fcn.18005c410
mov qword [rsp + 0xc8], reloc.WS2_32.dll_recv
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0xc8]
call fcn.180021ffc
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 0x18001fc65
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 0x18001fc8a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
test r12b, 1
je 0x180020296
test bpl, 0x20
je 0x18001fd7c
mov rcx, rbx
mov rax, qword [case.0x180031f8c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x50]
mov edx, 0x1f45
lea rcx, [0x1800aa320]
call fcn.18002552c
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.1800038e0
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x298]
call fcn.18002273c
nop
cmp qword [rsp + 0x2b8], 8
jb 0x18001fd39
mov rcx, qword [rsp + 0x2a0]
call fcn.18005c410
mov qword [rsp + 0xd0], reloc.WLDAP32.dll_Ordinal_32
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0xd0]
call fcn.180021ffc
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 0x18001fd7c
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.18001f364
bt ebp, 8
jae 0x18001fe80
mov rcx, rbx
mov rax, qword [case.0x180031f8c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x90], rax
lea r8, [rsp + 0x90]
mov edx, 0x1f52
lea rcx, [0x1800aa320]
call fcn.18002552c
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.1800038e0
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x158]
call fcn.18002273c
nop
cmp qword [rsp + 0x178], 8
jb 0x18001fe3a
mov rcx, qword [rsp + 0x160]
call fcn.18005c410
mov qword [rsp + 0xd8], 0x100
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0xd8]
call fcn.180021ffc
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 0x18001fe80
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
test bpl, bpl
jns 0x1800200f3
mov rcx, rbx
mov rax, qword [case.0x180031f8c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x20]
mov edx, 0x1f53
lea rcx, [0x1800aa320]
call fcn.18002552c
xor eax, eax
mov rcx, r13
lea rdx, [0x1800892b4]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x20]
call fcn.180010ad8
xor eax, eax
mov rcx, r13
lea rdx, [0x1800892dc]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x20]
call fcn.180010ad8
xor r9d, r9d
mov edi, 0x104
mov r8d, edi
lea rdx, [rsp + 0x980]
mov rcx, rsi
call fcn.18001b0b4
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.18001af14
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.180010ad8
xor eax, eax
mov rcx, r13
lea rdx, [0x180089364]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x20]
call fcn.180010ad8
xor eax, eax
mov rcx, r13
lea rdx, [0x1800893cc]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x20]
call fcn.180010ad8
mov rcx, rbx
mov rax, qword [case.0x180031f8c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x88], rax
lea r8, [rsp + 0x88]
mov edx, 0x1f54
lea rcx, [0x1800aa320]
call fcn.18002552c
mov rdx, qword [rsp + 0x88]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x20]
call fcn.180010ad8
mov rdx, qword [rsp + 0x20]
mov ecx, 1
sub ecx, dword [rdx - 8]
mov eax, dword [rdx - 0xc]
or eax, ecx
jge 0x180020020
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.180003fc0
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.1800038e0
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x180]
call fcn.18002273c
nop
cmp qword [rsp + 0x1a0], 8
jb 0x18002008a
mov rcx, qword [rsp + 0x188]
call fcn.18005c410
mov qword [rsp + 0xe8], 0x80
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0xe8]
call fcn.180021ffc
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 0x1800200d1
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 0x1800200f3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
lea rdx, [0x1800893d0]
lea rcx, [rsp + 0xc0]
call fcn.1800035b0
nop
mov r8d, 1
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0xb0]
call fcn.180022a1c
nop
lea rcx, [rsp + 0xb0]
call fcn.18002298c
mov r13d, eax
mov ebx, r15d
cmp eax, r15d
jle 0x18002025f
lea rcx, case.0x180031f8c.6
mov rdx, qword [case.0x180031f8c.6]
call qword [rdx + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0xb8], rax
mov r9d, ebx
lea r8, [0x1800893e8]
lea rdx, [0x180089400]
lea rcx, [rsp + 0xb8]
call fcn.180010c8c
mov r8d, 1
mov rdi, qword [rsp + 0xb8]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.180022a1c
nop
mov dword [rsp + 0x40], r15d
lea r8, [rsp + 0x40]
lea rdx, [0x180089410]
lea rcx, [rsp + 0x38]
call fcn.18002294c
cmp dword [rsp + 0x40], r15d
je 0x1800201e2
lea rcx, [rsp + 0x38]
call fcn.1800229fc
nop
lea rdx, [rdi - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, r15d
jg 0x180020254
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
jmp 0x180020254
mov dword [rsp + 0x28], r15d
lea r8, [rsp + 0x28]
lea rdx, str.AppendMenu
lea rcx, [rsp + 0x38]
call fcn.18002294c
cmp dword [rsp + 0x28], r15d
jne 0x18002022d
lea rcx, [rsp + 0x38]
call fcn.1800229fc
nop
lea rdx, [rdi - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, r15d
jg 0x180020254
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
jmp 0x180020254
lea rcx, [rsp + 0x38]
call fcn.1800229fc
nop
lea rdx, [rdi - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, r15d
jg 0x180020254
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
inc ebx
cmp ebx, r13d
jl 0x180020140
lea rcx, [rsp + 0xb0]
call fcn.1800229fc
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 0x180020296
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
cmp r14d, r15d
je 0x180020395
bt ebp, 9
jae 0x18002038e
mov qword [rsp + 0xf8], 0x200
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0xf8]
call fcn.180021ffc
lea rcx, case.0x180031f8c.6
mov rax, qword [case.0x180031f8c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x58]
mov edx, 0x1f55
lea rcx, [0x1800aa320]
call fcn.18002552c
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.1800038e0
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x1d0]
call fcn.18002273c
nop
cmp qword [rsp + 0x1f0], 8
jb 0x18002036a
mov rcx, qword [rsp + 0x1d8]
call fcn.18005c410
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 0x18002039a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
jmp 0x18002039a
mov ebx, 7
jmp 0x18002039a
mov ebx, 7
cmp dword [rsi], r15d
je 0x180020509
bt ebp, 0x17
jae 0x180020515
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 0x18002051f
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 0x180020406
call fcn.18005e62c
mov rax, qword [rsi + 0x78]
cmp qword [rax + 0x20], 8
jb 0x180020417
mov rcx, qword [rax + 8]
jmp 0x18002041b
lea rcx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x18002051f
lea rcx, case.0x180031f8c.6
mov rax, qword [case.0x180031f8c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0x60]
mov edx, 0x1f59
lea rcx, [0x1800aa320]
call fcn.18002552c
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.1800038e0
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x220]
call fcn.18002273c
nop
cmp qword [rsp + 0x240], 8
jb 0x1800204c4
mov rcx, qword [rsp + 0x228]
call fcn.18005c410
mov qword [rsp + 0x108], 0x800000
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x108]
call fcn.180021ffc
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 0x18002051f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
jmp 0x18002051f
movabs r14, 0x6666666666666667
jmp 0x18002051f
movabs r14, 0x6666666666666667
test r12b, 4
je 0x180020616
bt ebp, 0x10
jae 0x180020616
lea rcx, case.0x180031f8c.6
mov rax, qword [case.0x180031f8c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0x70]
mov edx, 0x1f42
lea rcx, [0x1800aa320]
call fcn.18002552c
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.1800038e0
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x270]
call fcn.18002273c
nop
cmp qword [rsp + 0x290], 8
jb 0x1800205ce
mov rcx, qword [rsp + 0x278]
call fcn.18005c410
mov qword [rsp + 0x118], 0x10000
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x118]
call fcn.180021ffc
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 0x180020616
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
test r12b, 8
je 0x180020742
bt ebp, 0x12
jae 0x180020742
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 0x180020742
lea rcx, case.0x180031f8c.6
mov rax, qword [case.0x180031f8c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x80], rax
lea r8, [rsp + 0x80]
mov edx, 0x1f44
lea rcx, [0x1800aa320]
call fcn.18002552c
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.1800038e0
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x2c0]
call fcn.18002273c
nop
cmp qword [rsp + 0x2e0], 8
jb 0x1800206f7
mov rcx, qword [rsp + 0x2c8]
call fcn.18005c410
mov qword [rsp + 0x128], 0x40000
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x128]
call fcn.180021ffc
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 0x180020742
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.18005cb30
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