Function at 0x404c20
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x406f28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0x2c]
push edi
mov ecx, dword [esi + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
lea ebx, [esi + 0x44]
mov ebp, 0x10
mov edx, ebx
mov dword [esp + 0x18], ebp
mov edi, ebp
mov dword [edx], eax
mov eax, dword [esp + 0x38]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edx + 8], eax
mov al, byte [esi + 0xbc]
test al, 2
mov dword [edx + 0xc], ecx
jne 0x404cf8
push esi
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CClientDC::CClientDC
mov edx, dword [esi + 0x20]
push 0
push 0
push 0x31
push edx
mov dword [esp + 0x6c], 0
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
push eax
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CDC::SelectObject
mov eax, dword [esi + 0x128]
lea edx, [esp + 0x10]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x54]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x40]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x5c], 0xffffffff
call fcn.0040680a
mov eax, ebp
cmp eax, 0x10
jge 0x404cf8
mov ebp, 0x10
mov ecx, dword [ebx + 8]
mov edx, dword [ebx]
add ebp, 0xb
sub ecx, edx
cmp ecx, ebp
jle 0x404d1d
test byte [esi + 0xbc], 1
je 0x404d16
add edx, ebp
mov dword [esi + 0x4c], edx
jmp 0x404d1d
mov eax, dword [esi + 0x4c]
sub eax, ebp
mov dword [ebx], eax
mov ecx, dword [ebx]
push 0xfffffffffffffffe
mov dword [esp + 0x24], ecx
push 0xfffffffffffffffe
mov edx, dword [ebx + 4]
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x28]
mov eax, dword [ebx + 8]
push edx
mov dword [esp + 0x34], eax
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x38], ecx
call dword [sym.imp.USER32.dll_InflateRect]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
lea ebp, [esi + 0x54]
mov ebx, ebp
add eax, edx
mov dword [ebx], edx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], eax
lea eax, [ecx + edi]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x2c]
mov ebx, eax
sub ebx, ecx
cmp ebx, edi
mov ebx, dword [sym.imp.USER32.dll_OffsetRect]
jle 0x404d8f
sub eax, ecx
sub eax, edi
cdq
sub eax, edx
sar eax, 1
push eax
push 0
push ebp
call ebx
mov edx, dword [esp + 0x20]
jmp 0x404d92
mov dword [esi + 0x60], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov edi, eax
sub edi, edx
cmp edi, ecx
jle 0x404db3
sub eax, edx
push 0
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push ebp
call ebx
jmp 0x404db6
mov dword [esi + 0x5c], eax
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
lea edi, [esi + 0x64]
mov ecx, edi
mov dword [ecx], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov al, byte [esi + 0xbc]
test al, 1
je 0x404de7
mov ecx, dword [esi + 0x4c]
mov dword [edi], ecx
jmp 0x404ded
mov edx, dword [esi + 0x44]
mov dword [esi + 0x6c], edx
mov eax, dword [esp + 0x64]
test eax, eax
je 0x404e23
mov eax, dword [esi + 0x94]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x404e23
mov eax, dword [edi + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [edi]
sub edx, eax
push 1
push edx
mov edx, dword [edi + 8]
sub edx, ecx
push edx
push eax
push ecx
lea ecx, [esi + 0x74]
call sub.MFC42.DLL_CWnd::MoveWindow
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 4