Function at 0x1400dd390
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
movdqa xmmword [rsp + 0x30], xmm6
mov rsi, r8
mov rdi, rdx
mov rax, qword [rcx]
mov rdx, qword [rcx + 0x10]
mov r8, rax
or r8, rdx
je 0x140038688
test rdx, rdx
je 0x140038190
mov r9, qword [rcx + 0x18]
lea r8, [rdi + rsi]
xor edx, edx
test r9, r9
je 0x14003811f
xor r10d, r10d
mov r11, rdi
jmp 0x1400380b5
lea rbx, [r11 + 1]
inc r10
sub rdx, r11
add rdx, rbx
mov r11, rbx
cmp r9, r10
je 0x140038122
cmp r11, r8
je 0x140038190
movzx ebx, byte [r11]
test bl, bl
jns 0x1400380a0
cmp bl, 0xe0
jb 0x140038113
cmp bl, 0xf0
jb 0x140038119
movzx ebp, byte [r11 + 1]
and ebp, 0x3f
movzx r14d, byte [r11 + 2]
and r14d, 0x3f
movzx r15d, byte [r11 + 3]
and ebx, 7
shl ebx, 0x12
shl ebp, 0xc
shl r14d, 6
or r14d, ebp
and r15d, 0x3f
or r15d, r14d
or r15d, ebx
cmp r15d, 0x110000
je 0x140038190
lea rbx, [r11 + 4]
jmp 0x1400380a4
lea rbx, [r11 + 2]
jmp 0x1400380a4
lea rbx, [r11 + 3]
jmp 0x1400380a4
mov rbx, rdi
cmp rbx, r8
je 0x140038190
movzx r8d, byte [rbx]
test r8b, r8b
jns 0x140038179
cmp r8b, 0xe0
jb 0x140038179
cmp r8b, 0xf0
jb 0x140038179
movzx r9d, byte [rbx + 1]
and r9d, 0x3f
movzx r10d, byte [rbx + 2]
and r10d, 0x3f
movzx r11d, byte [rbx + 3]
and r8d, 7
shl r8d, 0x12
shl r9d, 0xc
shl r10d, 6
or r10d, r9d
and r11d, 0x3f
or r11d, r10d
or r11d, r8d
cmp r11d, 0x110000
je 0x140038190
test rdx, rdx
je 0x14003818d
cmp rdx, rsi
jae 0x14003818b
cmp byte [rdi + rdx], 0xc0
jge 0x14003818d
jmp 0x140038190
jne 0x140038190
mov rsi, rdx
test rax, rax
je 0x140038688
mov r12, qword [rcx + 8]
cmp rsi, 0x20
jae 0x1400381be
mov rdx, rsi
test rsi, rsi
je 0x14003866a
cmp rsi, 1
jne 0x1400381f8
xor edx, edx
xor eax, eax
jmp 0x140038654
lea r15, [rdi + 7]
and r15, 0xfffffffffffffff8
mov rdx, r15
sub rdx, rdi
mov rax, rsi
sub rax, rdx
mov edx, eax
and edx, 7
mov r9, r15
sub r9, rdi
jne 0x1400381e7
xor r8d, r8d
jmp 0x1400382e7
cmp r9, 4
jae 0x140038260
xor r8d, r8d
xor r10d, r10d
jmp 0x1400382d0
mov eax, esi
and eax, 0x1e
pxor xmm0, xmm0
xor edx, edx
movdqa xmm1, xmmword [0x14010bf40]
movdqa xmm2, xmmword [0x14010bf50]
nop word cs:[rax + rax]
movzx r8d, word [rdi + rdx]
movd xmm3, r8d
pcmpgtb xmm3, xmm1
punpcklbw xmm3, xmm3
pshuflw xmm3, xmm3, 0xd4
pshufd xmm3, xmm3, 0xd4
pand xmm3, xmm2
paddq xmm0, xmm3
add rdx, 2
cmp rax, rdx
jne 0x140038220
pshufd xmm1, xmm0, 0xee
paddq xmm1, xmm0
movq rdx, xmm1
jmp 0x140038665
movzx r8d, word [rdi + 2]
movd xmm0, r8d
movdqa xmm1, xmmword [0x14010bf40]
pcmpgtb xmm0, xmm1
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0xd4
pshufd xmm0, xmm0, 0xd4
movdqa xmm2, xmmword [0x14010bf50]
pand xmm0, xmm2
movzx r8d, word [rdi]
movd xmm3, r8d
pcmpgtb xmm3, xmm1
punpcklbw xmm3, xmm3
pshuflw xmm1, xmm3, 0xd4
pshufd xmm1, xmm1, 0xd4
pand xmm1, xmm2
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq r8, xmm0
mov r10d, 4
je 0x1400382e7
nop dword [rax]
xor r11d, r11d
cmp byte [rdi + r10], 0xc0
setge r11b
add r8, r11
inc r10
cmp r9, r10
jne 0x1400382d0
test rdx, rdx
mov qword [rsp + 0x28], r12
je 0x140038386
mov r9, rax
and r9, 0xfffffffffffffff8
xor r10d, r10d
cmp byte [r15 + r9], 0xc0
setge r10b
cmp edx, 1
je 0x140038389
xor r11d, r11d
cmp byte [r15 + r9 + 1], 0xc0
setge r11b
add r10, r11
cmp edx, 2
je 0x140038389
xor r11d, r11d
cmp byte [r15 + r9 + 2], 0xc0
setge r11b
add r10, r11
cmp edx, 3
je 0x140038389
xor r11d, r11d
cmp byte [r15 + r9 + 3], 0xc0
setge r11b
add r10, r11
cmp edx, 4
je 0x140038389
xor r11d, r11d
cmp byte [r15 + r9 + 4], 0xc0
setge r11b
add r10, r11
cmp edx, 5
je 0x140038389
xor r11d, r11d
cmp byte [r15 + r9 + 5], 0xc0
setge r11b
add r10, r11
cmp edx, 6
je 0x140038389
xor edx, edx
cmp byte [r15 + r9 + 6], 0xc0
setge dl
add r10, rdx
jmp 0x140038389
xor r10d, r10d
add r10, r8
shr rax, 3
movabs r9, 0xff00ff00ff00ff
movabs rbp, 0x1000100010001
pcmpeqd xmm0, xmm0
movdqa xmm1, xmmword [0x14010bf60]
jmp 0x1400383f8
xor r10d, r10d
mov r8d, ebx
lea r15, [r11 + r8*8]
sub rax, rbx
mov r8d, ebx
and r8d, 3
mov r14, r10
and r14, r9
shr r10, 8
and r10, r9
add r10, r14
imul r10, rbp
shr r10, 0x30
add r10, rdx
test r8, r8
jne 0x1400385bd
mov rdx, r10
test rax, rax
je 0x1400385b3
mov r11, r15
cmp rax, 0xc0
mov ebx, 0xc0
cmovb rbx, rax
cmp rax, 4
jb 0x1400383c0
mov r12, rbp
mov r15d, ebx
shr r15d, 2
movabs r8, 0x7ffffffffffffff
lea rbp, [r15 + r8]
and rbp, r8
je 0x140038530
inc rbp
mov r8, rbp
and r8, 0xfffffffffffffffe
mov r13, r8
shl r13, 5
pxor xmm4, xmm4
mov r10, r11
mov r14, r8
nop dword [rax + rax]
movdqu xmm2, xmmword [r10]
movdqu xmm5, xmmword [r10 + 0x20]
movdqa xmm3, xmm2
punpcklqdq xmm3, xmm5
movdqa xmm6, xmm3
pxor xmm6, xmm0
psrlq xmm6, 7
psrlq xmm3, 6
por xmm3, xmm6
pand xmm3, xmm1
paddq xmm3, xmm4
movdqu xmm4, xmmword [r10 + 0x10]
movdqu xmm6, xmmword [r10 + 0x30]
punpckhqdq xmm2, xmm5
movdqa xmm5, xmm4
punpcklqdq xmm5, xmm6
punpckhqdq xmm4, xmm6
movdqa xmm6, xmm2
pxor xmm6, xmm0
psrlq xmm6, 7
psrlq xmm2, 6
por xmm2, xmm6
pand xmm2, xmm1
movdqa xmm6, xmm5
pxor xmm6, xmm0
psrlq xmm6, 7
psrlq xmm5, 6
por xmm5, xmm6
pand xmm5, xmm1
paddq xmm5, xmm2
paddq xmm5, xmm3
movdqa xmm2, xmm4
pxor xmm2, xmm0
psrlq xmm2, 7
psrlq xmm4, 6
por xmm4, xmm2
pand xmm4, xmm1
paddq xmm4, xmm5
add r10, 0x40
add r14, 0xfffffffffffffffe
jne 0x140038460
pshufd xmm2, xmm4, 0xee
paddq xmm2, xmm4
movq r10, xmm2
cmp rbp, r8
jne 0x140038538
mov rbp, r12
jmp 0x1400383c3
xor r10d, r10d
mov r13, r11
jmp 0x14003853b
add r13, r11
mov rbp, r12
shl r15d, 5
add r15, r11
nop word cs:[rax + rax]
movdqu xmm2, xmmword [r13]
movdqu xmm3, xmmword [r13 + 0x10]
movdqa xmm4, xmm2
pxor xmm4, xmm0
movdqa xmm5, xmm3
pxor xmm5, xmm0
psrlq xmm5, 7
psrlq xmm4, 7
psrlq xmm3, 6
por xmm3, xmm5
psrlq xmm2, 6
por xmm2, xmm4
pand xmm3, xmm1
pand xmm2, xmm1
paddq xmm2, xmm3
pshufd xmm3, xmm2, 0xee
paddq xmm3, xmm2
movq r8, xmm3
add r10, r8
add r13, 0x20
cmp r13, r15
jne 0x140038550
jmp 0x1400383c3
mov r12, qword [rsp + 0x28]
jmp 0x14003866a
movabs rax, 0x101010101010101
and ebx, 0xfc
mov edx, ebx
mov rdx, qword [r11 + rdx*8]
mov r14, rdx
not r14
shr r14, 7
shr rdx, 6
or rdx, r14
and rdx, rax
cmp r8d, 1
jne 0x1400385f4
mov r12, qword [rsp + 0x28]
jmp 0x140038637
mov r14, qword [r11 + rbx*8 + 8]
mov r15, r14
not r15
shr r15, 7
shr r14, 6
or r14, r15
and r14, rax
add rdx, r14
cmp r8d, 2
mov r12, qword [rsp + 0x28]
je 0x140038637
mov r8, qword [r11 + rbx*8 + 0x10]
mov r11, r8
not r11
shr r11, 7
shr r8, 6
or r8, r11
and r8, rax
add rdx, r8
mov rax, rdx
and rax, r9
shr rdx, 8
and rdx, r9
add rdx, rax
imul rdx, rbp
shr rdx, 0x30
add rdx, r10
jmp 0x14003866a
xor r8d, r8d
cmp byte [rdi + rax], 0xc0
setge r8b
add rdx, r8
inc rax
cmp rsi, rax
jne 0x140038654
sub r12, rdx
jbe 0x140038688
movzx eax, byte [rcx + 0x38]
lea rdx, [0x14010bf70]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
xor r15d, r15d
jmp 0x1400386c9
mov rax, qword [rcx + 0x20]
mov rcx, qword [rcx + 0x28]
mov r9, qword [rcx + 0x18]
mov rcx, rax
mov rdx, rdi
mov r8, rsi
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp r9
mov r15, r12
xor r12d, r12d
jmp 0x1400386c9
mov r15, r12
shr r15, 1
inc r12
shr r12, 1
mov rbx, qword [rcx + 0x20]
mov r14, qword [rcx + 0x28]
mov ebp, dword [rcx + 0x30]
inc r15
nop word [rax + rax]
mov rcx, rbx
dec r15
je 0x1400386f6
mov edx, ebp
call qword [r14 + 0x20]
test al, al
je 0x1400386e0
mov al, 1
jmp 0x140038745
mov rdx, rdi
mov r8, rsi
call qword [r14 + 0x18]
mov ecx, eax
mov al, 1
test cl, cl
jne 0x140038745
mov rdi, r12
neg rdi
mov rsi, 0xffffffffffffffff
nop word cs:[rax + rax]
lea rax, [rdi + rsi]
cmp rax, 0xffffffffffffffff
je 0x14003873c
mov rcx, rbx
mov edx, ebp
call qword [r14 + 0x20]
inc rsi
test al, al
je 0x140038720
jmp 0x14003873f
mov rsi, r12
cmp rsi, r12
setb al
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [0x14010bf80]
movsxd rcx, dword [rax + r13*4]
add rcx, rax
jmp rcx
mov r13, r15
xor r15d, r15d
jmp case.0x1400388d5.0
sub byte [rbp + rcx*4 + 0x44], cl
and al, 0x28
call fcn.1400389a0
jmp 0x14003897b
test dword [rax], eax
add byte [rax], al
test dword [rax], eax
add byte [rax], al
mov r13, r15
shr r13, 1
inc r15
shr r15, 1
mov rbx, qword [rsi + 0x20]
mov r14, qword [rsi + 0x28]
inc r13
nop dword [rax]
dec r13
je 0x140038924
mov rcx, rbx
mov edx, edi
call qword [r14 + 0x20]
test al, al
je 0x140038910
jmp 0x140038938
lea r8, [rsp + 0x28]
mov rcx, rbx
mov rdx, r14
call fcn.1400389a0
test al, al
je 0x14003893c
mov al, 1
jmp 0x140038982
mov byte [rsp + 0x27], r12b
mov r12, r15
neg r12
mov r13, 0xffffffffffffffff
nop
lea rax, [r12 + r13]
cmp rax, 0xffffffffffffffff
je 0x14003896c
mov rcx, rbx
mov edx, edi
call qword [r14 + 0x20]
inc r13
test al, al
je 0x140038950
jmp 0x14003896f
mov r13, r15
cmp r13, r15
setb al
movzx r12d, byte [rsp + 0x27]
mov dword [rsi + 0x30], ebp
mov byte [rsi + 0x38], r12b
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
add rsp, 0x38
ret
cmp dword [rdx], 0x5c
jne 0x1400dc5a2
cmp word [rdx + 2], 0x5c
jne 0x1400dc5a2
cmp word [rdx + 4], 0x3f
jne 0x1400dc5a2
cmp word [rdx + 6], 0x5c
jne 0x1400dc5a2
movzx r9d, word [rdx + 0xa]
cmp r9w, 0x3a
jne 0x1400dc59c
cmp word [rdx + 0xc], 0x5c
jne 0x1400dc59c
add rdx, 8
add rsp, 0x38
jmp 0x1400e2ef0
cmp rax, 7
jne 0x1400dc5c7
mov rax, qword [r8 + 0x10]
mov qword [rsp + 0x30], rax
movups xmm0, xmmword [r8]
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor r8d, r8d
call fcn.1400e66f0
nop
add rsp, 0x38
ret
cmp word [rdx + 8], 0x55
jne 0x1400dc5a2
cmp r9w, 0x4e
jne 0x1400dc5a2
cmp word [rdx + 0xc], 0x43
jne 0x1400dc5a2
cmp word [rdx + 0xe], 0x5c
jne 0x1400dc5a2
add rdx, 0xc
mov word [rdx], 0x5c
add rsp, 0x38
jmp 0x1400e31f0
nop
push rsi
push rdi
sub rsp, 0x28
mov rdi, rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400dd3f5
dec ecx
mov edx, 1
call fcn.140107c40
cmp qword [rdi + 8], 0
je 0x1400dd3ce
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x1400dd3ce
lock dec qword [rax]
jne 0x1400dd3ce
mov rcx, qword [rdi + 0x10]
call fcn.1400e6cf0
mov rcx, qword [0x14017a0c0]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400dd412
dec ecx
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140107c40
mov rcx, rsi
call fcn.1400dcb90
mov ecx, eax
mov edx, 1
call fcn.140107c40
cmp qword [rdi + 8], 0
jne 0x1400dd3b6
jmp 0x1400dd3ce
mov rcx, rsi
call fcn.1400dcb90
mov ecx, eax
jmp 0x1400dd3e8
mov rax, qword [r8 + 0x160]
test rax, rax
je 0x1400df0f3
nop dword [rax + rax]
mov rsi, rax
mov rcx, qword [0x14017a0c0]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
mov rax, qword [rsi + 0x160]
mov r8, rsi
test rax, rax
jne 0x1400df020
jmp 0x1400df0f6
mov rax, qword [r8 + 0x3d8]
mov rax, qword [rax + 0x3d8]
mov rax, qword [rax + 0x3d8]
mov rax, qword [rax + 0x3d8]
mov rax, qword [rax + 0x3d8]
sbb al, 3
add byte [rax], al
sbb al, 3
add byte [rax], al
mov rax, qword [rax + 0x3d8]
mov rax, qword [rax + 0x3d8]
add eax, dword [rax]
add byte [rbx + rcx*4 - 0x80], cl
fadd dword [rbx]
add byte [rax], al
add eax, dword [rax]
add byte [rbx + rcx*4 - 0x80], cl
fadd dword [rbx]
add byte [rax], al
add rcx, 0xfffffffffffffff8
jne 0x1400df0b0
jmp 0x1400df008
mov rsi, r8
mov rcx, qword [0x14017a0c0]
xor edx, edx
mov r8, rsi
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp sub.KERNEL32.dll_HeapFree
and byte [rax - 0x75], cl
or byte [r8 - 0x7b], cl
sal byte [rsp + rdx - 0x77], 0xc1
and ecx, 3
lea rdx, [rcx - 2]
lea edx, [rcx - 2]
lea edx, [rcx - 2]
cmp rdx, 2
jb 0x1400e0854
test rcx, rcx
jne 0x1400e085c
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rsi, [rax - 1]
mov rdi, qword [rax - 1]
mov rbx, qword [rax + 7]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x1400e0890
cmp qword [rbx + 0x10], 0x11
jb 0x1400e087f
mov rdi, qword [rdi - 8]
mov rcx, qword [0x14017a0c0]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rcx, qword [0x14017a0c0]
xor edx, edx
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp sub.KERNEL32.dll_HeapFree
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x478
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 2
mov qword [rsp + 0x58], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x68], rax
xor edi, edi
mov ebx, 0xffffffff
xor r14d, r14d
xor r12d, r12d
cmp r8, 0x201
jae 0x1400e2f80
jmp 0x1400e2f6f
jae 0x1400e3040
cmp r8, 0x201
jae 0x1400e2f80
mov esi, 0x200
lea r15, [rsp + 0x78]
mov r13, r8
jmp 0x1400e2faf
sub r8, r12
sub r14, r12
cmp r14, r8
jb 0x1400e301f
cmp rdi, rbx
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rsp + 0x58], r12
mov r14, rdi
mov rsi, r12
mov r15, qword [rsp + 0x68]
mov r13, r12
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x70]
mov edx, r13d
mov r8, r15
xor r9d, r9d
call sub.KERNEL32.dll_GetFullPathNameW
mov ebp, eax
test eax, eax
jne 0x1400e2fdc
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1400e30cd
mov r8d, ebp
cmp r13, r8
jne 0x1400e2f60
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400e31eb
add r13, r13
mov eax, 0xffffffff
cmp r13, rax
mov ebx, 0xffffffff
cmovae r13, rax
mov r8, r13
cmp r8, 0x201
jb 0x1400e2f6f
jmp 0x1400e2f80
lea rcx, [rsp + 0x48]
mov rdx, r12
call fcn.1400e6fe0
mov rdi, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
jmp 0x1400e2f8f
cmp rsi, r8
jb 0x1400e31eb
mov rdi, qword [rsp + 0x60]
mov rax, qword [rdi + 0x10]
lea rcx, [rax - 1]
cmp rcx, 4
jb 0x1400e31eb
test rax, rax
je 0x1400e31eb
add rax, 0xfffffffffffffffb
cmp rax, r8
jne 0x1400e3097
mov rsi, qword [rdi]
mov rbx, qword [rdi + 8]
lea rdx, [rbx + 8]
lea r14, [r8 + r8]
mov rcx, r15
mov r12, r8
mov r8, r14
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x1400e313d
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0x30], xmm0
mov rdi, qword [rsp + 0x28]
mov rax, qword [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
cmp qword [rsp + 0x48], 0
je 0x1400e3128
mov r8, qword [rsp + 0x50]
jmp 0x1400e311a
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
movabs rax, 0x8000000000000000
mov qword [rcx], rax
cmp qword [rsp + 0x48], 0
je 0x1400e310b
mov r8, qword [rsp + 0x50]
mov rcx, qword [0x14017a0c0]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
je 0x1400e3128
mov r8, qword [rax + 8]
mov rcx, qword [0x14017a0c0]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
nop
add rsp, 0x478
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test ebp, ebp
je 0x1400e317b
movzx eax, byte [0x14017a148]
xor ecx, ecx
mov rdx, r14
call fcn.1400dbb10
test rax, rax
je 0x1400e31eb
mov rdi, rax
mov rcx, rax
mov rdx, r15
mov r8, r14
call sub.msvcrt.dll_memcpy
mov rdx, r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], rdi
jmp 0x1400e31a0
mov ecx, 2
mov rdx, r15
mov r8, r14
call sub.msvcrt.dll_memcpy
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 2
mov rdx, r12
mov rdi, qword [rsp + 0x28]
mov qword [rsp + 0x40], rdx
lea rcx, [rsp + 0x30]
call fcn.1400e6f40
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov word [rax + rcx*2], 0
inc rcx
mov qword [rsp + 0x40], rcx
test rsi, rsi
je 0x1400e30ad
mov rcx, qword [0x14017a0c0]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
jmp 0x1400e30ad
ud2
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x478
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 2
mov qword [rsp + 0x40], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x50], rax
xor edi, edi
mov ebx, 0xffffffff
xor r14d, r14d
xor r15d, r15d
cmp r8, 0x201
jae 0x1400e3280
jmp 0x1400e326f
jae 0x1400e3340
cmp r8, 0x201
jae 0x1400e3280
mov esi, 0x200
lea r12, [rsp + 0x78]
mov r13, r8
jmp 0x1400e32af
sub r8, r15
sub r14, r15
cmp r14, r8
jb 0x1400e331f
cmp rdi, rbx
mov r15d, 0xffffffff
cmovb r15, rdi
mov qword [rsp + 0x40], r15
mov r14, rdi
mov rsi, r15
mov r12, qword [rsp + 0x50]
mov r13, r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x70]
mov edx, r13d
mov r8, r12
xor r9d, r9d
call sub.KERNEL32.dll_GetFullPathNameW
mov ebp, eax
test eax, eax
jne 0x1400e32dc
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1400e33c2
mov r8d, ebp
cmp r13, r8
jne 0x1400e3260
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400e34e3
add r13, r13
mov eax, 0xffffffff
cmp r13, rax
mov ebx, 0xffffffff
cmovae r13, rax
mov r8, r13
cmp r8, 0x201
jb 0x1400e326f
jmp 0x1400e3280
lea rcx, [rsp + 0x30]
mov rdx, r15
call fcn.1400e6fe0
mov rdi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
jmp 0x1400e328f
cmp rsi, r8
jb 0x1400e34e3
mov rcx, qword [rsp + 0x48]
mov r15, qword [rcx + 0x10]
lea rax, [r15 - 1]
cmp rax, 6
jb 0x1400e34e3
test r15, r15
je 0x1400e34e3
mov rsi, qword [rcx]
mov rdi, qword [rcx + 8]
lea rax, [r15 - 7]
lea r14, [rdi + 0xc]
cmp rax, r8
jne 0x1400e339a
lea rbx, [r8 + r8]
mov rcx, r12
mov rdx, r14
mov r13, r8
mov r8, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x1400e3432
mov word [r14], 0x43
mov r12, qword [rsp + 0x28]
mov qword [r12], rsi
mov qword [r12 + 8], rdi
mov qword [r12 + 0x10], r15
cmp qword [rsp + 0x30], 0
je 0x1400e341d
mov r8, qword [rsp + 0x38]
jmp 0x1400e340f
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
movabs rax, 0x8000000000000000
mov qword [rcx], rax
cmp qword [rsp + 0x30], 0
je 0x1400e3400
mov r8, qword [rsp + 0x38]
mov rcx, qword [0x14017a0c0]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
mov rax, qword [rsp + 0x48]
cmp qword [rax], 0
je 0x1400e341d
mov r8, qword [rax + 8]
mov rcx, qword [0x14017a0c0]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
nop
add rsp, 0x478
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test ebp, ebp
je 0x1400e3470
movzx eax, byte [0x14017a148]
xor ecx, ecx
mov rdx, rbx
call fcn.1400dbb10
test rax, rax
je 0x1400e34e3
mov r14, rax
mov rcx, rax
mov rdx, r12
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov rdx, r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r14
jmp 0x1400e3495
mov ecx, 2
mov rdx, r12
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 2
mov rdx, r13
mov r12, qword [rsp + 0x28]
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x58]
call fcn.1400e6f40
mov rbx, qword [rsp + 0x60]
mov r15, qword [rsp + 0x68]
mov word [rbx + r15*2], 0
inc r15
mov r14, qword [rsp + 0x58]
test rsi, rsi
je 0x1400e34d8
mov rcx, qword [0x14017a0c0]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rdi, rbx
mov rsi, r14
jmp 0x1400e33a5
ud2