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

Disassembly:
push 0xffffffffffffffff
push 0x67990398
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
push ebp
lea ecx, [esp + 0x2c]
call fcn.6797d9ac
mov dword [esp + 0x7c], ebp
call sym.MfcHlpr520.dll_class_CMHPAuxData____stdcall_MHPAuxData_void_
add eax, 0xe4
lea ecx, [esp + 0x28]
push eax
call sub.MFC42.DLL_CDC::SelectObject_2
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x44]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xcc]
mov ebx, dword [sym.imp.USER32.dll_GetTabbedTextExtentA]
push ecx
mov edi, dword [eax - 8]
push edx
push edi
push eax
mov eax, dword [esp + 0x40]
push eax
call ebx
movsx ecx, ax
shr eax, 0x10
movsx eax, ax
mov dword [esi + 0xc4], ecx
mov dword [esi + 0xc8], eax
call sym.MfcHlpr520.dll_class_CMHPAuxData____stdcall_MHPAuxData_void_
add eax, 0xdc
lea ecx, [esp + 0x28]
push eax
call sub.MFC42.DLL_CDC::SelectObject_2
mov eax, dword [esi + 0xdc]
xor edi, edi
test eax, eax
jne 0x6792af90
mov eax, dword [esi + 0xd0]
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x44]
push ecx
mov edi, dword [eax - 8]
mov ecx, dword [esp + 0x34]
push edx
push edi
push eax
push ecx
call ebx
movsx edi, ax
shr eax, 0x10
movsx ebp, ax
jmp 0x6792b007
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov ecx, dword [esi + 0xdc]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x10], eax
jle 0x6792b007
mov ecx, dword [esi + 0xd8]
mov edx, dword [ecx + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [edx - 8]
test ecx, ecx
jne 0x6792afc9
add ebp, dword [esp + 0x3c]
jmp 0x6792aff4
mov eax, dword [eax]
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x44]
push ecx
mov ebx, dword [eax - 8]
push edx
push ebx
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_GetTabbedTextExtentA]
movsx ecx, ax
shr eax, 0x10
movsx eax, ax
add ebp, eax
cmp edi, ecx
jg 0x6792aff4
mov edi, ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xdc]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x6792afb0
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CDC::SelectObject_2
mov eax, dword [esi + 0xc4]
cmp eax, edi
jle 0x6792b021
mov edi, eax
mov edx, dword [esi + 0xbc]
mov eax, dword [esi + 0xcc]
lea ecx, [edi + edx*2]
mov edx, dword [eax - 8]
test edx, edx
jle 0x6792b044
mov eax, dword [esi + 0xc8]
mov edx, dword [esi + 0x40]
add eax, edx
jmp 0x6792b046
xor eax, eax
mov edx, dword [esi + 0xc0]
mov ebx, dword [esp + 0x84]
lea edi, [esi + 0x78]
lea eax, [eax + edx*2]
mov edx, dword [ebx]
mov dword [edi], edx
mov edx, dword [ebx + 4]
mov dword [esi + 0x7c], edx
mov edx, dword [ebx]
add eax, ebp
mov ebp, dword [sym.imp.USER32.dll_OffsetRect]
lea ecx, [edx + ecx + 2]
mov dword [esi + 0x80], ecx
mov ecx, dword [ebx + 4]
add eax, ecx
mov dword [esi + 0x84], eax
mov eax, dword [esp + 0x88]
test eax, eax
je 0x6792b0a1
mov eax, dword [edi + 8]
mov edx, dword [edi]
sub eax, edx
push 0
cdq
sub eax, edx
sar eax, 1
neg eax
push eax
push edi
call ebp
lea edx, [esp + 0x18]
push ebx
push edx
call sym.MfcHlpr520.dll_class_CMHPMultiMonitor____cdecl_MHPMultiMonitor_void_
mov ecx, eax
call sym.MfcHlpr520.dll_public:_class_CRect___thiscall_CMHPMultiMonitor::GetWorkArea_struct_tagPOINT_const__
mov edx, dword [edi + 0xc]
mov ebx, dword [edi + 4]
mov eax, dword [edi + 8]
mov ecx, dword [edi]
sub edx, ebx
mov ebx, dword [edi]
sub eax, ecx
mov ecx, dword [esp + 0x18]
cmp ebx, ecx
jge 0x6792b0d8
add eax, ecx
mov dword [edi], ecx
mov dword [esi + 0x80], eax
jmp 0x6792b0f0
mov ecx, dword [esp + 0x20]
mov ebx, dword [esi + 0x80]
cmp ebx, ecx
jle 0x6792b0f0
mov dword [esi + 0x80], ecx
sub ecx, eax
mov dword [edi], ecx
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x84]
cmp ecx, eax
jle 0x6792b109
mov dword [esi + 0x84], eax
sub eax, edx
mov dword [esi + 0x7c], eax
lea eax, [esi + 0x68]
mov ecx, edi
mov edx, eax
mov ebx, dword [ecx]
mov dword [edx], ebx
mov ebx, dword [ecx + 4]
mov dword [edx + 4], ebx
mov ebx, dword [ecx + 8]
mov dword [edx + 8], ebx
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
mov dword [esi + 0x6c], 0
mov dword [eax], 0
mov edx, dword [edi + 8]
sub edx, dword [edi]
mov dword [esi + 0x70], edx
mov ecx, dword [edi + 0xc]
sub ecx, dword [edi + 4]
mov dword [esi + 0x74], ecx
mov edi, dword [eax]
lea ecx, [esi + 0x88]
mov edx, ecx
mov dword [edx], edi
mov edi, dword [eax + 4]
mov dword [edx + 4], edi
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [edx + 8], edi
mov dword [edx + 0xc], eax
mov al, byte [esi + 0x5c]
test al, 2
je 0x6792b170
push 5
push 5
push ecx
call ebp
lea ecx, [esp + 0x28]
mov dword [esp + 0x7c], 0xffffffff
call sub.MFC42.DLL_CWindowDC::CWindowDC
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x70
ret 8