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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xd8
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov rax, qword [rsp + 0xf0]
cmp dword [rax + 0x534], 0
je 0x1403785b5
lea rdi, [rsp + 0x60]
mov rsi, qword [rsp + 0x108]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea r9, [rsp + 0x60]
mov r8d, dword [rsp + 0x100]
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xf0]
call fcn.140256de0
jmp 0x140378930
lea rdi, [rsp + 0x90]
mov rsi, qword [rsp + 0x108]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x30]
lea rsi, [rsp + 0x90]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x28], 5
lea rax, [0x1404f79c0]
cmp dword [rax + reloc.mfc90u.dll_CPaintDC::CPaintDC], 0
je 0x140378612
lea rax, [0x1404f79c0]
movsd xmm0, qword [rax + 0x2e0]
movsd qword [rsp + 0xa8], xmm0
jmp 0x140378623
movsd xmm0, qword [0x140417d88]
movsd qword [rsp + 0xa8], xmm0
movsd xmm0, qword [rsp + 0xa8]
ucomisd xmm0, qword [0x140417d88]
jp 0x140378638
je 0x140378692
lea rax, [0x1404f79c0]
cmp dword [rax + reloc.mfc90u.dll_CPaintDC::CPaintDC], 0
je 0x140378662
lea rax, [0x1404f79c0]
movsd xmm0, qword [rax + 0x2e0]
movsd qword [rsp + 0xb0], xmm0
jmp 0x140378673
movsd xmm0, qword [0x140417d88]
movsd qword [rsp + 0xb0], xmm0
movd xmm1, dword [rsp + 0x28]
cvtdq2pd xmm1, xmm1
movsd xmm0, qword [rsp + 0xb0]
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
mov dword [rsp + 0x28], eax
mov ecx, dword [rsp + 0x28]
mov eax, dword [rsp + 0x3c]
sub eax, ecx
add eax, 1
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0xf0]
add rax, 0x34
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax]
mov eax, dword [rdx + 8]
sub eax, ecx
cdq
and eax, 1
xor eax, edx
sub eax, edx
test eax, eax
jne 0x1403786f0
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x38]
add eax, 1
mov dword [rsp + 0x38], eax
mov r8d, 0xffffffff
xor edx, edx
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.USER32.dll_OffsetRect]
lea rdi, [rsp + 0x70]
mov rsi, qword [rsp + 0x108]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x100]
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xf0]
call fcn.140256de0
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xf0]
call qword [rax + 0x80]
test eax, eax
je 0x140378768
mov eax, dword [0x1404f7a18]
mov dword [rsp + 0xb8], eax
jmp 0x1403787b3
mov rax, qword [rsp + 0xf0]
cmp dword [rax + 0x488], 0xffffffff
jne 0x140378790
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x490]
mov dword [rsp + 0xbc], eax
jmp 0x1403787a5
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x488]
mov dword [rsp + 0xbc], eax
mov eax, dword [rsp + 0xbc]
mov dword [rsp + 0xb8], eax
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x24], 0xffffffff
mov rax, qword [rsp + 0xf0]
cmp dword [rax + 0x4f0], 0
je 0x1403787f0
mov rax, qword [rsp + 0xf0]
cmp dword [rax + 0x488], 0xffffffff
jne 0x1403787f0
mov dword [rsp + 0x24], 0xc5c5c5
cmp dword [0x1404f8f94], 0
je 0x140378850
mov rdx, qword [rsp + 0xf8]
lea rcx, [rsp + 0x40]
call fcn.1401a9790
nop
mov r8d, 1
neg r8d
mov edx, 1
neg edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_InflateRect]
mov r9d, dword [rsp + 0x24]
mov r8d, dword [rsp + 0x20]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1401aff10
nop
lea rcx, [rsp + 0x40]
call fcn.1401a9810
jmp 0x140378930
mov eax, dword [rsp + 0x20]
and rax, 0xff
movzx edx, al
movzx eax, word [rsp + 0x20]
sar eax, 8
cdqe
and rax, 0xff
movzx eax, al
shl eax, 8
or edx, eax
mov eax, dword [rsp + 0x20]
shr eax, 0x10
mov eax, eax
and rax, 0xff
movzx eax, al
shl eax, 0x10
or edx, eax
or edx, 0x2000000
lea rcx, [rsp + 0x50]
call sub.mfc90u.dll_CBrush::CBrush
nop
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
jne 0x1403788c3
mov qword [rsp + 0xc0], 0
jmp 0x1403788d7
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 8]
mov qword [rsp + 0xc0], rax
mov r8, qword [rsp + 0xc0]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0xf8]
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_FillRect]
cmp dword [rsp + 0x24], 0xffffffff
je 0x14037891a
mov r9d, dword [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0xf8]
call sub.mfc90u.dll_CWinApp::DelRegTree
nop
lea rax, vtable.CBrush.0
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
call fcn.140007a64
add rsp, 0xd8
pop rdi
pop rsi
ret