Function at 0x140008270
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x318]
sub rsp, 0x418
mov rax, qword [0x14011c358]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
mov r12, qword [rdx]
mov ebx, r9d
mov dword [rsp + 0x24], ebx
mov edi, r8d
mov dword [rsp + 0x20], r8d
mov rsi, rdx
mov qword [rsp + 0x28], rdx
mov r13, rcx
test rcx, rcx
jne 0x140008327
test r12, r12
je 0x14000831d
cmp dword [r12 + 0x14], 1
jne 0x1400082ec
mov eax, dword [r12 + 0x10]
mov rdx, qword [r12]
test eax, eax
je 0x1400082ec
nop word [rax + rax]
mov byte [rdx], 0
lea rdx, [rdx + 1]
add eax, 0xffffffff
jne 0x1400082e0
mov rax, qword [0x140121b70]
xor ebx, ebx
mov qword [r12], rbx
mov rcx, r12
mov dword [r12 + 0x10], ebx
test rax, rax
je 0x140008315
call rax
mov eax, 0xffffff53
mov qword [rsi], rbx
jmp 0x140008893
call fcn.1400a0b74
mov qword [rsi], rbx
mov eax, 0xffffff53
jmp 0x140008893
mov r9, qword [rcx + 0x58]
lea rcx, [rsp + 0x30]
mov r8d, dword [r12 + 0x10]
mov rdx, qword [r12]
mov qword [rsp + 0x410], r14
mov qword [rsp + 0x408], r15
call fcn.140029bb0
mov r9, r13
lea rcx, [rsp + 0x30]
mov r8d, ebx
mov edx, 5
call fcn.14002d0d0
mov esi, dword [rsp + 0x50]
mov r14d, eax
mov ecx, dword [rsp + 0x38]
test eax, eax
jns 0x14000837f
movzx r15d, byte [rbp + 0x2e8]
jmp 0x140008453
movsxd rbx, dword [rbp - 0x50]
test ebx, ebx
jle 0x1400083eb
lea eax, [rbx + 1]
movsxd rcx, eax
mov rax, qword [0x140121b80]
test rax, rax
je 0x14000839d
call rax
jmp 0x1400083a2
call fcn.1400a0b88
mov rdi, rax
test rax, rax
jne 0x1400083bb
movzx r15d, byte [rbp + 0x2e8]
lea r14d, [rax - 0x7d]
jmp 0x14000844b
mov rdx, qword [rbp - 0x58]
mov r8, rbx
mov rcx, rdi
call fcn.14009c440
movzx r15d, byte [rbp + 0x2e8]
mov ecx, dword [rsp + 0x38]
or r15b, 1
mov byte [rbp + 0x2e8], r15b
mov byte [rbx + rdi], 0
mov qword [rbp - 0x58], rdi
jmp 0x1400083f3
movzx r15d, byte [rbp + 0x2e8]
cmp esi, 0x285
jne 0x14000844b
cmp qword [rsp + 0x30], 0
je 0x14000844b
test ecx, ecx
je 0x14000844b
mov rax, qword [0x140121b80]
mov edi, ecx
mov ecx, edi
test rax, rax
je 0x14000841b
call rax
jmp 0x140008420
call fcn.1400a0b88
mov rbx, rax
test rax, rax
jne 0x14000842e
lea r14d, [rax - 0x7d]
jmp 0x14000844b
mov rdx, qword [rsp + 0x30]
mov r8, rdi
mov rcx, rbx
call fcn.14009c440
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x3c], 1
mov ecx, dword [rsp + 0x38]
mov edi, dword [rsp + 0x20]
xor ebx, ebx
cmp dword [rsp + 0x24], ebx
je 0x1400084a0
sub esi, 0x206
je 0x140008484
cmp esi, 0x7f
jne 0x1400084a0
movzx eax, word [r13 + 0xd8]
test ax, ax
js 0x140008479
cmp ecx, eax
jae 0x1400084a0
mov r14d, 0xfffffe67
jmp 0x140008687
movzx eax, word [r13 + 0xda]
test ax, ax
js 0x140008495
cmp ecx, eax
jae 0x1400084a0
mov r14d, 0xfffffe66
jmp 0x140008687
test r14d, r14d
jne 0x140008687
movzx eax, r15b
shr al, 4
and al, 1
cmp edi, 1
je 0x1400084e3
test al, al
jne 0x1400084c6
mov r14d, 0xfffffe9b
jmp 0x140008687
test byte [rbp + 0x2e9], 0x40
jne 0x1400084e3
test byte [rbp + 0x256], 4
jne 0x1400084e3
mov r14d, 0xfffffe9b
jmp 0x140008687
lea rdx, [rbp + 0x22c]
mov rcx, r13
call fcn.1400080b0
test eax, eax
jne 0x14000867f
mov rax, qword [0x140121b80]
mov ecx, 0x68
test rax, rax
je 0x14000850f
call rax
jmp 0x140008514
call fcn.1400a0b88
mov rsi, rax
test rax, rax
je 0x140008679
xor eax, eax
xorps xmm0, xmm0
mov dword [rsi], eax
movups xmmword [rsi + 0xc], xmm0
mov qword [rsi + 0x1c], rax
mov dword [rsi + 0x24], eax
mov eax, dword [rsp + 0x50]
mov dword [rsi + 4], eax
cmp dword [rsp + 0x3c], ebx
je 0x14000854e
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x10], rax
mov eax, dword [rsp + 0x38]
mov dword [rsi], eax
movzx r15d, byte [rbp + 0x2e8]
test r15b, 1
je 0x14000856a
mov eax, dword [rbp - 0x50]
mov dword [rsi + 0x18], eax
mov rax, qword [rbp - 0x58]
mov qword [rsi + 0x20], rax
movzx eax, byte [rbp + 0x254]
movups xmm0, xmmword [rbp + 0x22c]
movzx ecx, byte [rbp + 0x2e9]
mov byte [rsi + 0xb], al
and cl, 0x40
movzx eax, byte [rbp + 0x255]
mov byte [rsi + 0xa], al
movzx eax, r15b
and al, 0x20
or cl, al
movzx eax, byte [rsi + 0xc]
and al, 0xfc
shr cl, 5
or cl, al
mov rax, qword [rsp + 0x68]
mov qword [rsi + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsi + 0x30], rax
mov eax, dword [rbp + 0x23c]
mov byte [rsi + 0xc], cl
movups xmmword [rsi + 0x4c], xmm0
mov dword [rsi + 0x5c], eax
mov eax, dword [rbp - 0x78]
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rsi + 0x38], xmm0
mov dword [rsi + 0x48], eax
movzx eax, word [rbp + 0x256]
test r15b, r15b
js 0x1400085e4
mov eax, 0xffff
mov word [rsi + 8], ax
lea rcx, [r13 + 0xa8]
mov qword [rsi + 0x60], rbx
movzx eax, byte [rsi + 0x4d]
movzx edi, byte [rsi + 0x4c]
shl edi, 8
or edi, eax
mov qword [rsp + 0x30], rbx
movzx eax, byte [rsi + 0x4e]
shl eax, 8
shl edi, 0x10
or edi, eax
mov qword [rbp - 0x58], rbx
movzx eax, byte [rsi + 0x4f]
or edi, eax
mov qword [rsp + 0x68], rbx
mov eax, 0xba2e8ba3
mov qword [rsp + 0x70], rbx
mul edi
shr edx, 3
imul eax, edx, 0xb
sub edi, eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rdx, [rdi*8]
mov rax, qword [rdx + r13]
lea rcx, [r13 + 0xa8]
mov qword [rsi + 0x60], rax
mov qword [rdx + r13], rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [r13 + 0x88]
test rax, rax
je 0x140008687
mov r8d, dword [rsp + 0x20]
mov edx, dword [r12 + 0x10]
mov rcx, qword [r12]
call rax
jmp 0x140008687
mov r14d, 0xfffffed1
movzx r15d, byte [rbp + 0x2e8]
test r15b, 1
je 0x1400086af
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x1400086af
mov rax, qword [0x140121b70]
test rax, rax
je 0x1400086a6
call rax
jmp 0x1400086af
mov rcx, qword [rbp - 0x58]
call fcn.1400a0b74
cmp dword [rsp + 0x3c], 1
jne 0x1400086da
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400086da
mov rax, qword [0x140121b70]
test rax, rax
je 0x1400086d0
call rax
jmp 0x1400086da
mov rcx, qword [rsp + 0x30]
call fcn.1400a0b74
test r15b, 0x40
mov r15, qword [rsp + 0x408]
je 0x140008733
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x140008733
mov rcx, qword [rbx + 0x10]
mov rdi, qword [rbx]
test rcx, rcx
je 0x140008713
mov rax, qword [0x140121b70]
test rax, rax
je 0x14000870e
call rax
jmp 0x140008713
call fcn.1400a0b74
mov rax, qword [0x140121b70]
mov rcx, rbx
test rax, rax
je 0x140008726
call rax
jmp 0x14000872b
call fcn.1400a0b74
mov rbx, rdi
test rdi, rdi
jne 0x1400086f2
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x140008781
nop dword [rax]
mov rcx, qword [rbx + 0x10]
mov rdi, qword [rbx]
test rcx, rcx
je 0x140008761
mov rax, qword [0x140121b70]
test rax, rax
je 0x14000875c
call rax
jmp 0x140008761
call fcn.1400a0b74
mov rax, qword [0x140121b70]
mov rcx, rbx
test rax, rax
je 0x140008774
call rax
jmp 0x140008779
call fcn.1400a0b74
mov rbx, rdi
test rdi, rdi
jne 0x140008740
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x1400087d1
nop dword [rax + rax]
mov rcx, qword [rbx + 8]
mov rdi, qword [rbx]
test rcx, rcx
je 0x1400087b1
mov rax, qword [0x140121b70]
test rax, rax
je 0x1400087ac
call rax
jmp 0x1400087b1
call fcn.1400a0b74
mov rax, qword [0x140121b70]
mov rcx, rbx
test rax, rax
je 0x1400087c4
call rax
jmp 0x1400087c9
call fcn.1400a0b74
mov rbx, rdi
test rdi, rdi
jne 0x140008790
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x140008821
nop dword [rax + rax]
mov rcx, qword [rbx + 8]
mov rdi, qword [rbx]
test rcx, rcx
je 0x140008801
mov rax, qword [0x140121b70]
test rax, rax
je 0x1400087fc
call rax
jmp 0x140008801
call fcn.1400a0b74
mov rax, qword [0x140121b70]
mov rcx, rbx
test rax, rax
je 0x140008814
call rax
jmp 0x140008819
call fcn.1400a0b74
mov rbx, rdi
test rdi, rdi
jne 0x1400087e0
lea rcx, [rbp + 0x298]
call fcn.14002b600
mov rdi, qword [rsp + 0x28]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000887c
cmp dword [rcx + 0x14], 1
jne 0x14000885c
mov eax, dword [rcx + 0x10]
mov rdx, qword [rcx]
test eax, eax
je 0x14000885c
nop word [rax + rax]
mov byte [rdx], 0
lea rdx, [rdx + 1]
add eax, 0xffffffff
jne 0x140008850
mov rax, qword [0x140121b70]
xor ebx, ebx
mov qword [rcx], rbx
mov dword [rcx + 0x10], ebx
test rax, rax
je 0x140008874
call rax
jmp 0x140008879
call fcn.1400a0b74
mov qword [rdi], rbx
test r14d, r14d
mov eax, 1
cmove r14d, eax
mov eax, r14d
mov r14, qword [rsp + 0x410]
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.14009a320
add rsp, 0x418
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret