Function at 0x140052160
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 [0x1400ad2b0]
mov edx, RegisterTypeLib
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 0x1400521c4
mov rdx, qword [rbx + 0x28]
mov rcx, qword [rbx + 0x88]
call qword [sym.imp.USER32.dll_SetWindowTextW]
cmp qword [rbx + 0x70], r14
jbe 0x1400521e9
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 0x140052210
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 0x140052236
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 0x14005225a
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]
lea rcx, [rsp + 0x30]
call fcn.140044280
mov r12d, dword [rsp + 0x30]
mov esi, dword [rsp + 0x34]
mov ebp, dword [rsp + 0x38]
mov edi, dword [rsp + 0x3c]
lea rdx, [0x140096618]
sub ebp, r12d
sub edi, esi
cmp dword [rbx + 8], r14d
cmovge r12d, dword [rbx + 8]
cmp dword [rbx + 0xc], r14d
lea rcx, [rbx + 0x28]
cmovge esi, dword [rbx + 0xc]
cmp dword [rbx], r14d
cmovg ebp, dword [rbx]
cmp dword [rbx + 4], r14d
cmovg edi, dword [rbx + 4]
call fcn.140044c40
cmp al, r14b
je 0x1400522d1
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]
lea rcx, [rsp + 0x30]
call fcn.140044280
test byte [rbx + 0x10], 0x40
mov ecx, 2
je 0x14005230a
mov eax, dword [rsp + 0x38]
sub eax, ebp
sub eax, dword [rsp + 0x30]
cdq
idiv ecx
mov r12d, eax
test byte [rbx + 0x10], 0x80
je 0x14005231f
mov eax, dword [rsp + 0x3c]
sub eax, edi
sub eax, dword [rsp + 0x34]
cdq
idiv ecx
mov esi, eax
mov rcx, qword [rbx + 0x88]
mov r9d, ebp
mov r8d, esi
mov edx, r12d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], edi
call qword [sym.imp.USER32.dll_MoveWindow]
mov rcx, qword [rbx + 0x88]
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetClientRect]
lea rcx, [rsp + 0x30]
call fcn.140044280
mov r8d, dword [rsp + 0x3c]
mov rcx, qword [rbx + 0x88]
sub r8d, dword [rsp + 0x34]
shl r8d, 0x10
sub r8d, dword [rsp + 0x30]
add r8d, dword [rsp + 0x38]
movsxd r9, r8d
xor r8d, r8d
lea edx, [r8 + 5]
call qword [sym.imp.USER32.dll_PostMessageW]
movsd xmm5, qword [rbx + 0x18]
comisd xmm5, xmmword [0x14009e910]
jbe 0x1400523c1
mulsd xmm5, qword [0x14009e900]
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