Function at 0x140345640
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 + 0x78], r9w
test dx, dx
je 0x140345695
mov rax, qword [rcx]
mov rax, qword [rax]
test byte [rax + 0x5c], 0x40
jne 0x1403459c7
mov rax, qword [rsp + 0x158]
mov eax, dword [rax]
mov dword [rsp + 0xcc], eax
mov esi, eax
cmp ax, 0x3f
ja 0x1403459c7
mov ecx, esi
movzx r10d, 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 0x140345ab6
movzx eax, dx
xor r11d, r11d
lea r15, [0x14076bfa0]
mov r13d, r10d
mov dword [rsp + 0xc0], eax
movzx eax, dx
mov r14, r11
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x88], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0x98], 0
jmp 0x14034577c
cmp r14, qword [rsp + 0xa0]
jae 0x140346188
mov rcx, qword [rsp + 0x88]
lea rax, [rcx + 1]
cmp qword [rsp + 0xa8], rcx
je 0x14034617e
mov rdi, qword [rsp + 0x30]
mov qword [rsp + 0x88], rax
mov rsi, qword [rdi + 8]
or qword [rsp + 0x98], rsi
mov rsi, qword [rsp + 0x88]
mov dword [rsp + 0x38], esi
cmp dword [rsp + 0xc0], esi
jle 0x140345a7d
mov rax, qword [rsp + 0x160]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + rsi*8]
mov qword [rsp + 0x30], rax
test word [rsp + 0x78], 0x800
jne 0x14034573b
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x28]
test dh, 4
jne 0x140345a9b
movzx eax, word [rsp + 0x78]
and ax, 0x80
mov word [rsp + 0x96], ax
je 0x1403457e2
mov rax, qword [rsp + 0x30]
xor ecx, ecx
mov word [rax + 0x1e], cx
mov rax, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x150]
movzx ecx, byte [rax + 0x10]
lea rax, [rcx*8]
sub rax, rcx
shl rax, 4
add rax, qword [rsi + 8]
mov eax, dword [rax + 0x4c]
mov dword [rsp + 0x3c], eax
test r13d, r13d
je 0x1403460d0
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
mov rax, r12
mov r12d, r13d
mov r13, rax
mov rsi, r14
mov ecx, edi
shr rsi, cl
and esi, 1
jne 0x140345890
mov rbx, qword [rbp]
test rbx, rbx
jne 0x14034586d
jmp 0x140345890
mov rax, qword [rbx + 0x20]
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x140345890
mov eax, dword [rbx + 4]
test eax, 0x41000
je 0x1403459e0
test eax, 0x40000
jne 0x140345860
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14034586d
nop dword [rax + rax]
add edi, 1
add rbp, 0x20
cmp r12d, edi
jne 0x140345840
mov rax, qword [rsp + 0x30]
mov r13d, r12d
mov edx, dword [rax + 0x28]
test dh, 0x10
jne 0x140345ac8
test dh, 1
jne 0x140345b9b
mov rax, qword [rsp + 0x30]
mov r11, qword [rax + 0x20]
test r11, r11
je 0x1403459c7
test byte [r11 + 0x64], 4
jne 0x1403459c7
movzx eax, word [r11 + 0x5e]
movzx esi, byte [r11 + 0x62]
mov word [rsp + 0xc6], ax
movzx eax, word [r11 + 0x60]
mov byte [rsp + 0x7b], sil
mov dword [rsp + 0x7c], eax
test sil, sil
je 0x1403460c1
and dh, 0x80
je 0x1403460ef
test eax, eax
je 0x14034596a
mov byte [rsp + 0x7b], 0
jmp 0x140345bb5
mov ebp, r12d
add esi, 1
add rdi, 0x20
cmp r13d, esi
jle 0x140345938
test bpl, bpl
jne 0x140345d00
mov esi, dword [rsp + 0x40]
test esi, esi
je 0x140345d50
movzx eax, word [rsp + 0xc6]
cmp eax, esi
jg 0x140345d50
cmp byte [rsp + 0x48], 0
jne 0x140345d5b
cmp byte [rsp + 0x7b], 0
jne 0x140345d5b
mov r11, r14
mov r10d, r13d
cmp r14, qword [rsp + 0xa0]
je 0x140345ab6
lea ecx, [r10 - 1]
test ecx, ecx
jle 0x1403459c7
mov eax, 1
mov rdx, r11
shl rax, cl
sub rax, 1
and rdx, rax
cmp rdx, rax
je 0x140346169
mov r8d, 1
jmp 0x1403459c2
mov rax, r8
mov rdx, r11
shl rax, cl
sub rax, 1
and rdx, rax
cmp rdx, rax
je 0x140346169
sub ecx, 1
jne 0x1403459a9
xor eax, eax
add rsp, 0x108
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movzx eax, byte [rbx]
add eax, 0x5a
test al, 0xfd
jne 0x140345890
mov eax, dword [rsp + 0x3c]
cmp dword [rbx + 0x2c], eax
jne 0x140345890
mov rax, qword [rsp + 0x150]
movsx r8d, word [rbx + 0x30]
mov r9, r13
mov qword [rsp + 0x28], 0
mov edx, dword [rsp + 0x3c]
lea rcx, [rax + 0x70]
movzx eax, word [rsp + 0x94]
mov dword [rsp + 0x20], eax
call fcn.140345590
mov r8, rax
test rax, rax
je 0x140345890
movzx eax, word [rax + 0x14]
cmp ax, 1
je 0x140346118
mov qword [rsp + 0x48], r8
test al, 0x82
je 0x140345a5b
cmp word [rbx + 0x30], 0
jns 0x140346037
mov ecx, edi
mov eax, 1
add edi, 1
add rbp, 0x20
shl rax, cl
or r14, rax
cmp r12d, edi
jne 0x140345840
jmp 0x14034589c
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 0x28]
test dh, 4
je 0x1403457c4
cmp byte [rax + 0x1d], 0
mov r11, r14
je 0x140346170
test byte [rsp + 0xc8], 0x80
jne 0x140346170
movzx eax, byte [rsp + 0xcc]
jmp 0x1403459c9
mov rsi, qword [rsp + 0x30]
mov rsi, qword [rsi + 8]
or qword [rsp + 0xb0], rsi
mov rdi, qword [rsp + 0x40]
xor ebp, ebp
lea rbx, [0x1403217f0]
lea rsi, [0x140307c70]
jmp 0x140345b2c
mov rax, qword [rsp + 0x150]
mov rdx, r12
lea rcx, [rax + 0x258]
call fcn.140320ed0
test rax, rax
je 0x140345b49
mov rdx, qword [rsp + 0xb0]
not rdx
test rdx, rax
je 0x140345b3a
add ebp, 1
add rdi, 0x20
cmp r13d, ebp
jle 0x14034573b
bt r14, rbp
jb 0x140345b1c
mov r12, qword [rdi]
test r12, r12
jne 0x140345af0
mov eax, 1
mov ecx, ebp
shl rax, cl
or r14, rax
jmp 0x140345b1c
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.14032aeb0
cmp word [rsp + 0xf4], 0
je 0x140345b1c
mov eax, 1
mov ecx, ebp
shl rax, cl
or r14, rax
jmp 0x140345b1c
xor edx, edx
mov dword [rsp + 0x7c], 1
xor r11d, r11d
mov word [rsp + 0xc6], dx
mov byte [rsp + 0x7b], 1
movzx ecx, byte [rsp + 0x38]
mov eax, 1
xor r12d, r12d
mov qword [rsp + 0x58], 1
mov byte [rsp + 0x48], 0
shl rax, cl
mov byte [rsp + 0xc5], 0
mov qword [rsp + 0xb8], rax
mov byte [rsp + 0xc4], 0
jmp 0x140345c45
movzx edx, word [rdi + 0x2e]
cmp edx, r12d
jg 0x140345c5d
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rdi + 0x38]
mov r8, qword [rcx + r12*8]
movzx edx, word [r8 + 0x14]
test word [rsp + 0x94], dx
je 0x140345f86
movzx edi, byte [rsp + 0x7b]
test dx, 0x180
mov eax, 0
cmovne edi, eax
mov byte [rsp + 0x7b], dil
add qword [rsp + 0x58], 1
add r12, 1
cmp dword [rsp + 0x7c], r12d
jle 0x140345954
mov rdi, qword [rsp + 0x30]
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x50], r12d
movzx eax, word [rdi + 0x18]
cmp eax, r12d
jg 0x140345bf0
test r13d, r13d
setg r10b
test r11, r11
je 0x140345fd1
mov rcx, qword [r11 + 0x38]
mov rdx, qword [r11 + 8]
mov dword [rsp + 0x38], 0xffffffff
movzx ecx, byte [rcx + r12]
movzx edx, word [rdx + r12*2]
and ecx, 1
mov byte [rsp + 0x93], cl
mov rcx, qword [r11 + 0x18]
cmp dx, word [rcx + 0x44]
je 0x140345cd0
movsx edi, dx
cmp byte [rsp + 0x7b], 0
mov dword [rsp + 0x38], edi
je 0x140345cd0
test edi, edi
js 0x140345ff2
cmp eax, dword [rsp + 0x50]
jg 0x140345cd0
movsx rax, dx
shl rax, 5
add rax, qword [rcx + 8]
cmp byte [rax + 0x18], 0
setne byte [rsp + 0x7b]
nop dword [rax]
test r10b, r10b
je 0x140345938
lea rax, [r12*8]
mov qword [rsp + 0x80], r12
xor esi, esi
mov r12d, r10d
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x158]
lea rdi, [rax + 8]
nop
mov rbx, r14
mov ecx, esi
shr rbx, cl
and ebx, 1
jne 0x140345920
mov r8, qword [rdi]
mov rdx, r8
test r8, r8
jne 0x140345d39
jmp 0x140345920
mov rax, qword [rdx + 0x20]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140345920
mov eax, dword [rdx + 4]
test eax, 0x41000
je 0x140345d90
test eax, 0x40000
jne 0x140345d28
mov rdx, qword [rdx + 0x10]
jmp 0x140345d30
cmp byte [rsp + 0x48], 0
je 0x14034596a
mov rcx, qword [rsp + 0x30]
mov rsi, qword [rcx + 8]
or qword [rsp + 0xb0], rsi
test r13d, r13d
je 0x14034573b
mov rax, qword [rsp + 0x158]
add rax, 8
mov qword [rsp + 0x40], rax
jmp 0x140345ad9
test byte [rsp + 0x78], 0xc0
setne bpl
cmp dword [rsp + 0x38], 0xffffffff
jl 0x140345f10
movzx eax, byte [rdx]
add eax, 0x5a
test al, 0xfd
jne 0x140345923
mov eax, dword [rsp + 0x3c]
cmp dword [rdx + 0x2c], eax
jne 0x140345923
movsx eax, word [rdx + 0x30]
cmp eax, dword [rsp + 0x38]
jne 0x140345923
cmp dword [rsp + 0x38], 0xffffffff
je 0x140345e44
mov rax, qword [rsp + 0x150]
mov rdx, r8
mov qword [rsp + 0x70], r11
mov rcx, qword [rax]
mov qword [rsp + 0x68], rcx
call fcn.14033ccf0
mov rcx, qword [rsp + 0x68]
mov r11, qword [rsp + 0x70]
test rax, rax
je 0x140345fe6
mov rcx, qword [rsp + 0x60]
mov rdx, qword [r11 + 0x40]
mov r8, qword [rdx + rcx]
mov rcx, qword [rax]
jmp 0x140345e33
movzx edx, byte [r15 + rdx]
cmp byte [r15 + rax], dl
jne 0x140345923
add rbx, 1
movzx eax, byte [rcx + rbx]
movzx edx, byte [r8 + rbx]
cmp eax, edx
jne 0x140345e20
test eax, eax
jne 0x140345e2f
cmp word [rsp + 0x96], 0
mov r12, qword [rsp + 0x80]
je 0x140345e65
mov rax, qword [rsp + 0x30]
movzx ecx, word [rsp + 0x58]
mov word [rax + 0x1e], cx
mov rdi, qword [rsp + 0x158]
movsxd rax, esi
shl rax, 5
movzx eax, byte [rdi + rax + 0x18]
test byte [rsp + 0x78], 0x40
jne 0x140345ec8
cmp byte [rsp + 0xc4], 0
jne 0x140346016
mov edx, eax
and edx, 1
cmp dl, byte [rsp + 0x93]
je 0x140346001
mov rcx, qword [rsp + 0x180]
mov rdi, qword [rsp + 0xb8]
mov byte [rsp + 0xc5], 1
mov byte [rsp + 0xc4], 1
or qword [rcx], rdi
nop dword [rax + rax]
test al, 2
je 0x140345ee6
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + 0x18]
cmp eax, dword [rsp + 0x50]
jne 0x140345938
or dword [rcx + 0x28], 0x80000
movzx edi, byte [rsp + 0x48]
cmp dword [rsp + 0x38], 0xffffffff
mov eax, 1
mov ecx, esi
cmove edi, eax
mov eax, 1
shl rax, cl
mov byte [rsp + 0x48], dil
or r14, rax
jmp 0x140345c30
movsxd rax, dword [rsp + 0x40]
shl rax, 5
add rax, qword [r11 + 0x50]
mov r8, qword [rax + 8]
test r8, r8
jne 0x140345f41
jmp 0x140345923
mov rax, qword [r8 + 0x20]
mov r8, qword [rax + 8]
test r8, r8
je 0x140345923
mov eax, dword [r8 + 4]
test eax, 0x41000
je 0x140345f60
test eax, 0x40000
jne 0x140345f30
mov r8, qword [r8 + 0x10]
jmp 0x140345f38
mov r9d, dword [rsp + 0x3c]
xor ecx, ecx
mov qword [rsp + 0x68], r11
call fcn.140343350
mov r11, qword [rsp + 0x68]
test eax, eax
jne 0x140345923
mov r8, qword [rdi]
jmp 0x140345dd4
test r13d, r13d
setg r10b
and edx, 1
je 0x140345c64
mov rdx, qword [rsp + 0x58]
mov r9, qword [r8]
cmp eax, edx
jg 0x140345fbc
jmp 0x140345c64
add rdx, 1
cmp eax, edx
jle 0x140345c64
mov r8, qword [rcx + rdx*8]
cmp qword [r8], r9
jne 0x140345fb0
xor r10d, r10d
test r11, r11
jne 0x140345c6d
mov dword [rsp + 0x38], 0xffffffff
mov byte [rsp + 0x93], 0
jmp 0x140345cd0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
jmp 0x140345e04
cmp dword [rsp + 0x38], 0xfffffffe
setne byte [rsp + 0x7b]
jmp 0x140345cd0
mov byte [rsp + 0xc5], 0
mov byte [rsp + 0xc4], 1
jmp 0x140345ec8
mov edx, eax
movzx ecx, byte [rsp + 0x93]
xor cl, byte [rsp + 0xc5]
and edx, 1
cmp cl, dl
jne 0x140345938
jmp 0x140345ec8
mov rax, qword [rsp + 0x150]
mov rdx, qword [rbp]
mov rcx, qword [rax]
mov qword [rsp + 0x50], rcx
call fcn.14033ccf0
mov rcx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
test rax, rax
mov rbx, rax
je 0x14034615d
mov rax, qword [r8]
mov r9, qword [rax + 0x18]
mov rdx, qword [rax + 0x10]
test byte [rax + 5], 2
jne 0x140346108
mov r8, r9
call fcn.14033ced0
test rax, rax
je 0x140345890
mov r8, qword [rax]
mov rcx, qword [rbx]
jmp 0x1403460ab
movzx ebx, byte [r15 + rdx]
cmp byte [r15 + rax], bl
jne 0x140345890
add rsi, 1
movzx eax, byte [rcx + rsi]
movzx edx, byte [r8 + rsi]
cmp eax, edx
jne 0x140346098
test eax, eax
jne 0x1403460a7
jmp 0x140345a5b
test eax, eax
jne 0x140345bb5
jmp 0x14034596a
test dh, 0x10
je 0x1403458b0
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rdi + 8]
or qword [rsp + 0xb0], rcx
jmp 0x14034573b
mov byte [rsp + 0x7b], 1
test eax, eax
jne 0x140345bb5
jmp 0x140345d5b
mov r8, rdx
mov rdx, r9
call fcn.14033ced0
jmp 0x140346083
mov rax, qword [rsp + 0x30]
movzx edx, word [rax + 0x2c]
test dx, dx
je 0x140345890
mov rax, qword [rax + 0x38]
sub edx, 1
lea rdx, [rax + rdx*8 + 8]
cmp qword [rax], r8
je 0x140345a5b
add rax, 8
cmp rdx, rax
jne 0x140346136
add edi, 1
add rbp, 0x20
cmp r12d, edi
jne 0x140345840
jmp 0x14034589c
mov rax, qword [rcx]
mov rbx, qword [rax + 0x10]
jmp 0x140346066
mov eax, ecx
jmp 0x1403459c9
cmp qword [rsp + 0xa0], r11
je 0x140345ab6
mov eax, 0xffffffff
jmp 0x1403459c9
jne 0x14034617e
jmp 0x140345ab6