Function at 0x404b90
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x41e498
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
lea ebx, [esi + 0x54]
mov edx, ebx
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 dword [edx + 0xc], ecx
test byte [esi + 0xdc], 2
mov edi, 0x10
mov ebp, edi
mov eax, edi
jne 0x404c6a
push esi
lea ecx, [esp + 0x44]
call fcn.0041a5a0
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0x31
push edx
mov dword [esp + 0x6c], 0
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call fcn.0041a75b
push eax
lea ecx, [esp + 0x44]
call fcn.0041a845
mov eax, dword [esi + 0x158]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x10]
push edx
push ecx
push eax
mov eax, dword [esp + 0x54]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x40]
mov dword [esp + 0x10], edi
mov dword [esp + 0x5c], 0xffffffff
call fcn.0041a5fb
cmp edi, 0x10
jge 0x404c66
mov dword [esp + 0x10], 0x10
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx]
add eax, 0xb
sub ecx, edx
cmp ecx, eax
jle 0x404c8f
test byte [esi + 0xdc], 1
je 0x404c88
add edx, eax
mov dword [esi + 0x5c], edx
jmp 0x404c8f
mov ecx, dword [esi + 0x5c]
sub ecx, eax
mov dword [ebx], ecx
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
push 0xfffffffffffffffe
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
mov edx, dword [ebx + 0xc]
push 0xfffffffffffffffe
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
lea edx, [edi + eax]
mov dword [esp + 0x18], edx
lea edx, [ecx + ebp]
mov dword [esp + 0x1c], edx
lea ebx, [esi + 0x64]
mov edx, ebx
mov dword [edx], eax
mov eax, dword [esp + 0x18]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov eax, ecx
sub eax, edx
cmp eax, ebp
jle 0x404d0a
sub eax, ebp
cdq
sub eax, edx
sar eax, 1
push eax
push 0
push ebx
call dword [sym.imp.USER32.dll_OffsetRect]
jmp 0x404d0d
mov dword [esi + 0x70], ecx
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x20]
mov eax, ecx
sub eax, ebp
cmp eax, edi
jle 0x404d30
sub eax, edi
cdq
sub eax, edx
push 0
sar eax, 1
push eax
push ebx
call dword [sym.imp.USER32.dll_OffsetRect]
jmp 0x404d33
mov dword [esi + 0x6c], ecx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
lea edi, [esi + 0x74]
mov edx, edi
mov dword [edx], eax
mov eax, dword [esp + 0x38]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edx + 8], eax
test byte [esi + 0xdc], 1
mov dword [edx + 0xc], ecx
je 0x404d63
mov edx, dword [esi + 0x5c]
mov dword [edi], edx
jmp 0x404d69
mov eax, dword [esi + 0x54]
mov dword [esi + 0x7c], eax
mov eax, dword [esp + 0x64]
test eax, eax
je 0x404da2
mov ecx, dword [esi + 0xa0]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x404da2
mov eax, dword [edi + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [edi]
push 1
sub edx, eax
push edx
mov edx, dword [edi + 8]
sub edx, ecx
push edx
push eax
push ecx
lea ecx, [esi + 0x84]
call fcn.00417dda
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 4