Function at 0x408d28
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x19c
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0x7d0
mov eax, dword [esi + 4]
mov dword [esp + 0x28], esi
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
mov eax, dword [0x446a70]
mov dword [esp + 0x28], ebx
test eax, eax
mov dword [esp + 0x10], 0
je 0x408fbe
mov eax, 0x446a70
mov dword [esp + 0x2c], 0x446a70
add esi, 0x30
mov ecx, dword [eax]
push ebx
push ecx
lea ecx, [esi - 4]
call fcn.00408a80
mov eax, dword [esi]
lea edx, [esp + 0xac]
push 0x100
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esi]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edx, dword [esi]
and eax, 0xff3fffff
push eax
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [esi]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x20
call edi
mov ecx, dword [esp + 0x1c]
push 0x21
sub ecx, eax
mov dword [esp + 0x20], ecx
call edi
mov edi, dword [esp + 0x20]
push 4
shl eax, 1
sub edi, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub edi, eax
push 6
mov dword [esp + 0x24], edi
sub edi, ecx
mov eax, dword [esi]
push edi
sub edx, dword [esp + 0x1c]
push edx
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x50]
push edx
push eax
lea ecx, [esp + 0xb4]
push 0x1307
push ebx
mov dword [esp + 0x60], 1
mov dword [esp + 0x6c], ecx
call ebp
lea ecx, [esp + 0x30]
push ecx
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
lea edx, [esp + 0x30]
push edx
push 0
push 0x1328
push ebx
call ebp
mov ecx, dword [esi]
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
sub eax, edi
sub eax, ebx
push 0x14
add eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x38]
mov ecx, eax
mov eax, dword [esp + 0x48]
sar ecx, 1
add ecx, ebx
mov ebx, dword [esp + 0x50]
sub eax, ebx
mov dword [esp + 0x18], ecx
sub eax, edx
mov edx, dword [esp + 0x40]
add eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x38]
sar eax, 1
add eax, edx
mov edx, dword [esp + 0x44]
sub edi, edx
mov edx, dword [esp + 0x48]
sub ebx, edx
mov edx, dword [esi]
add ebx, eax
add edi, ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], edi
sub ebx, eax
sub edi, ecx
push ebx
push edi
push eax
push ecx
push 0
push edx
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ebx, dword [esp + 0x2c]
cmp ebx, 0x446a80
jge 0x408f76
mov eax, dword [esi]
push 0x7ee
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push str._10FPS
mov edi, eax
push 0
push 0x181
push edi
call ebp
push str._15FPS
push 1
push 0x181
push edi
call ebp
push str._20FPS
push 2
push 0x181
push edi
call ebp
push str._30FPS
push 3
push 0x181
push edi
call ebp
mov ecx, dword [esi]
push 0x7ef
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push str._10FPS
mov edi, eax
push 0
push 0x181
push edi
call ebp
push str._15FPS
push 1
push 0x181
push edi
call ebp
push str._20FPS
push 2
push 0x181
push edi
call ebp
push str._30FPS
push 3
push 0x181
push edi
call ebp
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
push edi
call fcn.00409050
mov edx, edi
mov eax, dword [esi]
neg edx
sbb edx, edx
and edx, 0xfffffffb
add edx, 5
push edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebx + 4]
add ebx, 4
inc edi
add esi, 0xc
mov dword [esp + 0x2c], ebx
mov eax, ebx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x10], edi
test ecx, ecx
jne 0x408d70
mov esi, dword [esp + 0x24]
push 0
push 0
push 0x130c
push ebx
call ebp
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0
push 0
push 0x14b
push 0x7d1
push edx
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], ecx
call ebx
mov ebp, dword [sym.imp.USER32.dll_LoadStringA]
mov edi, 0x220
lea eax, [esp + 0x6c]
push 0x40
push eax
push edi
push 0
call ebp
mov eax, dword [esi + 4]
lea ecx, [esp + 0x6c]
lea edx, [edi - 0x220]
push ecx
push edx
push 0x14a
push 0x7d1
push eax
call ebx
inc edi
cmp edi, 0x221
jle 0x408ffd
mov ecx, dword [esi + 4]
push 0
push 0
push 0x14e
push 0x7d1
push ecx
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x19c
ret