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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xf8
mov qword [rbp - 0x51], 0xfffffffffffffffe
mov rax, qword [0x180248950]
xor rax, rsp
mov qword [rbp + 7], rax
mov rbx, r9
mov qword [rbp - 0x59], rbx
mov qword [rbp - 0x71], r8
mov rdi, rdx
mov qword [rsp + 0x40], rdx
mov rsi, rcx
mov qword [rbp - 0x69], rdx
call fcn.18004dd50
mov r14, rax
mov qword [rbp - 0x79], rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
mov edx, 8
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
mov r12, rax
mov qword [rsp + 0x38], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r15, rax
mov qword [rsp + 0x50], rax
movzx eax, bx
mov dword [rsp + 0x30], eax
mov rax, rbx
shr rax, 0x10
mov qword [rbp - 0x61], rax
movzx eax, ax
mov dword [rsp + 0x34], eax
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x48], rbx
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.USER32.dll_ClientToScreen]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_WindowFromPoint]
mov qword [rsp + 0x28], rax
test r15, r15
je 0x180051df7
cmp rax, qword [r15 + 0x28]
jne 0x180051df7
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.USER32.dll_ScreenToClient]
mov edx, 0x7f89
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov r8, qword [rsp + 0x48]
lea rdx, [rsp + 0x28]
mov rcx, r14
call fcn.1800642b0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x18005277e
mov rcx, qword [rsi + 0x158]
mov rax, qword [rcx]
call qword [rax + 0x88]
mov edi, eax
xor r14d, r14d
mov r13d, r14d
mov r12d, r14d
mov rcx, qword [rsi + 0x140]
mov r8, qword [rcx]
lea edx, [r14 + 0x7b]
call qword [r8]
mov dword [rsp + 0x58], eax
test edi, edi
jle 0x1800524c6
nop
mov rcx, qword [rsi + 0x158]
mov r8, qword [rcx]
mov edx, r14d
call qword [r8 + 0x20]
mov r15, rax
mov rdx, qword [rax + 0x10]
mov ecx, dword [rdx]
mov dword [rbp - 0x49], ecx
mov ecx, dword [rdx + 4]
mov dword [rbp - 0x45], ecx
mov ecx, dword [rdx + 8]
mov dword [rbp - 0x41], ecx
mov ecx, dword [rdx + 0xc]
mov dword [rbp - 0x3d], ecx
xor r13d, r13d
cmp dword [rsp + 0x30], r12d
jne 0x180051e70
cmp dword [rsp + 0x34], r12d
je 0x180051e88
mov rdx, rbx
lea rcx, [rbp - 0x49]
call qword [sym.imp.USER32.dll_PtInRect]
mov dword [rsp + 0x20], eax
test eax, eax
jne 0x180051e9a
mov r13d, eax
inc r14d
cmp r14d, edi
jl 0x180051e30
mov r15, qword [rsp + 0x50]
jmp 0x1800524c6
mov rcx, qword [rsi + 0x158]
mov rax, qword [rcx]
call qword [rax + 0x78]
cmp eax, r14d
je 0x1800524bc
mov rcx, qword [rsi + 0x158]
mov rdi, qword [rcx]
call qword [rdi + 0x78]
mov edx, eax
mov rcx, qword [rsi + 0x158]
call qword [rdi + 0x18]
mov r13, rax
mov rcx, qword [rsi + 0x158]
mov rdi, qword [rcx]
call qword [rdi + 0x68]
mov edx, eax
mov rcx, qword [rsi + 0x158]
call qword [rdi + 0x18]
mov rdi, rax
cmp dword [r15 + 4], 0xa
je 0x180051f14
mov rcx, qword [rsi + 0x158]
mov r8, qword [rcx]
mov edx, r14d
call qword [r8 + 0x80]
mov rcx, qword [rsi + 0x158]
mov r8, qword [rcx]
or edx, 0xffffffff
call qword [r8 + 0x70]
mov rax, qword [rsi]
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call qword [rax + 0x10]
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x10]
test r13, r13
je 0x180051f5c
mov rcx, qword [r13 + 0x10]
mov eax, dword [rcx]
mov dword [rbp - 0x49], eax
mov eax, dword [rcx + 4]
mov dword [rbp - 0x45], eax
mov eax, dword [rcx + 8]
mov dword [rbp - 0x41], eax
mov eax, dword [rcx + 0xc]
mov dword [rbp - 0x3d], eax
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x10]
test rdi, rdi
je 0x180051f89
mov rcx, qword [rdi + 0x10]
mov eax, dword [rcx]
mov dword [rbp - 0x49], eax
mov eax, dword [rcx + 4]
mov dword [rbp - 0x45], eax
mov eax, dword [rcx + 8]
mov dword [rbp - 0x41], eax
mov eax, dword [rcx + 0xc]
mov dword [rbp - 0x3d], eax
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x10]
cmp dword [r15 + 4], 0xa
je 0x180051fa6
mov edx, 0x7f89
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, qword [rsi + 0x158]
mov rax, qword [rcx]
mov edx, r14d
call qword [rax + 0x20]
mov r14, rax
cmp dword [rax + 4], r12d
jne 0x1800522f8
mov rcx, qword [rax + 0x18]
cmp dword [rcx + 8], 2
je 0x18005203b
cmp dword [rcx + 8], 1
je 0x18005203b
cmp dword [rcx + 8], 3
je 0x18005203b
cmp dword [rcx + 8], 5
je 0x18005203b
movsxd rcx, dword [rcx + 8]
cmp ecx, 0x35
ja 0x180052003
movabs rdx, 0x20000000800008
bt rdx, rcx
jae 0x180052003
mov r12d, 1
jmp 0x1800522f8
cmp ecx, 9
jne 0x180052011
lea r12d, [rcx - 8]
jmp 0x1800522f8
xor r15d, r15d
cmp ecx, 0x1c
je 0x1800522f8
cmp ecx, 0x10
je 0x1800522f8
cmp ecx, 0x30
je 0x1800522f8
cmp ecx, 0x31
setne r12b
jmp 0x1800522f8
mov rdx, qword [rsi + 0x150]
add rdx, 0x208
mov qword [rbp - 1], 7
xor r15d, r15d
mov qword [rbp - 9], r15
mov word [rbp - 0x19], r15w
cmp word [rdx], r12w
jne 0x180052068
mov r8d, r15d
jmp 0x18005207a
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], r12w
jne 0x180052070
lea rcx, [rbp - 0x19]
call fcn.180005450
nop
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], r15
mov word [rbp - 0x39], r15w
lea rdx, [r14 + 0x40]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x39]
call fcn.180005100
nop
mov edx, 0x27
xor r8d, r8d
lea rcx, [rbp - 0x19]
call fcn.1800215a0
cmp eax, 0xffffffff
je 0x18005217b
nop word [rax + rax]
movsxd rcx, eax
mov rdx, qword [rbp - 9]
cmp rdx, rcx
jb 0x18005216e
mov rax, rdx
sub rax, rcx
cmp rax, 1
lea rax, [rbp - 0x19]
ja 0x180052105
mov qword [rbp - 9], rcx
cmp qword [rbp - 1], 8
cmovae rax, qword [rbp - 0x19]
mov word [rax + rcx*2], r15w
jmp 0x180052152
mov r8, qword [rbp - 0x19]
mov r9, qword [rbp - 1]
cmp r9, 8
cmovae rax, r8
lea r10, [rax + rcx*2]
lea rdi, [rdx - 1]
mov rax, rdi
sub rax, rcx
je 0x18005213d
lea r8, [rax + rax]
lea rdx, [r10 + 2]
mov rcx, r10
call fcn.1800b54c0
mov r9, qword [rbp - 1]
mov r8, qword [rbp - 0x19]
mov qword [rbp - 9], rdi
lea rax, [rbp - 0x19]
cmp r9, 8
cmovae rax, r8
mov word [rax + rdi*2], r15w
mov edx, 0x27
xor r8d, r8d
lea rcx, [rbp - 0x19]
call fcn.1800215a0
cmp eax, 0xffffffff
jne 0x1800520d0
jmp 0x18005217b
lea rcx, str.invalid_string_position
call fcn.1800b2ca8
int3
mov edx, 0x27
xor r8d, r8d
lea rcx, [rbp - 0x39]
call fcn.1800215a0
cmp eax, 0xffffffff
je 0x18005224b
nop word [rax + rax]
movsxd rcx, eax
mov rdx, qword [rbp - 0x29]
cmp rdx, rcx
jb 0x18005223e
mov rax, rdx
sub rax, rcx
cmp rax, 1
lea rax, [rbp - 0x39]
ja 0x1800521d5
mov qword [rbp - 0x29], rcx
cmp qword [rbp - 0x21], 8
cmovae rax, qword [rbp - 0x39]
mov word [rax + rcx*2], r15w
jmp 0x180052222
mov r8, qword [rbp - 0x39]
mov r9, qword [rbp - 0x21]
cmp r9, 8
cmovae rax, r8
lea r10, [rax + rcx*2]
lea rdi, [rdx - 1]
mov rax, rdi
sub rax, rcx
je 0x18005220d
lea r8, [rax + rax]
lea rdx, [r10 + 2]
mov rcx, r10
call fcn.1800b54c0
mov r9, qword [rbp - 0x21]
mov r8, qword [rbp - 0x39]
mov qword [rbp - 0x29], rdi
lea rax, [rbp - 0x39]
cmp r9, 8
cmovae rax, r8
mov word [rax + rdi*2], r15w
mov edx, 0x27
xor r8d, r8d
lea rcx, [rbp - 0x39]
call fcn.1800215a0
cmp eax, 0xffffffff
jne 0x1800521a0
jmp 0x18005224b
lea rcx, str.invalid_string_position
call fcn.1800b2ca8
int3
lea rdx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rdx, qword [rbp - 0x39]
lea rax, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rax, qword [rbp - 0x19]
sub rdx, rax
nop word [rax + rax]
movzx r8d, word [rax]
movzx ecx, word [rax + rdx]
sub r8d, ecx
jne 0x180052285
add rax, 2
test ecx, ecx
jne 0x180052270
mov edx, 1
test r8d, r8d
cmove r12d, edx
mov rcx, qword [rsi + 0x140]
mov rax, qword [rcx]
call qword [rax]
mov edi, eax
mov rcx, qword [rsi + 0x140]
mov r8, qword [rcx]
mov edx, 2
call qword [r8]
test r12d, r12d
je 0x1800522c7
test edi, edi
je 0x1800522c7
test eax, eax
je 0x1800522c7
cmp qword [rbp - 0x29], 4
cmovbe r12d, r15d
cmp qword [rbp - 0x21], 8
jb 0x1800522d7
mov rcx, qword [rbp - 0x39]
call fcn.1800b5354
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], r15
mov word [rbp - 0x39], r15w
cmp qword [rbp - 1], 8
jb 0x1800522f8
mov rcx, qword [rbp - 0x19]
call fcn.1800b5354
mov rcx, qword [rsi + 0x140]
mov rax, qword [rcx]
mov edx, 0x24
call qword [rax]
test eax, eax
jne 0x180052486
test r12d, r12d
je 0x180052486
mov qword [rsp + 0x28], 0
mov qword [rbp - 0x39], 0
mov qword [rbp - 0x31], 0
lea rdx, [rbp - 0x39]
mov r12, qword [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rsp + 0x28]
cmp dword [rsp + 0x58], 1
jne 0x18005237f
mov rdi, qword [r14 + 0x10]
mov eax, dword [rdi]
mov dword [rsp + 0x28], eax
mov eax, dword [rdi + 0xc]
add eax, 5
mov dword [rsp + 0x2c], eax
mov rcx, r12
call qword [sym.imp.USER32.dll_ClientToScreen]
mov ecx, dword [rdi + 0xc]
mov eax, dword [rbp - 0x35]
add eax, 5
add ecx, eax
mov dword [rsp + 0x2c], ecx
jmp 0x18005239d
mov rcx, qword [r14 + 0x10]
mov eax, dword [rcx + 8]
add eax, 5
mov dword [rsp + 0x28], eax
mov eax, dword [rcx + 4]
mov dword [rsp + 0x2c], eax
mov rcx, r12
call qword [sym.imp.USER32.dll_ClientToScreen]
mov rdi, qword [rbp - 0x79]
mov qword [rdi + 0x78], r14
mov rcx, qword [rdi + 0x80]
test rcx, rcx
je 0x1800523b9
mov rax, qword [rcx]
call qword [rax + 0x40]
mov dword [rdi], eax
mov r15, qword [rsp + 0x50]
mov r13d, dword [rsp + 0x30]
mov r14d, dword [rsp + 0x34]
test r15, r15
je 0x180052424
mov eax, dword [rsi + 0x1a8]
cmp r13d, eax
jne 0x1800523e1
cmp r14d, dword [rsi + 0x1ac]
je 0x180052411
test eax, eax
je 0x180052411
cmp dword [rsi + 0x1ac], 0
je 0x180052411
mov edx, 6
mov rcx, qword [r15 + 0x28]
call qword [sym.imp.USER32.dll_KillTimer]
call qword [sym.imp.USER32.dll_ReleaseCapture]
mov rdx, qword [r15 + 0x28]
mov rcx, rdi
call fcn.180063420
jmp 0x180052424
mov rcx, qword [rsi + 0x158]
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x80]
call fcn.18001a710
mov edx, dword [rdi + 0x70]
mov r9d, dword [rsp + 0x2c]
lea ecx, [rdx + r9]
cmp ecx, eax
jle 0x180052448
mov r9d, dword [rbp - 0x35]
sub r9d, edx
dec r9d
mov dword [rsp + 0x2c], r9d
test r15, r15
je 0x18005247f
mov eax, dword [rsi + 0x1a8]
cmp r13d, eax
jne 0x180052461
cmp r14d, dword [rsi + 0x1ac]
je 0x18005247f
test eax, eax
je 0x18005247f
cmp dword [rsi + 0x1ac], 0
je 0x18005247f
lea rdx, [r15 + 0x28]
mov r8d, dword [rsp + 0x28]
mov rcx, rdi
call fcn.1800641e0
mov r13d, dword [rsp + 0x20]
jmp 0x1800524cb
mov r15, qword [rsp + 0x50]
test r15, r15
je 0x1800524c1
mov edx, 6
mov rcx, qword [r15 + 0x28]
call qword [sym.imp.USER32.dll_KillTimer]
call qword [sym.imp.USER32.dll_ReleaseCapture]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4c8
mov rcx, qword [r15 + 0x28]
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1800524c1
mov r15, qword [rsp + 0x50]
mov r13d, dword [rsp + 0x20]
mov r12, qword [rsp + 0x40]
mov qword [rsi + 0x1a8], rbx
test r13d, r13d
je 0x1800524e7
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x18005277e
mov rcx, qword [rsi + 0x158]
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x80]
mov rax, qword [rsi]
mov rdx, r12
mov rcx, rsi
call qword [rax + 0x10]
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x10]
test r15, r15
je 0x18005252f
xor r9d, r9d
lea edx, [r9 + 6]
mov r8d, 0x12c
mov rcx, qword [r15 + 0x28]
call qword [sym.imp.USER32.dll_SetTimer]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [rsi + 0x158]
mov rbx, qword [rcx]
call qword [rbx + 0x78]
mov edx, eax
mov rcx, qword [rsi + 0x158]
call qword [rbx + 0x18]
mov rdi, rax
mov rcx, qword [rsi + 0x158]
mov rbx, qword [rcx]
call qword [rbx + 0x68]
mov edx, eax
mov rcx, qword [rsi + 0x158]
call qword [rbx + 0x18]
mov rbx, rax
mov rcx, qword [rsi + 0x158]
mov r8, qword [rcx]
or edx, 0xffffffff
call qword [r8 + 0x80]
mov rcx, qword [rsi + 0x158]
mov r8, qword [rcx]
or edx, 0xffffffff
call qword [r8 + 0x70]
test rdi, rdi
je 0x1800525c4
mov rcx, qword [rdi + 0x10]
mov eax, dword [rcx]
mov dword [rbp - 0x49], eax
mov eax, dword [rcx + 4]
mov dword [rbp - 0x45], eax
mov eax, dword [rcx + 8]
mov dword [rbp - 0x41], eax
mov eax, dword [rcx + 0xc]
mov dword [rbp - 0x3d], eax
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x10]
test rbx, rbx
je 0x1800525f1
mov rcx, qword [rbx + 0x10]
mov eax, dword [rcx]
mov dword [rbp - 0x49], eax
mov eax, dword [rcx + 4]
mov dword [rbp - 0x45], eax
mov eax, dword [rcx + 8]
mov dword [rbp - 0x41], eax
mov eax, dword [rcx + 0xc]
mov dword [rbp - 0x3d], eax
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x10]
mov rdi, qword [rbp - 0x59]
movsx eax, di
mov dword [rsp + 0x38], eax
movsx eax, word [rbp - 0x61]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
mov rcx, r12
call qword [sym.imp.USER32.dll_ClientToScreen]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.USER32.dll_WindowFromPoint]
cmp r12, rax
je 0x180052648
cmp dword [rsi + 0x14], 0
jne 0x180052648
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2a3
mov rcx, r12
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x18005268d
mov r9, rdi
lea rdx, [rbp - 0x69]
mov rcx, rsi
call fcn.1800573b0
mov rbx, rax
mov eax, dword [rsi + 0x14]
cmp eax, 1
je 0x18005266f
test eax, eax
jne 0x180052684
test rbx, rbx
jne 0x18005277e
mov r9, rdi
mov r8, qword [rbp - 0x71]
mov edx, 0xa0
mov rcx, r12
call qword [sym.imp.USER32.dll_SendMessageW]
test rbx, rbx
jne 0x18005277e
mov rax, qword [0x18027b2f8]
test rax, rax
jne 0x1800526b7
mov ecx, 0x1e0
call fcn.1800b543c
test rax, rax
je 0x1800526b0
mov rcx, rax
call fcn.18006fa40
mov qword [0x18027b2f8], rax
movss xmm2, dword [rax + 0x108]
movd xmm0, dword [rsp + 0x30]
cvtdq2ps xmm0, xmm0
divss xmm0, xmm2
cvttss2si eax, xmm0
mov dword [rsp + 0x38], eax
movd xmm1, dword [rsp + 0x34]
cvtdq2ps xmm1, xmm1
divss xmm1, xmm2
cvttss2si eax, xmm1
mov dword [rsp + 0x3c], eax
lea rcx, [rsi + 0x58]
mov rbx, qword [rsp + 0x38]
mov rdx, rbx
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x180052736
mov rcx, qword [rsi + 0x148]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsi + 0x150]
cmp dword [rcx + 0x518], 0xffffffff
je 0x180052736
test eax, eax
jle 0x180052736
mov edx, 0x7f89
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
lea rcx, [rsi + 0x68]
mov rdx, rbx
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x18005277e
mov rcx, qword [rsi + 0x148]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [rsi + 0x150]
cmp dword [rcx + 0x518], 0xffffffff
je 0x18005277e
test eax, eax
jne 0x18005277e
mov edx, 0x7f89
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1800b5370
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret