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

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CWnd::GetStyle
mov ecx, eax
mov eax, dword [esp + 0x60]
and ecx, eax
cmp ecx, eax
je 0x40791a
push 0
push eax
push 0
mov ecx, ebx
call sub.MFC42.DLL_CWnd::ModifyStyle
push 0xe801
mov ecx, ebx
call sub.MFC42.DLL_CWnd::GetDlgItem
or edi, 0xffffffff
lea ebp, [ebx + 0x60]
xor esi, esi
push edi
push esi
mov ecx, ebp
call fcn.00408270
mov eax, dword [ebx + 0x20]
lea edx, [esp + 0x2c]
push edx
push eax
mov dword [ebx + 0x74], esi
mov dword [ebx + 0x78], esi
mov dword [ebx + 0x7c], edi
mov dword [ebx + 0x80], edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
cmp eax, esi
mov dword [ebx + 0x74], ecx
mov dword [ebx + 0x78], edx
mov dword [ebx + 0x84], esi
je 0x407a47
mov eax, dword [ebx + 0x20]
push 0xe801
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_IsWindow]
push eax
call esi
test eax, eax
jne 0x407a47
mov edx, dword [ebx + 0x88]
push eax
push 0xe801
lea eax, [esp + 0x34]
lea ecx, [ebx + 0x88]
push ebx
push eax
push 0x5400001c
push 0x421970
push str.SCROLLBAR
call dword [edx + 0x5c]
mov ecx, dword [ebx + 0xa8]
push ecx
call esi
test eax, eax
je 0x407a47
mov dword [ebx + 0x84], 1
mov eax, dword [ebx + 0xa8]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CWnd::ScreenToClient
mov eax, dword [esp + 0x20]
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x28]
lea eax, [esi + 1]
mov dword [esp + 0x4c], ecx
push edi
push eax
mov ecx, ebp
mov dword [esp + 0x44], 0xe801
mov dword [esp + 0x48], 0x401c
mov dword [esp + 0x58], edx
call fcn.00408270
mov edx, dword [ebp + 4]
lea ecx, [esi + esi*2]
lea esi, [esp + 0x3c]
lea edi, [edx + ecx*8]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x407a7b
mov ecx, dword [ebx + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
sub edx, esi
sub eax, ecx
mov dword [ebx + 0x7c], edx
mov dword [ebx + 0x80], eax
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0xd8]
mov edi, eax
or ecx, 0xffffffff
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], ecx
mov eax, dword [edi]
cmp eax, 0xffffffff
jne 0x407b07
mov edx, dword [edi + 4]
test edx, edx
je 0x407d01
cmp eax, eax
jne 0x407b07
mov eax, edx
cmp eax, 0x1000
je 0x407af5
cmp eax, 0x2000
jne 0x407cf1
mov edx, dword [ebx + 0x64]
lea eax, [ecx + ecx*2]
mov dword [esp + 0x60], 0xffffffff
lea esi, [edx + eax*8]
mov eax, dword [ebx + 0x68]
sub al, cl
mov ecx, dword [esi + 4]
and eax, 0xff
shl eax, 0x10
and ecx, 0xff00ffff
or ecx, eax
add edi, 8
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x5c], edi
jmp 0x407a92
mov edx, dword [ebx + 0x68]
add edi, 8
mov dword [esp + 0x60], edx
mov dword [esp + 0x5c], edi
mov ecx, edx
jmp 0x407a92
push eax
mov ecx, ebx
call sub.MFC42.DLL_CWnd::GetDlgItem
test eax, eax
je 0x407cf1
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
call sub.MFC42.DLL_CWnd::ScreenToClient
mov eax, dword [esp + 0x60]
cmp eax, 0xffffffff
je 0x407b47
cmp dword [ebx + 0x68], eax
jne 0x407b47
mov eax, 0x1000
jmp 0x407b49
xor eax, eax
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x48], ecx
mov ecx, dword [ebp + 8]
or edx, eax
mov eax, dword [esp + 0x1c]
mov esi, ecx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x28]
lea ebx, [esi + 1]
xor edi, edi
mov dword [esp + 0x4c], edx
cmp ebx, edi
mov dword [esp + 0x50], eax
mov dword [esp + 0x14], esi
jne 0x407bac
mov eax, dword [ebp + 4]
cmp eax, edi
je 0x407ba1
push eax
mov dword [esp + 0x5c], ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp + 4], edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edi
jmp 0x407cd5
mov edx, dword [ebp + 4]
cmp edx, edi
jne 0x407be6
lea edi, [ebx + ebx*2]
shl edi, 3
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [ebp + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jmp 0x407cd5
mov edi, dword [ebp + 0xc]
cmp ebx, edi
jg 0x407c29
cmp ecx, ebx
jge 0x407c19
mov eax, ebx
sub eax, ecx
lea ecx, [ecx + ecx*2]
lea edi, [edx + ecx*8]
lea ecx, [eax + eax*2]
shl ecx, 3
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 8], ebx
jmp 0x407cd5
jle 0x407c21
sub ecx, ebx
mov dword [esp + 0x58], ecx
mov dword [ebp + 8], ebx
jmp 0x407cd5
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x407c53
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x407c47
mov eax, 4
jmp 0x407c53
cmp eax, 0x400
jle 0x407c53
mov eax, 0x400
add eax, edi
cmp ebx, eax
jge 0x407c5f
mov dword [esp + 0x58], eax
jmp 0x407c65
mov dword [esp + 0x58], ebx
mov eax, ebx
lea eax, [eax + eax*2]
shl eax, 3
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 4]
mov edi, eax
mov dword [esp + 0x14], eax
lea ecx, [ecx + ecx*2]
shl ecx, 3
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edx
lea edx, [edx + edx*2]
lea ecx, [ecx + ecx*2]
shl ecx, 3
lea edi, [eax + edx*8]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 4]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x1c]
add esp, 8
mov dword [ebp + 4], ecx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], edx
mov ecx, dword [ebp + 4]
lea eax, [esi + esi*2]
mov ebx, dword [esp + 0x18]
lea esi, [esp + 0x3c]
lea edi, [ecx + eax*8]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
add edi, 8
mov dword [esp + 0x5c], edi
jmp 0x407a92
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0xc