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

Disassembly:
push 0xffffffffffffffff
push 0x67984bf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
push esi
xor ebp, ebp
push edi
lea eax, [esp + 0x58]
push ebp
push eax
push ebp
mov edi, ecx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov ecx, dword [edi + 0x20]
call sym.MfcHlpr520.dll_public:_class_CMHPBarPaintManager____thiscall_CMHPCommandBar::GetPaintManager_void_const
mov esi, eax
mov eax, dword [edi + 0x20]
push eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0xf4]
mov ecx, dword [esp + 0x8c]
push eax
push ecx
lea ecx, [esp + 0x70]
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPFontDC::constructor_class_CDC___class_CFont__
mov eax, dword [edi + 0x20]
mov edx, dword [esi]
push ebp
push ebp
push eax
lea ecx, [esp + 0x4c]
push ebp
push ecx
mov ecx, esi
mov dword [esp + 0x94], ebp
call dword [edx + 0x8c]
mov esi, dword [esp + 0x98]
mov eax, dword [edi + 0x20]
xor ecx, ecx
mov dword [esp + 0x1c], 1
mov ebx, dword [esi + 4]
mov edx, dword [esi]
mov dword [eax + 0x158], ecx
mov eax, dword [edi + 0x2c]
cmp eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ecx
jle 0x6785e2c1
test ecx, ecx
jl 0x6785e0f5
cmp ecx, dword [edi + 0x2c]
jge 0x6785e0f5
mov edx, dword [edi + 0x28]
mov esi, dword [edx + ecx*4]
jmp 0x6785e0f7
xor esi, esi
test esi, esi
je 0x6785e2a9
mov eax, dword [esi + 0x108]
mov edx, dword [edi + 0x20]
cmp eax, edx
jne 0x6785e2a9
mov ecx, dword [esi + 0xd4]
mov eax, dword [esi]
and ecx, 0xfffffff7
push ecx
mov ecx, esi
call dword [eax + 0x98]
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx + 0x84]
test eax, eax
je 0x6785e2a5
mov ecx, dword [esp + 0x8c]
mov eax, dword [esi]
lea edx, [esp + 0x30]
push ecx
push edx
mov ecx, esi
call dword [eax + 0xa0]
mov ecx, esi
mov dword [esi + 0x98], 0
call sym.MfcHlpr520.dll_public:_unsigned_int___thiscall_CMHPTrayIcon::GetCallbackMessage_void_
test al, 0x80
je 0x6785e16c
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x6785e18d
mov eax, dword [esp + 0x90]
test eax, eax
jle 0x6785e1f6
mov ecx, dword [esp + 0x98]
mov edx, dword [ecx + 0xc]
sub eax, edx
mov edx, dword [esp + 0x34]
add edx, ebx
cmp edx, eax
jle 0x6785e1f6
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push ebp
push eax
push ecx
mov ecx, edi
call sym.MfcHlpr520.dll_protected:_void___thiscall_CMHPControls::_MakeSameWidth_int__int__int_
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx + 4]
sub ebx, eax
cmp ebx, ecx
jle 0x6785e1b7
mov dword [esp + 0x10], ebx
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x68]
mov ecx, dword [esp + 0x40]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esp + 0x18]
add eax, ebp
add ecx, eax
mov eax, 1
mov dword [esi + 0x98], eax
mov edx, dword [edi + 0x20]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
xor ebp, ebp
mov dword [edx + 0x158], eax
jmp 0x6785e20d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x68]
test eax, eax
je 0x6785e20d
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x6785e20d
add ebx, dword [esp + 0x44]
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x1c], 0
mov edx, dword [ecx]
call dword [edx + 0x13c]
test eax, eax
jne 0x6785e25b
fld qword [sym.MfcHlpr520.dll_double_CMHPPopupBar::m_dMaxWidthDivisor]
fcomp qword [0x679956f0]
fnstsw ax
test ah, 0x41
jne 0x6785e25b
fild dword [esp + 0x60]
fmul qword [sym.MfcHlpr520.dll_double_CMHPPopupBar::m_dMaxWidthDivisor]
fild dword [esp + 0x30]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x6785e259
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x30], eax
jmp 0x6785e25b
fstp st(0)
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
add eax, ebx
sub esp, 0x10
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
add ecx, eax
mov edx, dword [esi]
mov dword [esp + 0x38], ecx
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0xc], eax
mov ecx, esi
call dword [edx + 0x80]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
add ebx, edx
cmp ebp, eax
jge 0x6785e2a5
mov ebp, eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
inc ecx
cmp ecx, eax
mov dword [esp + 0x14], ecx
jl 0x6785e0e4
mov esi, dword [esp + 0x98]
mov eax, dword [esp + 0x94]
test eax, eax
jle 0x6785e2de
cmp eax, 0x7530
jge 0x6785e2de
mov edx, dword [esi + 8]
mov ecx, dword [esi]
sub eax, edx
sub eax, ecx
mov ebp, eax
mov eax, dword [edi + 0x2c]
mov ecx, dword [esp + 0x20]
push ebp
push eax
push ecx
mov ecx, edi
call sym.MfcHlpr520.dll_protected:_void___thiscall_CMHPControls::_MakeSameWidth_int__int__int_
mov eax, dword [esp + 0x18]
mov edx, dword [esi]
mov ecx, dword [esp + 0x10]
sub eax, edx
mov edx, dword [esi + 4]
add eax, ebp
sub ebx, edx
mov dword [esp + 0x8c], eax
cmp ebx, ecx
jle 0x6785e311
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x24]
xor ecx, ecx
test edx, edx
jle 0x6785e3ad
test ecx, ecx
jl 0x6785e330
cmp ecx, dword [edi + 0x2c]
jge 0x6785e330
mov edx, dword [edi + 0x28]
mov edx, dword [edx + ecx*4]
jmp 0x6785e332
xor edx, edx
lea eax, [edx + 0xc4]
add edx, 0xb4
mov ebp, eax
mov ebx, dword [ebp]
mov dword [esp + 0x48], ebx
mov ebx, dword [ebp + 4]
mov dword [esp + 0x4c], ebx
mov ebx, dword [ebp + 8]
mov ebp, dword [ebp + 0xc]
mov dword [esp + 0x54], ebp
mov ebp, dword [eax]
mov dword [esp + 0x30], ebp
mov ebp, dword [eax + 4]
mov dword [esp + 0x34], ebp
mov ebp, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x38], ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 4]
add ebp, eax
inc ecx
mov dword [esp + 0x98], ebp
mov ebp, dword [esp + 0x30]
mov dword [edx], ebp
mov dword [edx + 4], eax
mov eax, dword [esp + 0x98]
mov dword [edx + 8], ebx
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x24]
cmp ecx, eax
jl 0x6785e31f
mov eax, dword [esp + 0x8c]
cmp eax, 0x18
jge 0x6785e3b7
mov eax, 0x18
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x6785e3c7
mov dword [esp + 0x10], 0x16
mov ecx, dword [esi + 0xc]
mov ebp, dword [esi + 4]
mov ebx, dword [esp + 0x10]
mov edx, dword [esi + 8]
mov edi, dword [esi]
mov esi, dword [esp + 0x88]
add ecx, ebp
add edx, edi
add ecx, ebx
add edx, eax
mov dword [esi + 4], ecx
lea ecx, [esp + 0x68]
mov dword [esi], edx
mov dword [esp + 0x80], 0xffffffff
call sym.MfcHlpr520.dll_public_virtual:_void___thiscall_CMHPFontDC::destructor_void_
mov ecx, dword [esp + 0x78]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x74
ret 0x14