Function at 0x480380
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f6c0
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x88], 1
xor edx, edx
mov dword [ebp - 4], edx
cmp edi, edx
jne 0x4803da
xor eax, eax
jmp 0x480616
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x2b
je 0x480412
cmp ecx, 0x134
jbe 0x480603
cmp ecx, 0x138
ja 0x480603
push 0xf4fffe
push eax
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [0x5c0c54]
mov dword [edi], eax
jmp 0x480609
cmp dword [esi], 4
jne 0x480603
mov ebx, 0x10
mov dword [ebp - 0x98], ebx
test byte [esi + 0x10], 1
je 0x480437
mov ebx, 0x210
mov dword [ebp - 0x98], ebx
push 0xffffff
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.GDI32.dll_SetBkColor]
lea edi, [esi + 0x1c]
push ebx
push 4
push edi
mov edx, dword [esi + 0x18]
push edx
call dword [sym.imp.USER32.dll_DrawFrameControl]
mov eax, dword [edi]
mov dword [ebp - 0x74], eax
mov ecx, dword [edi + 4]
mov dword [ebp - 0x70], ecx
mov edx, dword [edi + 8]
mov dword [ebp - 0x6c], edx
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x68], eax
push 0x2e
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
call edi
push eax
push 0x2d
call edi
push eax
lea ecx, [ebp - 0x74]
push ecx
call fcn.004c4510
add esp, 0xc
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea edx, [ebp - 0x74]
push edx
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.USER32.dll_FillRect]
mov byte [ebp - 0x54], 0
push 0x3f
push 0
lea ecx, [ebp - 0x53]
push ecx
call fcn.004ff6f0
add esp, 0xc
push 0x40
lea edx, [ebp - 0x54]
push edx
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [ebp - 0x54], 0
je 0x4805b1
lea eax, [ebp - 0x54]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4804d5
sub eax, edx
lea ecx, [ebp - 0x5c]
push ecx
push eax
lea edx, [ebp - 0x54]
push edx
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x74]
sub eax, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov eax, dword [ebp - 0x5c]
cdq
sub eax, edx
sar eax, 1
sub edi, eax
add edi, ecx
mov dword [ebp - 0x90], edi
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x70]
sub eax, ecx
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, dword [ebp - 0x58]
cdq
sub eax, edx
sar eax, 1
sub ebx, eax
add ebx, ecx
mov dword [ebp - 0x8c], ebx
test byte [esi + 0x10], 1
je 0x480547
inc edi
mov dword [ebp - 0x90], edi
inc ebx
mov dword [ebp - 0x8c], ebx
push 0xfffffffffffffff0
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x8000000
je 0x480565
push 0x808080
mov edx, dword [esi + 0x18]
push edx
jmp 0x48056b
push 0
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x80], ebx
add edi, dword [ebp - 0x5c]
mov dword [ebp - 0x7c], edi
add ebx, dword [ebp - 0x58]
mov dword [ebp - 0x78], ebx
lea eax, [ebp - 0x54]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x480590
sub eax, edx
push 1
lea ecx, [ebp - 0x84]
push ecx
push eax
lea edx, [ebp - 0x54]
push edx
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.USER32.dll_DrawTextA]
mov eax, dword [esi + 0x10]
test al, 0x10
je 0x4805f5
test eax, 0x200
jne 0x4805f5
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0x64], ecx
mov edx, dword [esi + 0x20]
mov dword [ebp - 0x60], edx
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x5c], eax
mov ecx, dword [esi + 0x28]
mov dword [ebp - 0x58], ecx
push 3
push 3
lea edx, [ebp - 0x64]
push edx
call fcn.004c4510
add esp, 0xc
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov edx, dword [ebp - 0x94]
mov dword [edx], 1
jmp 0x480609
mov dword [ebp - 0x88], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret