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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x40
mov rbx, rcx
mov rcx, qword [0x1400aa678]
mov edx, 0x63
call qword [sym.imp.USER32.dll_LoadIconW]
mov rcx, qword [rbx + 0x88]
xor r8d, r8d
mov r9, rax
mov edx, 0x80
call qword [sym.imp.USER32.dll_SendMessageW]
xor r14d, r14d
cmp qword [rbx + 0x30], r14
jbe 0x1400085a8
mov rdx, qword [rbx + 0x28]
mov rcx, qword [rbx + 0x88]
call qword [sym.imp.USER32.dll_SetWindowTextW]
cmp qword [rbx + 0x70], r14
jbe 0x1400085cd
mov rcx, qword [rbx + 0x88]
mov edx, 0x3ea
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdx, qword [rbx + 0x68]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov edi, 0x3e9
cmp qword [rbx + 0x50], r14
jbe 0x1400085f4
mov rcx, qword [rbx + 0x88]
mov edx, edi
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdx, qword [rbx + 0x48]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowTextW]
cmp word [rbx + 0x20], r14w
je 0x14000861a
movzx r9d, word [rbx + 0x20]
mov rcx, qword [rbx + 0x88]
mov r8d, 0xcc
mov edx, edi
mov qword [rsp + 0x20], r14
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp dword [rbx + 0x14], r14d
jle 0x14000863e
movsxd r9, dword [rbx + 0x14]
mov rcx, qword [rbx + 0x88]
mov r8d, 0xc5
mov edx, edi
mov qword [rsp + 0x20], r14
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov rcx, qword [rbx + 0x88]
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov ebp, dword [rsp + 0x30]
mov edi, dword [rsp + 0x38]
cmp ebp, edi
jle 0x14000866a
mov eax, ebp
mov dword [rsp + 0x30], edi
mov ebp, edi
mov edi, eax
mov dword [rsp + 0x38], eax
mov r12d, dword [rsp + 0x34]
mov esi, dword [rsp + 0x3c]
cmp r12d, esi
jle 0x140008688
mov eax, r12d
mov dword [rsp + 0x34], esi
mov r12d, esi
mov esi, eax
mov dword [rsp + 0x3c], eax
sub edi, ebp
sub esi, r12d
mov eax, 0x80000000
cmp dword [rbx + 8], eax
lea rdx, [0x1400956d0]
lea rcx, [rbx + 0x28]
cmovne ebp, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
cmovne r12d, dword [rbx + 0xc]
cmp dword [rbx], r14d
cmovg edi, dword [rbx]
cmp dword [rbx + 4], r14d
cmovg esi, dword [rbx + 4]
call fcn.140006314
cmp al, r14b
jne 0x1400086d5
mov rdx, qword [rbx + 0x28]
mov rcx, qword [rbx + 0x88]
call qword [sym.imp.USER32.dll_SetWindowTextW]
call qword [sym.imp.USER32.dll_GetDesktopWindow]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
mov r11d, dword [rsp + 0x30]
mov edx, dword [rsp + 0x38]
cmp r11d, edx
jle 0x140008707
mov eax, r11d
mov dword [rsp + 0x30], edx
mov r11d, edx
mov edx, eax
mov dword [rsp + 0x38], eax
mov r9d, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x3c]
cmp r9d, r8d
jle 0x140008728
mov ecx, r9d
mov dword [rsp + 0x34], r8d
mov r9d, r8d
mov r8d, ecx
mov dword [rsp + 0x3c], ecx
test byte [rbx + 0x10], 0x40
je 0x14000873c
sub edx, edi
sub edx, r11d
mov eax, edx
cdq
sub eax, edx
sar eax, 1
mov ebp, eax
test byte [rbx + 0x10], 0x80
je 0x140008753
sub r8d, esi
sub r8d, r9d
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
mov r12d, eax
mov rcx, qword [rbx + 0x88]
mov r9d, edi
mov r8d, r12d
mov edx, ebp
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], esi
call qword [sym.imp.USER32.dll_MoveWindow]
mov rcx, qword [rbx + 0x88]
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetClientRect]
mov r11d, dword [rsp + 0x30]
mov r8d, dword [rsp + 0x38]
cmp r11d, r8d
jle 0x1400087a4
mov eax, r11d
mov dword [rsp + 0x30], r8d
mov r11d, r8d
mov r8d, eax
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x3c]
cmp edx, ecx
jle 0x1400087be
mov eax, edx
mov dword [rsp + 0x34], ecx
mov edx, ecx
mov ecx, eax
mov dword [rsp + 0x3c], eax
sub ecx, edx
shl ecx, 0x10
sub ecx, r11d
add ecx, r8d
xor r8d, r8d
movsxd r9, ecx
mov rcx, qword [rbx + 0x88]
lea edx, [r8 + 5]
call qword [sym.imp.USER32.dll_PostMessageW]
movsd xmm5, qword [rbx + 0x18]
comisd xmm5, xmmword [0x14009da88]
jbe 0x140008818
mulsd xmm5, qword [0x14009da78]
mov rcx, qword [rbx + 0x88]
xor r9d, r9d
mov edx, 0x40a
cvttsd2si r8, xmm5
call qword [sym.imp.USER32.dll_SetTimer]
mov qword [rbx + 0x90], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov eax, 1
add rsp, 0x40
pop r14
pop r13
pop r12
ret