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

Disassembly:
sub esp, 0xc4
push ebx
mov ebx, dword [esp + 0xd0]
push ebp
push esi
mov eax, dword [ebx + 0x60]
push edi
xor edi, edi
mov ebp, ecx
cmp eax, edi
je 0x6788a239
mov edx, dword [eax + 0x30]
or ecx, 0xffffffff
cmp edx, edi
jne 0x6788a230
cmp dword [eax], edi
jne 0x6788a230
mov dword [esp + 0x44], ecx
jmp 0x6788a244
mov eax, dword [ebx + 0x58]
mov dword [esp + 0x44], eax
jmp 0x6788a244
mov ecx, dword [ebx + 0x58]
mov dword [esp + 0x44], 0xffffffff
mov edx, dword [ebx + 0x20]
mov dword [esp + 0x40], ecx
sub edx, dword [ebx + 0x1c]
test edx, edx
jle 0x6788a80e
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov esi, dword [ebx + 4]
sub eax, ecx
sub eax, esi
inc eax
test eax, eax
jle 0x6788a27b
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
test eax, eax
mov dword [esp + 0x3c], 1
jne 0x6788a27f
mov dword [esp + 0x3c], edi
mov edx, dword [ebx + 0x34]
mov eax, dword [ebx + 0x38]
mov ecx, edx
sub ecx, eax
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 0x28]
sub eax, ecx
mov esi, eax
mov eax, dword [esp + 0x3c]
cmp eax, edi
je 0x6788a2a1
cmp edx, dword [ebx + 0x2c]
jle 0x6788a2a7
mov dword [esp + 0x18], edi
xor esi, esi
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x5c]
cmp eax, edi
jne 0x6788a80e
lea ecx, [ebx + 0x48]
lea edx, [esp + 0x94]
push ecx
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x94]
mov edi, dword [ebx + 0x28]
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp + 0xa0]
mov ebp, dword [ebx + 0x2c]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x8c], edx
mov dword [esp + 0xa8], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x20], eax
lea edx, [edi + esi]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x70], edx
mov dword [esp + 0xb0], ecx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x28], ecx
add edx, eax
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x14]
push str.SLIDERTRACK
mov dword [esp + 0xb0], edi
mov dword [esp + 0x88], ebp
mov dword [esp + 0x80], edx
call sym.MfcHlpr520.dll_public:_class_CMHPOffice2007Image____thiscall_CMHPOffice2007Theme::LoadImageA_char_const__
mov esi, eax
test esi, esi
je 0x6788a80e
mov ecx, esi
sub ebp, edi
call sym.MfcHlpr520.dll_public:_struct_HWND______thiscall_CMHPTabManagerItem::GetHandle_void_const
mov ecx, esi
mov dword [esp + 0x4c], eax
call sym.MfcHlpr520.dll_public:_struct_HWND______thiscall_CMHPTabManagerItem::GetHandle_void_const
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
add ecx, edx
push 1
sub ecx, eax
add ebp, edi
mov eax, ecx
push 0
cdq
sub eax, edx
mov edx, dword [esp + 0x54]
sar eax, 1
mov dword [esp + 0x38], eax
add eax, edx
mov dword [esp + 0x40], eax
lea eax, [esp + 0x24]
push eax
mov ecx, esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], ebp
call sym.MfcHlpr520.dll_public:_class_CRect___thiscall_CMHPOffice2007Image::GetSource_int__int_
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0xe8]
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x3c]
push ecx
push edx
mov ecx, esi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007Image::DrawImage_class_CDC___class_CRect_const___class_CRect_
mov ecx, dword [esp + 0x14]
push str.SLIDERTICK
call sym.MfcHlpr520.dll_public:_class_CMHPOffice2007Image____thiscall_CMHPOffice2007Theme::LoadImageA_char_const__
mov edi, dword [ebx + 0x70]
mov esi, eax
test edi, edi
mov dword [esp + 0x48], edi
je 0x6788a598
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
cmp eax, ecx
jle 0x6788a598
push 0
lea ecx, [esp + 0x30]
push 0xfffffffffffffffa
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [edi + 4]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x18], ecx
jle 0x6788a650
mov edx, dword [esp + 0x34]
mov ebp, dword [edi]
mov eax, dword [ebx + 4]
mov dword [esp + 0x10], eax
fld qword [ebp + ecx*8]
fisub dword [esp + 0x10]
mov ebp, edx
sub ebp, dword [esp + 0x2c]
mov dword [esp + 0x10], ebp
mov ebp, dword [ebx + 8]
fild dword [esp + 0x10]
sub ebp, eax
fmulp st(1)
mov dword [esp + 0x10], ebp
fild dword [esp + 0x10]
fdivp st(1)
fcom qword [0x679956f0]
fst qword [esp + 0xbc]
fnstsw ax
test ah, 1
jne 0x6788a581
mov ebp, dword [esp + 0x2c]
mov eax, edx
sub eax, ebp
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fxch st(1)
fcompp
fnstsw ax
test ah, 0x41
je 0x6788a583
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
call sym.MfcHlpr520.dll_public:_class_CSize___thiscall_CMHPOffice2007Image::GetExtent_void_
mov ebp, dword [eax]
mov ecx, esi
mov edx, dword [eax + 4]
mov dword [esp + 0xb8], edx
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPOffice2007Image::GetWidth_void_const
fld qword [esp + 0xbc]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x10], edi
mov edi, eax
mov eax, dword [esp + 0x10]
mov ecx, esi
sub edi, eax
mov eax, dword [esp + 0x2c]
add edi, eax
call sym.MfcHlpr520.dll_public:_struct_HWND______thiscall_CMHPTabManagerItem::GetHandle_void_const
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
add ecx, edx
push 0xff00ff
sub ecx, eax
add ebp, edi
mov eax, ecx
lea ecx, [esp + 0x64]
cdq
sub eax, edx
mov edx, dword [esp + 0xbc]
sar eax, 1
mov dword [esp + 0x24], eax
add eax, edx
mov dword [esp + 0x2c], eax
xor eax, eax
push ecx
push 1
lea edx, [esp + 0xd0]
push eax
push edx
mov ecx, esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
call sym.MfcHlpr520.dll_public:_class_CRect___thiscall_CMHPOffice2007Image::GetSource_int__int_
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0xf0]
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x34]
push ecx
push edx
mov ecx, esi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007Image::DrawImage_class_CDC___class_CRect_const___class_CRect__class_CRect_const___unsigned_long_int_
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x48]
jmp 0x6788a583
fstp st(0)
mov eax, dword [edi + 4]
inc ecx
cmp ecx, eax
mov dword [esp + 0x18], ecx
jl 0x6788a433
jmp 0x6788a650
lea eax, [esp + 0x50]
mov ecx, esi
push eax
call sym.MfcHlpr520.dll_public:_class_CSize___thiscall_CMHPOffice2007Image::GetExtent_void_
mov ebx, dword [eax]
mov ecx, esi
mov ebp, dword [eax + 4]
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPOffice2007Image::GetWidth_void_const
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
add ecx, edx
sub ecx, eax
mov eax, ecx
mov ecx, esi
cdq
sub eax, edx
mov edi, eax
sar edi, 1
call sym.MfcHlpr520.dll_public:_struct_HWND______thiscall_CMHPTabManagerItem::GetHandle_void_const
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
add edx, ecx
lea ecx, [esp + 0x1c]
sub edx, eax
push 0xff00ff
mov eax, edx
push ecx
cdq
sub eax, edx
push 1
sar eax, 1
mov dword [esp + 0x70], eax
add eax, ebp
mov dword [esp + 0x78], eax
xor eax, eax
lea edx, [esp + 0xd0]
add ebx, edi
push eax
push edx
mov ecx, esi
mov dword [esp + 0x74], edi
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call sym.MfcHlpr520.dll_public:_class_CRect___thiscall_CMHPOffice2007Image::GetSource_int__int_
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0xf0]
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x78]
push ecx
push edx
mov ecx, esi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007Image::DrawImage_class_CDC___class_CRect_const___class_CRect__class_CRect_const___unsigned_long_int_
mov ecx, dword [esp + 0x14]
push str.SLIDERUP
call sym.MfcHlpr520.dll_public:_class_CMHPOffice2007Image____thiscall_CMHPOffice2007Theme::LoadImageA_char_const__
mov edi, dword [esp + 0x44]
mov esi, eax
cmp edi, 0x3c
jne 0x6788a674
mov ebx, dword [esp + 0x40]
mov eax, 2
jmp 0x6788a680
mov ebx, dword [esp + 0x40]
xor eax, eax
cmp ebx, 0x3c
sete al
push 3
push eax
lea eax, [esp + 0xcc]
mov ecx, esi
push eax
call sym.MfcHlpr520.dll_public:_class_CRect___thiscall_CMHPOffice2007Image::GetSource_int__int_
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov ebp, dword [esp + 0xe8]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0xb4]
push ecx
push ebp
mov ecx, esi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007Image::DrawImage_class_CDC___class_CRect_const___class_CRect_
mov ecx, dword [esp + 0x14]
push str.SLIDERDOWN
call sym.MfcHlpr520.dll_public:_class_CMHPOffice2007Image____thiscall_CMHPOffice2007Theme::LoadImageA_char_const__
cmp edi, 0x3d
mov esi, eax
jne 0x6788a6e0
mov eax, 2
jmp 0x6788a6e8
xor eax, eax
cmp ebx, 0x3d
sete al
push 3
lea edx, [esp + 0xc8]
push eax
push edx
mov ecx, esi
call sym.MfcHlpr520.dll_public:_class_CRect___thiscall_CMHPOffice2007Image::GetSource_int__int_
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x94]
push ecx
push ebp
mov ecx, esi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007Image::DrawImage_class_CDC___class_CRect_const___class_CRect_
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x6788a80e
mov ecx, dword [esp + 0x14]
push str.SLIDERTHUMB
call sym.MfcHlpr520.dll_public:_class_CMHPOffice2007Image____thiscall_CMHPOffice2007Theme::LoadImageA_char_const__
cmp edi, 0x40
mov dword [esp + 0x48], eax
jne 0x6788a74f
mov edx, 2
jmp 0x6788a771
cmp edi, 0x3e
je 0x6788a76c
cmp edi, 0x3f
je 0x6788a76c
cmp ebx, 0x3e
je 0x6788a76c
cmp ebx, 0x3f
je 0x6788a76c
cmp ebx, 0x40
je 0x6788a76c
xor edx, edx
jmp 0x6788a771
mov edx, 1
push 3
push edx
lea edx, [esp + 0x58]
mov ecx, eax
push edx
call sym.MfcHlpr520.dll_public:_class_CRect___thiscall_CMHPOffice2007Image::GetSource_int__int_
mov edi, dword [esp + 0x5c]
mov eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x50]
mov edx, dword [esp + 0x70]
sub edi, eax
mov eax, dword [esp + 0x7c]
mov esi, ebx
sub eax, ebx
sub esp, 0x10
add eax, ebp
sub esi, ebp
add eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x6c]
mov ecx, eax
mov eax, dword [esp + 0x64]
sub eax, edx
mov edx, dword [esp + 0x90]
add eax, edx
mov edx, dword [esp + 0x88]
add eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x6c]
sar eax, 1
mov dword [esp + 0x30], eax
add eax, edi
sar ecx, 1
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], ecx
mov eax, esp
add ecx, esi
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax], ebp
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0xe8]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
lea eax, [esp + 0x2c]
push eax
push ecx
mov ecx, dword [esp + 0x60]
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPOffice2007Image::DrawImage_class_CDC___class_CRect_const___class_CRect_
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc4
ret 8