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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x108
mov qword [rsp + 0x158], rdx
mov edx, dword [rsp + 0x170]
mov qword [rsp + 0x150], rcx
mov qword [rsp + 0x160], r8
mov dword [rsp + 0xc8], r9d
mov word [rsp + 0x90], r9w
test dx, dx
je 0x140196298
mov rax, qword [rcx]
mov rax, qword [rax]
test byte [rax + 0x60], 0x40
jne 0x140196743
mov rax, qword [rsp + 0x158]
mov eax, dword [rax]
mov dword [rsp + 0xcc], eax
mov esi, eax
cmp ax, 0x3f
ja 0x140196743
mov ecx, esi
movzx r15d, ax
mov eax, 1
xor esi, esi
shl rax, cl
test dword [rsp + 0xc8], 0x803
setne sil
add si, 0x182
sub rax, 1
mov word [rsp + 0x94], si
mov qword [rsp + 0xa0], rax
je 0x140196ae5
movzx eax, dx
xor r14d, r14d
mov qword [rsp + 0x88], 0
mov dword [rsp + 0xc0], eax
movzx eax, dx
mov qword [rsp + 0xa8], rax
mov eax, r15d
mov r15, r14
mov qword [rsp + 0xb0], 0
mov r14d, eax
mov qword [rsp + 0x98], 0
jmp 0x14019637b
cmp r15, qword [rsp + 0xa0]
jae 0x140196d40
mov rsi, qword [rsp + 0x88]
lea rax, [rsi + 1]
cmp qword [rsp + 0xa8], rsi
je 0x140196d36
mov rsi, qword [rsp + 0x30]
mov qword [rsp + 0x88], rax
mov rsi, qword [rsi + 8]
or qword [rsp + 0x98], rsi
mov rsi, qword [rsp + 0x88]
mov dword [rsp + 0x3c], esi
cmp dword [rsp + 0xc0], esi
jle 0x140196aa4
mov rax, qword [rsp + 0x160]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + rsi*8]
mov qword [rsp + 0x30], rax
test word [rsp + 0x90], 0x800
jne 0x14019633a
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x38]
test dh, 4
jne 0x140196ac2
movzx eax, word [rsp + 0x90]
and ax, 0x80
mov word [rsp + 0x96], ax
je 0x1401963e9
mov rax, qword [rsp + 0x30]
xor r8d, r8d
mov word [rax + 0x1e], r8w
mov rax, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x150]
movzx eax, byte [rax + 0x10]
lea rcx, [rax + rax*2]
lea rax, [rax + rcx*4]
shl rax, 3
add rax, qword [rsi + 8]
mov r13d, dword [rax + 0x4c]
mov dword [rsp + 0x78], r13d
test r14d, r14d
je 0x140196c90
mov rax, qword [rsp + 0x158]
mov r12, qword [rsp + 0x98]
xor edi, edi
add rax, 8
not r12
mov qword [rsp + 0x40], rax
mov rbp, rax
nop dword [rax]
mov rsi, r15
mov ecx, edi
shr rsi, cl
and esi, 1
jne 0x140196490
mov rbx, qword [rbp]
test rbx, rbx
jne 0x14019646d
jmp 0x140196490
mov rax, qword [rbx + 0x20]
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x140196490
mov eax, dword [rbx + 4]
test eax, 0x82000
je 0x140196958
test eax, 0x80000
jne 0x140196460
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14019646d
nop dword [rax + rax]
add edi, 1
add rbp, 0x20
cmp r14d, edi
jne 0x140196440
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x38]
test dh, 0x10
jne 0x140196af8
test dh, 1
jne 0x140196bcd
mov rax, qword [rsp + 0x30]
mov r13, qword [rax + 0x20]
test r13, r13
je 0x140196743
test byte [r13 + 0x64], 4
jne 0x140196743
movzx eax, word [r13 + 0x5e]
movzx esi, byte [r13 + 0x62]
mov word [rsp + 0xc6], ax
movzx eax, word [r13 + 0x60]
mov byte [rsp + 0x50], sil
mov dword [rsp + 0x7c], eax
test sil, sil
jne 0x140196c79
test eax, eax
je 0x1401966e2
movzx ecx, byte [rsp + 0x3c]
mov eax, 1
xor r12d, r12d
mov r11, r13
mov qword [rsp + 0x58], 1
shl rax, cl
mov byte [rsp + 0x40], 0
mov qword [rsp + 0xb8], rax
mov byte [rsp + 0xc5], 0
mov byte [rsp + 0xc4], 0
jmp 0x140196595
movzx edx, word [rdi + 0x3e]
cmp edx, r12d
jg 0x1401965ad
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rdi + 0x48]
mov r8, qword [rcx + r12*8]
movzx edx, word [r8 + 0x14]
test word [rsp + 0x94], dx
je 0x1401969f8
movzx edi, byte [rsp + 0x50]
test dx, 0x180
mov eax, 0
cmovne edi, eax
mov byte [rsp + 0x50], dil
add qword [rsp + 0x58], 1
add r12, 1
cmp dword [rsp + 0x7c], r12d
jle 0x1401966d0
mov rdi, qword [rsp + 0x30]
mov dword [rsp + 0x3c], r12d
mov dword [rsp + 0x48], r12d
movzx eax, word [rdi + 0x18]
cmp eax, r12d
jg 0x140196540
test r14d, r14d
setg r13b
test r11, r11
je 0x140196a41
mov rcx, qword [r11 + 0x38]
mov rdx, qword [r11 + 8]
mov r9d, 0xffffffff
movzx ecx, byte [rcx + r12]
movsx rdx, word [rdx + r12*2]
and ecx, 1
mov byte [rsp + 0x93], cl
mov rcx, qword [r11 + 0x18]
cmp dx, word [rcx + 0x34]
je 0x140196620
cmp byte [rsp + 0x50], 0
movsx r9d, dx
je 0x140196620
test r9d, r9d
js 0x140196a60
cmp eax, dword [rsp + 0x48]
jg 0x140196620
lea rax, [rdx + rdx*2]
mov rdx, qword [rcx + 8]
lea rax, [rdx + rax*8]
test byte [rax + 8], 0xf
setne byte [rsp + 0x50]
nop dword [rax + rax]
test r13b, r13b
je 0x1401966b4
lea rax, [r12*8]
mov qword [rsp + 0x80], r12
xor esi, esi
mov r12d, r9d
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x158]
lea rdi, [rax + 8]
nop
mov rbx, r15
mov ecx, esi
shr rbx, cl
and ebx, 1
jne 0x1401966a0
mov rdx, qword [rdi]
mov rcx, rdx
test rdx, rdx
jne 0x14019667d
jmp 0x1401966a0
mov rax, qword [rcx + 0x20]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1401966a0
mov eax, dword [rcx + 4]
test eax, 0x82000
je 0x140196790
test eax, 0x80000
jne 0x140196670
mov rcx, qword [rcx + 0x10]
test rcx, rcx
jne 0x14019667d
nop dword [rax + rax]
mov ebp, r13d
add esi, 1
add rdi, 0x20
cmp r14d, esi
jle 0x1401966b4
test bpl, bpl
jne 0x140196650
mov edi, dword [rsp + 0x3c]
test edi, edi
je 0x140196759
movzx eax, word [rsp + 0xc6]
cmp eax, edi
jg 0x140196759
cmp byte [rsp + 0x40], 0
jne 0x140196760
cmp byte [rsp + 0x50], 0
jne 0x140196760
mov eax, r14d
mov r14, r15
mov r15d, eax
cmp r14, qword [rsp + 0xa0]
je 0x140196ae5
lea ecx, [r15 - 1]
test ecx, ecx
jle 0x140196743
cmp ecx, 0x3f
jle 0x14019670a
mov eax, ecx
jmp 0x140196745
mov eax, 1
mov rdx, r14
shl rax, cl
sub rax, 1
and rdx, rax
cmp rdx, rax
je 0x140196706
mov r8d, 1
jmp 0x14019673e
mov rax, r8
mov rdx, r14
shl rax, cl
sub rax, 1
and rdx, rax
cmp rdx, rax
je 0x140196706
sub ecx, 1
jne 0x140196729
xor eax, eax
add rsp, 0x108
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rsp + 0x40], 0
je 0x1401966e2
mov rsi, qword [rsp + 0x30]
mov rsi, qword [rsi + 8]
or qword [rsp + 0xb0], rsi
test r14d, r14d
je 0x14019633a
mov rax, qword [rsp + 0x158]
add rax, 8
mov qword [rsp + 0x40], rax
jmp 0x140196b09
test byte [rsp + 0x90], 0xc0
setne bpl
cmp r12d, 0xffffffff
jl 0x140196920
movzx eax, byte [rcx]
add eax, 0x59
test al, 0xfd
jne 0x1401966a3
mov eax, dword [rsp + 0x78]
cmp dword [rcx + 0x2c], eax
jne 0x1401966a3
movsx eax, word [rcx + 0x30]
cmp r12d, eax
jne 0x1401966a3
cmp r12d, 0xffffffff
je 0x140196844
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x70], r11
mov rcx, qword [rax]
mov qword [rsp + 0x68], rcx
call fcn.14018f070
mov rcx, qword [rsp + 0x68]
mov r11, qword [rsp + 0x70]
lea r10, [0x140450f00]
test rax, rax
je 0x140196a54
mov rcx, qword [rsp + 0x60]
mov rdx, qword [r11 + 0x40]
mov r8, qword [rdx + rcx]
mov rcx, qword [rax]
jmp 0x140196833
movzx edx, byte [r10 + rdx]
cmp byte [r10 + rax], dl
jne 0x1401966a3
add rbx, 1
movzx eax, byte [rcx + rbx]
movzx edx, byte [r8 + rbx]
cmp eax, edx
jne 0x140196820
test eax, eax
jne 0x14019682f
cmp word [rsp + 0x96], 0
mov r9d, r12d
mov r12, qword [rsp + 0x80]
je 0x140196868
mov rax, qword [rsp + 0x30]
movzx edi, word [rsp + 0x58]
mov word [rax + 0x1e], di
mov rdi, qword [rsp + 0x158]
movsxd rax, esi
shl rax, 5
movzx eax, byte [rdi + rax + 0x18]
test byte [rsp + 0x90], 0x40
jne 0x1401968d0
cmp byte [rsp + 0xc4], 0
jne 0x140196a83
mov edx, eax
and edx, 1
cmp dl, byte [rsp + 0x93]
je 0x140196a6e
mov rdi, qword [rsp + 0x180]
mov rdx, qword [rsp + 0xb8]
mov byte [rsp + 0xc5], 1
mov byte [rsp + 0xc4], 1
or qword [rdi], rdx
nop dword [rax]
test al, 2
je 0x1401968ee
mov rdi, qword [rsp + 0x30]
movzx eax, word [rdi + 0x18]
cmp eax, dword [rsp + 0x48]
jne 0x1401966b4
or dword [rdi + 0x38], 0x80000
movzx edi, byte [rsp + 0x40]
cmp r9d, 0xffffffff
mov eax, 1
mov ecx, esi
cmove edi, eax
mov eax, 1
shl rax, cl
mov byte [rsp + 0x40], dil
or r15, rax
jmp 0x140196580
movsxd rax, dword [rsp + 0x3c]
mov r8d, dword [rsp + 0x78]
mov qword [rsp + 0x68], r11
shl rax, 5
add rax, qword [r11 + 0x50]
mov rdx, qword [rax + 8]
call fcn.140194c00
mov r11, qword [rsp + 0x68]
test eax, eax
jne 0x1401966a3
mov rdx, qword [rdi]
jmp 0x1401967d4
movzx eax, byte [rbx]
add eax, 0x59
test al, 0xfd
jne 0x140196490
cmp dword [rbx + 0x2c], r13d
jne 0x140196490
mov rax, qword [rsp + 0x150]
movsx r8d, word [rbx + 0x30]
mov r9, r12
mov edx, r13d
mov qword [rsp + 0x28], 0
lea rcx, [rax + 0x70]
movzx eax, word [rsp + 0x94]
mov dword [rsp + 0x20], eax
call fcn.140195330
mov r8, rax
test rax, rax
je 0x140196490
movzx eax, word [rax + 0x14]
cmp ax, 1
je 0x140196cd7
mov qword [rsp + 0x48], r8
test al, 0x82
je 0x1401969cf
cmp word [rbx + 0x30], 0
jns 0x140196bec
mov ecx, edi
mov eax, 1
add edi, 1
add rbp, 0x20
shl rax, cl
or r15, rax
cmp r14d, edi
jne 0x140196440
jmp 0x14019649c
test r14d, r14d
setg r13b
and edx, 1
je 0x1401965b4
mov rdx, qword [rsp + 0x58]
mov r9, qword [r8]
cmp eax, edx
jg 0x140196a2c
jmp 0x1401965b4
add rdx, 1
cmp eax, edx
jle 0x1401965b4
mov r8, qword [rcx + rdx*8]
cmp qword [r8], r9
jne 0x140196a20
xor r13d, r13d
test r11, r11
jne 0x1401965bd
mov byte [rsp + 0x93], 0
mov r9d, 0xffffffff
jmp 0x140196620
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
jmp 0x140196808
cmp r9d, 0xfffffffe
setne byte [rsp + 0x50]
jmp 0x140196620
mov byte [rsp + 0xc5], 0
mov byte [rsp + 0xc4], 1
jmp 0x1401968d0
mov edx, eax
movzx ecx, byte [rsp + 0x93]
xor cl, byte [rsp + 0xc5]
and edx, 1
cmp cl, dl
jne 0x1401966b4
jmp 0x1401968d0
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x38]
test dh, 4
je 0x1401963c6
cmp byte [rax + 0x20], 0
mov r14, r15
je 0x140196d28
movzx eax, word [rsp + 0xc8]
and ax, 0x280
cmp ax, 0x80
je 0x140196d28
movzx eax, byte [rsp + 0xcc]
jmp 0x140196745
mov rsi, qword [rsp + 0x30]
mov rsi, qword [rsi + 8]
or qword [rsp + 0xb0], rsi
mov rdi, qword [rsp + 0x40]
xor ebp, ebp
mov r13d, 1
lea rbx, [0x14016e3c0]
lea rsi, [0x140155c00]
jmp 0x140196b62
mov rax, qword [rsp + 0x150]
mov rdx, r12
lea rcx, [rax + 0x258]
call fcn.14016de20
test rax, rax
je 0x140196b7d
mov rdx, qword [rsp + 0xb0]
not rdx
test rdx, rax
je 0x140196b70
add ebp, 1
add rdi, 0x20
cmp r14d, ebp
jle 0x14019633a
bt r15, rbp
jb 0x140196b52
mov r12, qword [rdi]
test r12, r12
jne 0x140196b26
mov rax, r13
mov ecx, ebp
shl rax, cl
or r15, rax
jmp 0x140196b52
mov eax, 1
lea rcx, [rsp + 0xd0]
mov rdx, r12
mov qword [rsp + 0xd8], rbx
mov word [rsp + 0xf4], ax
mov qword [rsp + 0xe0], rsi
mov dword [rsp + 0xf8], 0
call fcn.14016f840
cmp word [rsp + 0xf4], 0
je 0x140196b52
mov rax, r13
mov ecx, ebp
shl rax, cl
or r15, rax
jmp 0x140196b52
xor ecx, ecx
mov dword [rsp + 0x7c], 1
xor r13d, r13d
mov word [rsp + 0xc6], cx
mov byte [rsp + 0x50], 1
jmp 0x140196504
mov rax, qword [rsp + 0x150]
mov rdx, qword [rbp]
mov rcx, qword [rax]
mov qword [rsp + 0x50], rcx
call fcn.14018f070
mov rcx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
test rax, rax
mov rbx, rax
je 0x140196d1c
mov rax, qword [r8]
mov r9, qword [rax + 0x18]
mov rdx, qword [rax + 0x10]
test byte [rax + 5], 4
jne 0x140196cc0
mov r8, r9
call fcn.14018f2a0
lea r10, [0x140450f00]
test rax, rax
je 0x140196490
mov r8, qword [rax]
mov rcx, qword [rbx]
jmp 0x140196c63
movzx edx, byte [r10 + rdx]
cmp byte [r10 + rax], dl
jne 0x140196490
add rsi, 1
movzx eax, byte [rcx + rsi]
movzx edx, byte [r8 + rsi]
cmp eax, edx
jne 0x140196c50
test eax, eax
jne 0x140196c5f
jmp 0x1401969cf
and dh, 0x80
je 0x140196caf
test eax, eax
je 0x1401966e2
mov byte [rsp + 0x50], 0
jmp 0x140196504
test dh, 0x10
je 0x1401964ad
mov rsi, qword [rsp + 0x30]
mov rsi, qword [rsi + 8]
or qword [rsp + 0xb0], rsi
jmp 0x14019633a
test eax, eax
jne 0x140196be2
jmp 0x140196760
mov r8, rdx
mov rdx, r9
call fcn.14018f2a0
lea r10, [0x140450f00]
jmp 0x140196c3f
mov rax, qword [rsp + 0x30]
movzx edx, word [rax + 0x3c]
test dx, dx
je 0x140196490
mov rax, qword [rax + 0x48]
sub edx, 1
lea rdx, [rax + rdx*8 + 8]
cmp qword [rax], r8
je 0x1401969cf
add rax, 8
cmp rdx, rax
jne 0x140196cf5
add edi, 1
add rbp, 0x20
cmp r14d, edi
jne 0x140196440
jmp 0x14019649c
mov rax, qword [rcx]
mov rbx, qword [rax + 0x10]
jmp 0x140196c1b
cmp r14, qword [rsp + 0xa0]
je 0x140196ae5
mov eax, 0xffffffff
jmp 0x140196745
jne 0x140196d36
jmp 0x140196ae5