Function at 0x140346b50
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, 0x118
mov r12d, 7
mov rax, qword [rcx]
mov rax, qword [rax]
mov word [rsp + 0x58], r9w
mov r13, rcx
mov r14, rdx
mov r15, r8
mov qword [rsp + 0x90], rax
mov rax, qword [rax]
mov dword [rsp + 0x9c], r9d
cmp byte [rax + 0x63], 0
mov qword [rsp + 0x78], rax
jne 0x140346f84
mov rbx, qword [rcx + 0x18]
movzx esi, word [rbx + 0x1a]
mov eax, dword [rbx + 0x28]
movzx edi, word [rbx + 0x18]
mov word [rsp + 0x5a], si
movzx esi, word [rbx + 0x1c]
mov dword [rsp + 0x54], eax
and eax, 0x20
mov r9d, edi
mov word [rsp + 0x98], si
mov rsi, qword [rbx + 0x16]
cmp eax, 1
sbb eax, eax
mov word [rsp + 0x50], di
mov qword [rsp + 0x88], rsi
movzx esi, word [rbx + 0x2e]
and eax, 0x1a7
add eax, 0x18
mov dword [rsp + 0x6c], edi
lea rdi, [rsp + 0xa0]
mov word [rsp + 0x9a], si
mov rsi, qword [rbx + 0x28]
mov edx, eax
and edx, 0xffffffc3
test byte [r8 + 0x64], 4
mov qword [rsp + 0x80], rsi
movzx esi, word [rbx + 0x2c]
cmovne eax, edx
mov rdx, qword [rcx + 8]
mov rcx, rdi
mov word [rsp + 0x52], si
mov rsi, qword [rbx]
mov qword [rsp + 0x48], rsi
movzx esi, word [rbx + 0x16]
mov qword [rsp + 0x28], r8
mov r8d, dword [r14 + 0x44]
mov dword [rsp + 0x20], eax
mov word [rsp + 0x44], si
call fcn.1403454a0
xor edx, edx
xor r8d, r8d
mov rsi, rax
mov rax, qword [r15 + 0x10]
mov word [rbx + 0x12], dx
mov word [rsp + 0x46], r8w
movsx rax, word [rax]
mov dword [rsp + 0x68], eax
mov rcx, rax
cmp ax, 0xa
jg 0x140347440
test rsi, rsi
je 0x140347510
mov qword [rsp + 0x60], 0
movzx ebp, word [rsp + 0x50]
mov qword [rsp + 0x70], 0
lea rax, [rbp + rbp]
mov qword [rsp + 0x38], rax
movzx eax, word [rsp + 0x52]
add eax, 1
mov dword [rsp + 0x5c], eax
nop dword [rax]
movzx r12d, word [rsi + 0x14]
cmp r12w, 0x100
je 0x140346cc3
test byte [rsi + 0x12], 0x80
je 0x140346ce5
mov rax, qword [r15 + 8]
mov rcx, qword [rsp + 0x38]
movsx rdx, word [rax + rcx]
mov rax, rdx
test edx, edx
jns 0x140346fa0
cmp edx, 0xffffffff
je 0x140346fc0
mov rdx, qword [rsi + 0x28]
mov r8, qword [rbx + 8]
test rdx, r8
jne 0x140346fc0
cmp r12w, 0x10
sete bpl
and bpl, byte [rsi + 0x13]
jne 0x140346fc5
test byte [r14 + 0x3c], 8
je 0x140346d1d
mov rax, qword [rsi]
test byte [rax + 4], 1
je 0x140346fc0
cmp byte [r15 + 0x62], 0
movzx eax, byte [r13 + 0x28]
je 0x140346d3b
movzx ecx, word [r15 + 0x5e]
sub ecx, 1
cmp dword [rsp + 0x6c], ecx
je 0x140347140
or eax, 1
movzx r9d, word [rsp + 0x52]
mov ecx, dword [rsp + 0x5c]
mov byte [r13 + 0x28], al
mov eax, dword [rsp + 0x54]
mov word [rbx + 0x2c], r9w
mov dword [rbx + 0x28], eax
movzx eax, word [rsp + 0x50]
mov word [rbx + 0x18], ax
movzx eax, word [rsp + 0x5a]
mov word [rbx + 0x1a], ax
movzx eax, word [rsp + 0x98]
mov word [rbx + 0x1c], ax
movzx eax, word [rbx + 0x30]
cmp ecx, eax
jle 0x140346da3
mov r8d, ecx
mov rcx, qword [rsp + 0x78]
mov rdx, rbx
call fcn.140315650
test eax, eax
jne 0x140347510
movzx r9d, word [rbx + 0x2c]
mov rdx, qword [rsi + 0x28]
mov r8, qword [rbx + 8]
mov rax, qword [rbx + 0x38]
or rdx, qword [rsp + 0x48]
not r8
lea ecx, [r9 + 1]
and rdx, r8
mov ebp, r12d
mov word [rbx + 0x2c], cx
mov qword [rax + r9*8], rsi
mov qword [rbx], rdx
and bp, 1
je 0x140346fd0
movzx r9d, byte [r15 + 0x64]
mov r8, qword [rsi]
shr r9b, 7
cmp word [rsp + 0x46], 9
setg dl
and r9d, edx
test byte [r8 + 5], 8
jne 0x140347270
mov rax, qword [r8 + 0x20]
test rax, rax
je 0x140346e05
movsxd rcx, dword [rax]
test ecx, ecx
jne 0x1403472c0
test r9b, r9b
jne 0x1403474b8
mov r8d, dword [rbx + 0x28]
xor ebp, ebp
mov r10d, r8d
or r10d, 4
mov dword [rbx + 0x28], r10d
test r10b, 2
jne 0x140347048
movzx eax, word [rbx + 0x18]
movzx edx, word [rsi + 0x10]
movzx r11d, word [rbx + 0x16]
add eax, 1
mov word [rbx + 0x18], ax
test dx, dx
jle 0x1403470f0
mov rdx, qword [r15 + 0x10]
movzx eax, ax
add r11w, word [rdx + rax*2]
sub r11w, word [rdx + rax*2 - 2]
test r12w, 0x100
je 0x140346e64
add r11d, 0xa
mov word [rbx + 0x16], r11w
mov esi, r11d
movsx ecx, word [r15 + 0x5c]
mov rdx, qword [r14 + 0x20]
mov eax, ecx
shl eax, 4
sub eax, ecx
movsx ecx, word [rdx + 0x4c]
cdq
idiv ecx
movsx ecx, word [rsp + 0x46]
lea eax, [r11 + rax + 1]
movsx edx, ax
call fcn.14030cea0
and r10d, 0x140
jne 0x140346ead
lea edx, [r11 + 0x10]
movsx ecx, ax
movsx edx, dx
call fcn.14030cea0
add bp, word [rsp + 0x58]
mov rcx, qword [r13 + 8]
mov rdx, rbx
add eax, ebp
add r11d, ebp
mov r8d, dword [rsp + 0x68]
mov word [rbx + 0x14], ax
mov word [rbx + 0x16], r11w
call fcn.1403088a0
mov rdx, rbx
mov rcx, r13
call fcn.1403157a0
mov r12d, eax
mov eax, dword [rbx + 0x28]
test al, 2
cmovne si, word [rsp + 0x44]
mov word [rbx + 0x16], si
test al, 0x10
jne 0x140346f28
movzx eax, word [rbx + 0x18]
cmp ax, word [r15 + 0x60]
jae 0x140346f28
cmp ax, word [r15 + 0x5e]
jb 0x140346f10
movzx eax, byte [r15 + 0x64]
and eax, 3
cmp al, 2
je 0x140346f28
movsx r9d, bp
mov r8, r15
mov rdx, r14
mov rcx, r13
call fcn.140346b50
nop word [rax + rax]
movzx eax, word [rsp + 0x44]
test r12d, r12d
sete bpl
mov word [rbx + 0x16], ax
mov rcx, rdi
call fcn.1403450b0
mov rsi, rax
test rax, rax
je 0x140346f51
test bpl, bpl
jne 0x140346cb0
mov rax, qword [rsp + 0x48]
movzx edi, word [rsp + 0x9a]
mov qword [rbx], rax
mov rax, qword [rsp + 0x88]
mov qword [rbx + 0x16], rax
mov rax, qword [rsp + 0x80]
mov qword [rbx + 0x28], rax
cmp word [rsp + 0x50], di
je 0x140347300
mov eax, r12d
add rsp, 0x118
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [r15 + 0x18]
shl rax, 5
add rax, qword [rdx + 8]
cmp byte [rax + 0x18], 0
je 0x140346ce5
nop word cs:[rax + rax]
mov ebp, 1
xor r12d, r12d
jmp 0x140346f38
mov eax, dword [rbx + 0x28]
test r12b, 0x82
je 0x140347120
mov rdx, qword [r15 + 8]
mov rcx, qword [rsp + 0x38]
mov r10d, eax
or r10d, 1
movsx edx, word [rdx + rcx]
mov dword [rbx + 0x28], r10d
cmp edx, 0xffffffff
je 0x140347248
test edx, edx
js 0x14034701e
cmp word [rsp + 0x58], 0
jne 0x14034701e
movzx edx, word [r15 + 0x5e]
mov ecx, edx
sub edx, 1
cmp dword [rsp + 0x6c], edx
je 0x14034720c
cmp byte [rsp + 0xc2], 1
jbe 0x140346e1f
or r10d, 0x200000
mov dword [rbx + 0x28], r10d
test r10b, 2
je 0x140346e29
nop dword [rax]
movsx r11d, word [rbx + 0x16]
xor edx, edx
cmp qword [rsp + 0x60], 0
mov eax, r11d
je 0x14034707f
mov rsi, qword [rsp + 0x60]
movzx edx, word [rsi + 0x10]
test dx, dx
jle 0x140347200
mov rsi, qword [rsp + 0x60]
mov edx, 1
test byte [rsi + 0x12], 0x80
jne 0x14034707f
sub eax, 0x14
cmp qword [rsp + 0x70], 0
je 0x1403470c9
mov rsi, qword [rsp + 0x70]
movzx ecx, word [rsi + 0x10]
test cx, cx
jle 0x1403471f0
mov rsi, qword [rsp + 0x70]
lea r9d, [rax - 0x14]
test byte [rsi + 0x12], 0x80
cmove eax, r9d
mov rsi, qword [rsp + 0x60]
add edx, 1
test rsi, rsi
je 0x1403470c9
cmp word [rsi + 0x10], 0
jle 0x1403470c9
lea r9d, [rax - 0x14]
test cx, cx
cmovg eax, r9d
sub r11d, edx
cmp ax, 0xa
mov edx, 0xa
cmovl eax, edx
cwde
cmp eax, r11d
cmovle r11d, eax
mov word [rbx + 0x16], r11w
mov esi, r11d
jmp 0x140346e6c
mov rcx, qword [r15 + 8]
mov rsi, qword [rsp + 0x38]
cmp word [rcx + rsi], 0
js 0x140346e46
add r11d, edx
sub r11d, ebp
mov word [rbx + 0x16], r11w
mov esi, r11d
jmp 0x140346e6c
mov ebp, r12d
and bp, 0x100
je 0x140347150
or eax, 8
xor ebp, ebp
mov dword [rbx + 0x28], eax
mov r10d, eax
jmp 0x140346e1f
or eax, 2
jmp 0x140346d3e
mov edx, dword [r14 + 0x44]
test r12b, 0x24
je 0x140347458
or eax, 0x22
mov r9d, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x90]
mov r8, r15
mov dword [rbx + 0x28], eax
mov qword [rsp + 0x20], rsi
call fcn.14033cf30
mov word [rbx + 0x1a], ax
test byte [rsi + 0x13], 1
je 0x140347540
movzx r8d, word [rbx + 0x2c]
lea rax, [rsi + 0x38]
movzx edx, word [rbx + 0x30]
mov qword [rsp + 0x70], rax
mov rax, r8
add r8d, 1
cmp r8d, edx
jg 0x140347564
lea ecx, [rax + 1]
mov r10d, dword [rbx + 0x28]
mov rdx, qword [rbx + 0x38]
mov word [rbx + 0x2c], cx
mov rcx, qword [rsp + 0x70]
or r10d, 0x10
mov qword [rdx + rax*8], rcx
mov eax, 1
mov dword [rbx + 0x28], r10d
mov word [rbx + 0x1c], ax
test r10b, 2
jne 0x140347552
mov qword [rsp + 0x60], rsi
jmp 0x140346e29
add eax, ecx
jmp 0x1403470aa
add eax, edx
mov edx, 1
jmp 0x14034707f
test byte [r15 + 0x64], 8
jne 0x140347248
cmp cx, 1
je 0x140347237
or eax, 0x10001
cmp byte [rsp + 0xc2], 1
mov dword [rbx + 0x28], eax
mov r10d, eax
ja 0x14034702c
jmp 0x140346e1f
cmp byte [r15 + 0x62], 0
je 0x140347219
cmp r12w, 2
jne 0x140347219
nop dword [rax]
or eax, 0x1001
cmp byte [rsp + 0xc2], 1
mov dword [rbx + 0x28], eax
mov r10d, eax
ja 0x14034702c
jmp 0x140346e1f
cmp cx, 1
jbe 0x14034757e
movzx ecx, cx
xor ebp, ebp
lea edx, [rcx - 2]
mov ecx, 0x2e
lea r11, [rax + rdx*8 + 8]
nop dword [rax]
mov rdx, qword [rax]
test rdx, rdx
je 0x14034729f
cmp qword [rdx], r8
cmove rcx, rbp
add rax, 8
cmp r11, rax
jne 0x140347290
mov ebp, ecx
test r9b, r9b
jne 0x1403472d0
mov r8d, dword [rbx + 0x28]
jmp 0x140346e14
call fcn.14030b730
movsx rcx, ax
mov ebp, ecx
test r9b, r9b
je 0x1403472af
mov rax, qword [r15 + 0x10]
mov rdx, qword [rsp + 0x38]
movzx r9d, word [rax + rdx]
xor eax, eax
cmp ecx, 0xa
jle 0x1403474ca
call fcn.14030b730
sub eax, 0x21
jmp 0x1403474ca
mov eax, dword [rsp + 0x6c]
movzx edx, word [r15 + 0x5e]
add eax, 1
cmp eax, edx
jge 0x140346f84
movzx edi, word [rsp + 0x52]
cmp word [rsp + 0x50], di
jne 0x140346f84
movzx eax, byte [r15 + 0x64]
and eax, 0xffffffc0
cmp al, 0x80
jne 0x140346f84
mov rcx, qword [rsp + 0x78]
test byte [rcx + 0x5d], 0x40
jne 0x140346f84
movzx edx, word [rsp + 0x50]
mov rax, qword [r15 + 0x10]
lea rsi, [rdx + rdx + 2]
lea r9, [rax + rsi]
cmp word [r9], 0x29
jle 0x140346f84
movzx r8d, di
movzx edx, word [rbx + 0x30]
add r8d, 1
cmp r8d, edx
jle 0x1403475ae
mov rdx, rbx
call fcn.140315650
mov r12d, eax
test eax, eax
jne 0x140346f84
movzx eax, word [rbx + 0x2c]
movzx ecx, word [rbx + 0x18]
movzx edx, word [rbx + 0x2e]
mov r8d, dword [rbx + 0x28]
mov word [rsp + 0x52], ax
mov rax, qword [r15 + 0x10]
movzx r10d, word [rbx + 0x16]
lea r9, [rax + rsi]
movzx edi, word [rsp + 0x52]
add ecx, 1
add edx, 1
xor r12d, r12d
mov word [rbx + 0x18], cx
mov rcx, qword [rbx + 0x38]
or r8d, 0x8000
mov word [rbx + 0x2e], dx
lea edx, [rdi + 1]
mov word [rbx + 0x2c], dx
movzx edx, di
movzx eax, word [rax + rsi - 2]
mov qword [rcx + rdx*8], 0
movzx ecx, word [r9]
movzx edi, word [rsp + 0x9c]
mov dword [rbx + 0x28], r8d
mov r8, r15
lea edx, [r10 + rcx]
sub edx, eax
lea eax, [rax + rdi + 5]
mov word [rbx + 0x16], dx
sub eax, ecx
mov rdx, r14
mov rcx, r13
movsx r9d, ax
call fcn.140346b50
movzx eax, word [rsp + 0x44]
mov word [rbx + 0x16], ax
movzx eax, word [rsp + 0x50]
mov word [rbx + 0x18], ax
movzx eax, word [rsp + 0x9a]
mov word [rbx + 0x2e], ax
mov eax, dword [rsp + 0x54]
mov dword [rbx + 0x28], eax
jmp 0x140346f84
call fcn.14030b730
sub eax, 0x21
mov word [rsp + 0x46], ax
jmp 0x140346c77
or eax, 0x12
mov r9d, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x90]
mov r8, r15
mov dword [rbx + 0x28], eax
mov qword [rsp + 0x20], rsi
call fcn.14033cf30
mov r10d, dword [rbx + 0x28]
mov word [rbx + 0x1c], ax
test r10b, 0x20
jne 0x140347520
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x60], 0
test r10b, 2
je 0x140346e29
movsx r11d, word [rbx + 0x16]
xor edx, edx
mov eax, r11d
jmp 0x140347087
mov rax, qword [r15 + 0x10]
mov rcx, qword [rsp + 0x38]
xor ebp, ebp
movzx r9d, word [rax + rcx]
xor eax, eax
sub ax, word [rsp + 0x46]
lea r9d, [r9 + rax + 0xa]
cmp r9w, bp
jns 0x1403472af
cmp word [rsp + 0x58], 1
jg 0x140346fc0
mov rax, qword [rsp + 0x78]
test byte [rax + 0x5e], 2
jne 0x140346fc0
mov r8d, dword [rbx + 0x28]
or r8d, 0x100000
jmp 0x140346e14
xor r12d, r12d
jmp 0x140346f51
movzx edx, word [rbx + 0x2c]
mov rax, qword [rbx + 0x38]
mov qword [rsp + 0x70], rsi
mov rax, qword [rax + rdx*8 - 0x10]
mov qword [rsp + 0x60], rax
jmp 0x140346e1f
mov qword [rsp + 0x70], 0
mov r10d, dword [rbx + 0x28]
jmp 0x1403471d7
movsx r11d, word [rbx + 0x16]
mov qword [rsp + 0x60], rsi
mov eax, r11d
jmp 0x14034705a
mov rcx, qword [rsp + 0x78]
mov rdx, rbx
call fcn.140315650
test eax, eax
jne 0x140347510
movzx eax, word [rbx + 0x2c]
jmp 0x1403471ae
test r9b, r9b
jne 0x140347591
mov r8d, dword [rbx + 0x28]
mov ebp, 0x2e
jmp 0x140346e14
mov rcx, qword [rsp + 0x38]
mov rax, qword [r15 + 0x10]
mov ebp, 0x2e
movzx r9d, word [rax + rcx]
mov ecx, 0x2e
jmp 0x1403472e9
movzx ecx, word [rsp + 0x50]
movzx r10d, word [rsp + 0x44]
mov r8d, dword [rsp + 0x54]
mov edx, ecx
jmp 0x1403473aa