Function at 0x405b20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x417480
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x4e4]
lea ebx, [esi + 0x4d4]
mov ecx, eax
mov eax, dword [ecx]
mov dword [esp + 0x38], eax
mov edx, dword [ecx + 4]
mov dword [esp + 0x3c], edx
mov ebp, dword [ecx + 8]
sub ebp, eax
mov eax, dword [esi + 0x1c0]
mov edi, dword [ecx + 0xc]
mov ecx, ebx
cmp eax, ebp
mov dword [esp + 0x10], eax
mov edx, dword [ecx]
mov dword [esp + 0x28], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x30], edx
lea edx, [esi + 0x4f4]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x34], ecx
mov ecx, dword [edx]
mov dword [esp + 0x18], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edx + 8]
mov dword [esp + 0x20], ecx
mov edx, dword [edx + 0xc]
mov dword [esp + 0x24], edx
jle 0x405c90
lea ebx, [esi + 0x494]
push 1
mov ecx, ebx
call sub.MFC42u.DLL_CWnd::EnableWindow
push 5
mov ecx, ebx
call sub.MFC42u.DLL_CWnd::ShowWindow
mov eax, dword [esp + 0x3c]
push 1
sub edi, eax
lea ecx, [esi + 0x178]
push edi
push ebp
push eax
mov eax, dword [esp + 0x48]
push eax
call sub.MFC42u.DLL_CWnd::MoveWindow
mov ecx, esi
call fcn.00405ad0
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x405c01
push 2
call edi
mov ecx, dword [esp + 0x20]
add ecx, eax
jmp 0x405c05
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
sub eax, edx
push 1
push eax
mov eax, dword [esp + 0x20]
sub ecx, eax
push ecx
push edx
push eax
mov ecx, ebx
call sub.MFC42u.DLL_CWnd::MoveWindow
mov ecx, esi
call fcn.00405ad0
test eax, eax
je 0x405c49
push 2
call edi
mov ecx, dword [esp + 0x10]
push 1
sub ecx, ebp
add eax, ecx
mov ecx, dword [esi + 0x4b4]
push eax
push 0
push 2
push ecx
jmp 0x405c5d
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x4b4]
sub eax, ebp
push 1
push eax
push 0
push 2
push edx
call dword [sym.imp.USER32.dll_SetScrollRange]
mov eax, dword [esi + 0x2ac]
mov ecx, dword [esi + 0x4b4]
neg eax
push 1
push eax
push 2
push ecx
call dword [sym.imp.USER32.dll_SetScrollPos]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret
lea ecx, [esi + 0x494]
push 0
call sub.MFC42u.DLL_CWnd::EnableWindow
push 0
lea ecx, [esi + 0x494]
call sub.MFC42u.DLL_CWnd::ShowWindow
push 3
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edx, dword [esp + 0x38]
add edi, eax
mov eax, dword [esp + 0x3c]
push 1
sub edi, eax
lea ecx, [esi + 0x178]
push edi
push ebp
push eax
push edx
call sub.MFC42u.DLL_CWnd::MoveWindow
mov eax, dword [esi + 0x4b4]
xor edi, edi
push 1
push edi
push edi
push 2
push eax
call dword [sym.imp.USER32.dll_SetScrollRange]
mov dword [esi + 0x2ac], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0x4190a8
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
mov ebp, dword [ebx]
sub eax, ecx
mov ecx, dword [ebx + 8]
push eax
sub ecx, ebp
mov dword [esp + 0x54], edi
push ecx
push edi
push edi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CGdiObject::Attach
mov ebx, dword [esp + 0x14]
mov ecx, dword [esi + 0x27c]
lea eax, [esp + 0x10]
push edi
neg eax
sbb eax, eax
and eax, ebx
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
sub eax, edx
push 1
push eax
mov eax, dword [esp + 0x38]
sub eax, ecx
push eax
push edx
push ecx
lea ecx, [esi + 0x25c]
call sub.MFC42u.DLL_CWnd::MoveWindow
mov dword [esp + 0x10], 0x418a6c
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], 1
call sub.MFC42u.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret