Function at 0x140185d40
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 0x140186174
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.140184680
xor r8d, r8d
xor r9d, r9d
mov rsi, rax
mov rax, qword [r15 + 0x10]
mov word [rbx + 0x12], r8w
mov word [rsp + 0x46], r9w
movsx rax, word [rax]
mov dword [rsp + 0x68], eax
mov rcx, rax
cmp ax, 0xa
jg 0x140186630
test rsi, rsi
je 0x140186700
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
movzx r12d, word [rsi + 0x14]
cmp r12w, 0x100
je 0x140185eb3
test byte [rsi + 0x12], 0x80
je 0x140185ed5
mov rax, qword [r15 + 8]
mov rcx, qword [rsp + 0x38]
movsx rdx, word [rax + rcx]
mov rax, rdx
test edx, edx
jns 0x140186190
cmp edx, 0xffffffff
je 0x1401861b0
mov rdx, qword [rsi + 0x28]
mov r8, qword [rbx + 8]
test rdx, r8
jne 0x1401861b0
cmp r12w, 0x10
sete bpl
and bpl, byte [rsi + 0x13]
jne 0x1401861b5
test byte [r14 + 0x3c], 8
je 0x140185f0d
mov rax, qword [rsi]
test byte [rax + 4], 1
je 0x1401861b0
cmp byte [r15 + 0x62], 0
movzx eax, byte [r13 + 0x28]
je 0x140185f2b
movzx ecx, word [r15 + 0x5e]
sub ecx, 1
cmp dword [rsp + 0x6c], ecx
je 0x140186330
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 0x140185f93
mov r8d, ecx
mov rcx, qword [rsp + 0x78]
mov rdx, rbx
call fcn.140154310
test eax, eax
jne 0x140186700
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 0x1401861c0
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 0x140186460
mov rax, qword [r8 + 0x20]
test rax, rax
je 0x140185ff5
movsxd rcx, dword [rax]
test ecx, ecx
jne 0x1401864b0
test r9b, r9b
jne 0x1401866a8
mov r8d, dword [rbx + 0x28]
xor ebp, ebp
mov r10d, r8d
or r10d, 4
mov dword [rbx + 0x28], r10d
test r10b, 2
jne 0x140186238
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 0x1401862e0
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 0x140186054
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 + 0x3c]
cdq
idiv ecx
movsx ecx, word [rsp + 0x46]
lea eax, [r11 + rax + 1]
movsx edx, ax
call fcn.14014bb90
and r10d, 0x140
jne 0x14018609d
lea edx, [r11 + 0x10]
movsx ecx, ax
movsx edx, dx
call fcn.14014bb90
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.140147630
mov rdx, rbx
mov rcx, r13
call fcn.140154460
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 0x140186118
movzx eax, word [rbx + 0x18]
cmp ax, word [r15 + 0x60]
jae 0x140186118
cmp ax, word [r15 + 0x5e]
jb 0x140186100
movzx eax, byte [r15 + 0x64]
and eax, 3
cmp al, 2
je 0x140186118
movsx r9d, bp
mov r8, r15
mov rdx, r14
mov rcx, r13
call fcn.140185d40
nop word [rax + rax]
movzx eax, word [rsp + 0x44]
test r12d, r12d
sete bpl
mov word [rbx + 0x16], ax
mov rcx, rdi
call fcn.140184270
mov rsi, rax
test rax, rax
je 0x140186141
test bpl, bpl
jne 0x140185ea0
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 0x1401864f0
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]
lea rax, [rax + rax*2]
mov rcx, qword [rdx + 8]
lea rax, [rcx + rax*8]
test byte [rax + 8], 0xf
je 0x140185ed5
nop word [rax + rax]
mov ebp, 1
xor r12d, r12d
jmp 0x140186128
mov eax, dword [rbx + 0x28]
test r12b, 0x82
je 0x140186310
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 0x140186438
test edx, edx
js 0x14018620e
cmp word [rsp + 0x58], 0
jne 0x14018620e
movzx edx, word [r15 + 0x5e]
mov ecx, edx
sub edx, 1
cmp dword [rsp + 0x6c], edx
je 0x1401863fc
cmp byte [rsp + 0xc2], 1
jbe 0x14018600f
or r10d, 0x200000
mov dword [rbx + 0x28], r10d
test r10b, 2
je 0x140186019
nop dword [rax]
movsx r11d, word [rbx + 0x16]
xor edx, edx
cmp qword [rsp + 0x60], 0
mov eax, r11d
je 0x14018626f
mov rsi, qword [rsp + 0x60]
movzx edx, word [rsi + 0x10]
test dx, dx
jle 0x1401863f0
mov rsi, qword [rsp + 0x60]
mov edx, 1
test byte [rsi + 0x12], 0x80
jne 0x14018626f
sub eax, 0x14
cmp qword [rsp + 0x70], 0
je 0x1401862b9
mov rsi, qword [rsp + 0x70]
movzx ecx, word [rsi + 0x10]
test cx, cx
jle 0x1401863e0
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 0x1401862b9
cmp word [rsi + 0x10], 0
jle 0x1401862b9
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 0x14018605c
mov rcx, qword [r15 + 8]
mov rsi, qword [rsp + 0x38]
cmp word [rcx + rsi], 0
js 0x140186036
add r11d, edx
sub r11d, ebp
mov word [rbx + 0x16], r11w
mov esi, r11d
jmp 0x14018605c
mov ebp, r12d
and bp, 0x100
je 0x140186340
or eax, 8
xor ebp, ebp
mov dword [rbx + 0x28], eax
mov r10d, eax
jmp 0x14018600f
or eax, 2
jmp 0x140185f2e
mov edx, dword [r14 + 0x44]
test r12b, 0x24
je 0x140186648
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.14017bf00
mov word [rbx + 0x1a], ax
test byte [rsi + 0x13], 1
je 0x140186730
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 0x140186754
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 0x140186742
mov qword [rsp + 0x60], rsi
jmp 0x140186019
add eax, ecx
jmp 0x14018629a
add eax, edx
mov edx, 1
jmp 0x14018626f
test byte [r15 + 0x64], 8
jne 0x140186438
cmp cx, 1
je 0x140186427
or eax, 0x10001
cmp byte [rsp + 0xc2], 1
mov dword [rbx + 0x28], eax
mov r10d, eax
ja 0x14018621c
jmp 0x14018600f
cmp byte [r15 + 0x62], 0
je 0x140186409
cmp r12w, 2
jne 0x140186409
nop dword [rax]
or eax, 0x1001
cmp byte [rsp + 0xc2], 1
mov dword [rbx + 0x28], eax
mov r10d, eax
ja 0x14018621c
jmp 0x14018600f
cmp cx, 1
jbe 0x14018676e
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 0x14018648f
cmp qword [rdx], r8
cmove rcx, rbp
add rax, 8
cmp r11, rax
jne 0x140186480
mov ebp, ecx
test r9b, r9b
jne 0x1401864c0
mov r8d, dword [rbx + 0x28]
jmp 0x140186004
call fcn.14014a420
movsx rcx, ax
mov ebp, ecx
test r9b, r9b
je 0x14018649f
mov rax, qword [r15 + 0x10]
mov rdx, qword [rsp + 0x38]
movzx r9d, word [rax + rdx]
xor eax, eax
cmp ecx, 0xa
jle 0x1401866ba
call fcn.14014a420
sub eax, 0x21
jmp 0x1401866ba
mov eax, dword [rsp + 0x6c]
movzx edx, word [r15 + 0x5e]
add eax, 1
cmp eax, edx
jge 0x140186174
movzx edi, word [rsp + 0x52]
cmp word [rsp + 0x50], di
jne 0x140186174
movzx eax, byte [r15 + 0x64]
and eax, 0xffffffc0
cmp al, 0x80
jne 0x140186174
mov rcx, qword [rsp + 0x78]
test byte [rcx + 0x5d], 0x40
jne 0x140186174
movzx edx, word [rsp + 0x50]
mov rax, qword [r15 + 0x10]
lea rsi, [rdx + rdx + 2]
lea r9, [rax + rsi]
cmp word [r9], 0x29
jle 0x140186174
movzx r8d, di
movzx edx, word [rbx + 0x30]
add r8d, 1
cmp r8d, edx
jle 0x14018679e
mov rdx, rbx
call fcn.140154310
mov r12d, eax
test eax, eax
jne 0x140186174
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.140185d40
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 0x140186174
call fcn.14014a420
sub eax, 0x21
mov word [rsp + 0x46], ax
jmp 0x140185e69
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.14017bf00
mov r10d, dword [rbx + 0x28]
mov word [rbx + 0x1c], ax
test r10b, 0x20
jne 0x140186710
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x60], 0
test r10b, 2
je 0x140186019
movsx r11d, word [rbx + 0x16]
xor edx, edx
mov eax, r11d
jmp 0x140186277
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 0x14018649f
cmp word [rsp + 0x58], 1
jg 0x1401861b0
mov rax, qword [rsp + 0x78]
test byte [rax + 0x5e], 2
jne 0x1401861b0
mov r8d, dword [rbx + 0x28]
or r8d, 0x100000
jmp 0x140186004
xor r12d, r12d
jmp 0x140186141
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 0x14018600f
mov qword [rsp + 0x70], 0
mov r10d, dword [rbx + 0x28]
jmp 0x1401863c7
movsx r11d, word [rbx + 0x16]
mov qword [rsp + 0x60], rsi
mov eax, r11d
jmp 0x14018624a
mov rcx, qword [rsp + 0x78]
mov rdx, rbx
call fcn.140154310
test eax, eax
jne 0x140186700
movzx eax, word [rbx + 0x2c]
jmp 0x14018639e
test r9b, r9b
jne 0x140186781
mov r8d, dword [rbx + 0x28]
mov ebp, 0x2e
jmp 0x140186004
mov rcx, qword [rsp + 0x38]
mov rax, qword [r15 + 0x10]
mov ebp, 0x2e
movzx r9d, word [rax + rcx]
mov ecx, 0x2e
jmp 0x1401864d9
movzx ecx, word [rsp + 0x50]
movzx r10d, word [rsp + 0x44]
mov r8d, dword [rsp + 0x54]
mov edx, ecx
jmp 0x14018659a