Function at 0x180018e80
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x180045338]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movzx ebx, byte [rsp + 0x40]
lea r13d, [rcx + 0x24]
mov qword [rsp + 0x68], r9
mov r14, r8
mov r12, rdx
mov esi, ecx
cmp ecx, r13d
jae 0x180019112
movzx edi, byte [rsp + 0x40]
xor r8d, r8d
mov ebp, dword [rsp + 0x44]
mov r15, qword [rsp + 0x68]
mov dword [rsp + 0x44], edi
lea rdx, [0x180000000]
cmp esi, 0xa4
ja 0x1800190ed
je 0x180019192
lea eax, [rsi - 0x1a]
cmp eax, 0x87
ja case.0x180018f16.32
movzx eax, byte [rdx + rax + 0x191c8]
mov ecx, dword [rdx + rax*4 + 0x191ac]
add rcx, rdx
jmp rcx
movzx eax, word [r9]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], r8
mov r9d, 0xcc
mov qword [rsp + 0x28], r8
xor edx, edx
mov qword [rsp + 0x20], r8
mov r8, r14
mov word [rsp + 0x48], ax
call fcn.180003620
lea r9, [rsp + 0x58]
mov qword [rsp + 0x58], 0
xor r8d, r8d
mov qword [rsp + 0x50], 0xffffffffffffffff
xor edx, edx
xor ecx, ecx
call sub.RPCRT4.dll_MesEncodeIncrementalHandleCreate
mov ebp, eax
jmp 0x180018fb3
mov dil, 1
mov byte [rsp + 0x40], 1
mov dword [rsp + 0x44], edi
jmp case.0x180018f16.32
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 0xa]
call fcn.180007d60
test al, al
jne 0x180018fb3
lea rax, [0x180006a80]
mov qword [rsp + 0x78], r14
mov edx, 0xd2
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.18001e400
test al, al
je 0x1800191a5
xor r8d, r8d
add esi, 3
cmp esi, r13d
jae 0x180019112
mov r9, qword [rsp + 0x68]
jmp 0x180018edd
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.dbghelp.dll_SymInitialize]
xor r8d, r8d
movzx edi, dil
mov edx, eax
test ebp, ebp
lea rax, [0x180019250]
mov ecx, r8d
mov qword [r14], rax
movzx eax, byte [rsp + 0x40]
cmove ecx, eax
test edx, edx
mov byte [rsp + 0x40], cl
cmove edi, r8d
mov dword [rsp + 0x44], edi
jmp case.0x180018f16.32
cmp byte [rsp + 0x40], 0
je 0x180019071
mov edi, 0xd3
nop dword [rax + rax]
mov eax, edi
sub eax, 0xd3
je 0x1800190bb
cmp eax, 1
jne 0x180019063
lea r8, [rsp + 0x60]
xor edx, edx
xor ecx, ecx
call sub.RPCRT4.dll_MesDecodeIncrementalHandleCreate
mov rcx, qword [rsp + 0x58]
mov ebp, eax
test rcx, rcx
je 0x180019051
call sub.RPCRT4.dll_MesHandleFree
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x180019060
call sub.RPCRT4.dll_MesHandleFree
xor r8d, r8d
inc edi
cmp edi, 0xd5
jb 0x180019020
mov edi, dword [rsp + 0x44]
test dil, dil
je case.0x180018f16.32
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x80]
xorps xmm0, xmm0
movups xmmword [rsp + 0x80], xmm0
mov dword [rsp + 0x80], 0x20
movups xmmword [rsp + 0x90], xmm0
call qword [sym.imp.dbghelp.dll_SymGetSymPrev64]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.dbghelp.dll_SymCleanup]
jmp 0x180018fb3
mov qword [rsp + 0x60], r8
jmp 0x180019063
lea rcx, [r14 + 0xa]
cmp rcx, r12
je case.0x180018f16.32
cmp qword [r12 + 0x18], 0x10
mov rdx, r12
jb 0x1800190de
mov rdx, qword [r12]
mov r8, qword [r12 + 0x10]
call fcn.18001c630
jmp 0x180018fb3
mov eax, esi
sub eax, 0x117
je 0x18001917f
sub eax, 3
je 0x180019156
sub eax, 3
je 0x180019147
sub eax, 3
je 0x180019140
cmp eax, 3
jne case.0x180018f16.32
movzx eax, bl
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.180039fa0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov bl, 1
jmp case.0x180018f16.32
mov rax, r15
xchg qword [0x180045420], rax
jmp case.0x180018f16.32
mov qword [rsp + 0x28], r8
mov r9, r14
mov dword [rsp + 0x20], r8d
xor edx, edx
lea r8, [0x18001abf0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r15, rax
test rax, rax
jmp 0x180018fad
mov qword [0x180045418], r14
mov qword [r14 + 0x80], r12
jmp case.0x180018f16.32
lea rdx, [r14 + 0x48]
mov ecx, 0x11f
call fcn.180006f90
jmp 0x180019115
xor al, al
jmp 0x180019115