Function at 0x401b90
Capabilities:
Access peb ldr_data
Get graphical window text
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x471c8d
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x4f8028]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov eax, dword [0x4f8028]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
mov ecx, dword [ebx + 0x18]
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x20], edi
lea esi, [ebx + 0x1c]
call fcn.004011e0
push 0xd9d3d4
push esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x288], 0
call sub.MFC80U.DLL_Ordinal_2255
mov edx, dword [edi + 0x20]
mov ebx, dword [ebx + 0x10]
push 0x104
lea ecx, [esp + 0x60]
push ecx
push edx
mov dword [esp + 0x34], ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [edi + 0x54]
push eax
lea ecx, [esp + 0x30]
call sub.MFC80U.DLL_Ordinal_5637
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push 5
push 5
push ecx
mov ecx, dword [esi]
push edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_RoundRect]
test bl, 0x10
mov ecx, 1
je 0x401c65
mov dword [edi + 0xb8], ecx
mov dword [edi + 0xb4], ecx
jmp 0x401c73
xor eax, eax
mov dword [edi + 0xb8], eax
mov dword [edi + 0xb4], eax
mov eax, ebx
and eax, ecx
mov dword [esp + 0x18], eax
jne 0x401c82
test bl, 0x20
je 0x401c88
mov dword [edi + 0xb8], ecx
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
call sub.MFC80U.DLL_Ordinal_5637
push 0x2e
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x2d
mov ebx, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
neg ebx
push ebx
neg eax
push eax
push esi
call dword [sym.imp.USER32.dll_InflateRect]
cmp dword [edi + 0xac], 0
je 0x401cd5
lea ecx, [edi + 0x9c]
push ecx
lea ecx, [esp + 0x30]
call sub.MFC80U.DLL_Ordinal_5636
lea edx, [esp + 0x2c]
push edx
jmp 0x401cea
lea eax, [edi + 0xa4]
push eax
lea ecx, [esp + 0x30]
call sub.MFC80U.DLL_Ordinal_5636
lea ecx, [esp + 0x2c]
push ecx
push edi
mov ebx, esi
mov dword [esp + 0x1c], eax
call fcn.004017a0
cmp dword [edi + 0xac], 0
jne 0x401d08
cmp dword [edi + 0xb4], 0
je 0x401d19
mov eax, dword [esp + 0x1c]
lea edi, [esp + 0x2c]
call fcn.00401980
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x30]
call sub.MFC80U.DLL_Ordinal_5636
mov eax, dword [edi + 0x20]
push 0
push 0
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call sub.MFC80U.DLL_Ordinal_2362
push eax
lea ecx, [esp + 0x30]
call sub.MFC80U.DLL_Ordinal_5638
mov dword [esp + 0x14], eax
lea eax, [esp + 0x5c]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x401d52
sub eax, ecx
lea ecx, [esp + 0x20]
push ecx
sar eax, 1
push eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x64]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
mov ebx, dword [esp + 0x24]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esi]
add eax, dword [esi + 8]
sar ecx, 1
cdq
sub eax, edx
mov esi, eax
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x20]
cdq
sub eax, edx
sar esi, 1
sar eax, 1
sub esi, eax
cmp dword [esp + 0x18], 0
mov edi, ecx
je 0x401db7
add esi, 1
lea edi, [ecx + 1]
push 1
lea ecx, [esp + 0x30]
call sub.MFC80U.DLL_Ordinal_5727
test byte [esp + 0x28], 4
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x5c]
je 0x401ddd
push 0x22
jmp 0x401ddf
push 2
push ebx
push ecx
push edi
push esi
push 0
push edx
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_DrawStateW]
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x30]
call sub.MFC80U.DLL_Ordinal_5638
mov edx, dword [esp + 0x18]
push edx
lea ecx, [esp + 0x30]
call sub.MFC80U.DLL_Ordinal_5727
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x284], 0xffffffff
call fcn.00401330
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.0046d6fd
mov esp, ebp
pop ebp
ret 4