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

Disassembly:
push 0xffffffffffffffff
push 0x4595b0
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x476028]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x40]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x111c
push eax
call edi
mov edx, dword [esi + 0x40]
movzx ecx, ax
push 1
push edx
mov dword [esp + 0x40], ecx
call dword [sym.imp.USER32.dll_GetScrollPos]
push 0
push 0
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x40]
push 0x110a
push eax
call edi
mov ecx, dword [esi + 0x40]
push 0
push 0
push 0x1105
mov ebx, eax
push ecx
mov dword [esp + 0x2c], ebx
call edi
test ebx, ebx
mov dword [esp + 0x30], eax
je 0x40a09a
mov eax, dword [esi + 0x40]
lea edx, [esp + 0x5c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
push ebx
call fcn.00409720
mov ebp, eax
and ebp, 0x20
push ebx
mov dword [esp + 0x18], ebp
call fcn.00409720
and eax, 2
cmp dword [esp + 0x34], 0
jne 0x409f0b
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
movsx ebp, word [esp + 0x38]
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x24], ecx
add ecx, ebp
test eax, eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ecx
je 0x409e0c
mov edx, dword [esi + 0x48]
push edx
lea ecx, [esp + 0x40]
call sub.MFC80U.DLL_Ordinal_326
test eax, eax
je 0x409de0
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0xc4]
mov edx, dword [ecx + 4]
push eax
lea eax, [esp + 0x24]
push eax
push edx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], vtable.CBrush.0
call fcn.00407b40
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x44], eax
add ebx, 0xa
add ebp, ebx
mov eax, ebp
sub eax, ebx
sub eax, 6
cdq
sub eax, edx
mov dword [esp + 0x48], ecx
mov ecx, eax
mov eax, dword [esp + 0x48]
sub eax, edi
sub eax, 6
cdq
sar ecx, 1
sub eax, edx
mov dword [esp + 0x20], ebx
sar eax, 1
sub dword [esp + 0x48], eax
add ebx, ecx
sub ebp, ecx
lea ecx, [esp + 0x7c]
add edi, eax
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
xor eax, eax
cmp dword [esp + 0x14], eax
mov dword [esp + 0xbc], 0
mov edx, dword [esp + 0x48]
setne al
mov dword [esp + 0x70], edi
mov edi, dword [esp + 0xc4]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], edx
mov dword [esp + 0x80], eax
mov eax, dword [esi + 0x30]
test eax, eax
je 0x409ea5
lea ecx, [esp + 0x6c]
push ecx
push 0
push 0
push edi
call fcn.0040e710
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
mov ebx, esi
call fcn.00409660
mov byte [esp + 0xbc], 1
mov eax, dword [esp + 0x18]
mov edx, dword [edi]
push 0x24
add ebp, 0xa
mov dword [esp + 0x24], ebp
mov ecx, dword [eax - 0xc]
lea ebx, [esp + 0x24]
push ebx
push ecx
push eax
mov eax, dword [edx + 0x70]
mov ecx, edi
call eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x7c]
mov dword [esp + 0xbc], 0xffffffff
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
test ebp, ebp
je 0x40a09a
mov ecx, dword [esi + 0x40]
push ebx
push 4
push 0x110a
push ecx
call edi
cmp dword [esp + 0x34], 0
mov ebp, eax
mov dword [esp + 0x14], 0
jne 0x409f3a
mov dword [esp + 0x14], 1
mov eax, dword [esi + 0x40]
lea edx, [esp + 0x4c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, 1
cmp dword [esp + 0x30], ebx
mov dword [esp + 0x18], ebx
jbe 0x40a09a
cmp ebx, dword [esp + 0x34]
jb 0x40a079
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
movsx eax, word [esp + 0x38]
mov edi, eax
imul edi, dword [esp + 0x14]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x58]
add eax, edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x2c], eax
push ebp
lea eax, [esp + 0x20]
add ecx, 0xa
push eax
mov ebx, esi
mov dword [esp + 0x28], ecx
call fcn.00409660
mov dword [esp + 0xbc], 2
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 0x40]
xor eax, eax
add edx, 0xffffffff
cmp dword [esp + 0x28], edx
setne al
push eax
push ebp
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
mov eax, dword [esi + 0x40]
lea edx, [esp + 0xa0]
push edx
push 0
push 0x113e
push eax
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xb0], 8
mov dword [esp + 0xbc], 0xf000
mov dword [esp + 0xb8], 0
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0xa8]
push ecx
push ecx
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x5c], esp
push edx
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
mov eax, dword [esp + 0xe4]
push eax
mov ecx, esi
call fcn.00409770
add dword [esp + 0x14], 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0xbc], 0xffffffff
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ebx, dword [esp + 0x18]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x40]
push ebp
push 1
push 0x110a
push ecx
call edi
add ebx, 1
cmp ebx, dword [esp + 0x30]
mov ebp, eax
mov dword [esp + 0x18], ebx
jb 0x409f5c
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret 4