Function at 0x1403651b0
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 + 0x52c], 0
je 0x140365225
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.140260e40
jmp 0x1403655a0
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, [0x1404e61f0]
cmp dword [rax + reloc.mfc90u.dll_COleDocument::COleDocument], 0
je 0x140365282
lea rax, [0x1404e61f0]
movsd xmm0, qword [rax + 0x2d0]
movsd qword [rsp + 0xa8], xmm0
jmp 0x140365293
movsd xmm0, qword [0x140402370]
movsd qword [rsp + 0xa8], xmm0
movsd xmm0, qword [rsp + 0xa8]
ucomisd xmm0, qword [0x140402370]
jp 0x1403652a8
je 0x140365302
lea rax, [0x1404e61f0]
cmp dword [rax + reloc.mfc90u.dll_COleDocument::COleDocument], 0
je 0x1403652d2
lea rax, [0x1404e61f0]
movsd xmm0, qword [rax + 0x2d0]
movsd qword [rsp + 0xb0], xmm0
jmp 0x1403652e3
movsd xmm0, qword [0x140402370]
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 0x140365360
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.140260e40
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xf0]
call qword [rax + 0x80]
test eax, eax
je 0x1403653d8
mov eax, dword [0x1404e6248]
mov dword [rsp + 0xb8], eax
jmp 0x140365423
mov rax, qword [rsp + 0xf0]
cmp dword [rax + reloc.mfc90u.dll_AfxInitExtensionModule], 0xffffffff
jne 0x140365400
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x488]
mov dword [rsp + 0xbc], eax
jmp 0x140365415
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + reloc.mfc90u.dll_AfxInitExtensionModule]
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 + 0x4e8], 0
je 0x140365460
mov rax, qword [rsp + 0xf0]
cmp dword [rax + reloc.mfc90u.dll_AfxInitExtensionModule], 0xffffffff
jne 0x140365460
mov dword [rsp + 0x24], 0xc5c5c5
cmp dword [0x1404e77ac], 0
je 0x1403654c0
mov rdx, qword [rsp + 0xf8]
lea rcx, [rsp + 0x40]
call fcn.1401b4a40
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.1401bb190
nop
lea rcx, [rsp + 0x40]
call fcn.1401b4ac0
jmp 0x1403655a0
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 0x140365533
mov qword [rsp + 0xc0], 0
jmp 0x140365547
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 0x14036558a
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.140002370
add rsp, 0xd8
pop rdi
pop rsi
ret