Function at 0x4595e0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x188
mov eax, dword [0x4bb548]
push ebx
push ebp
mov ecx, 1
xor ebp, ebp
dec eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x54], ebp
je 0x459605
dec eax
je 0x459605
dec eax
jne 0x45960c
mov ebx, 0xbfb8bf
jmp 0x459610
mov ebx, dword [esp + 0x50]
push esi
push edi
mov edi, dword [esp + 0x19c]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x4c], ebp
mov eax, dword [edi]
push ecx
mov dword [esp + 0x40], eax
call fcn.00457370
mov eax, dword [edi]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [edi]
lea ecx, [esp + 0x60]
push pe_nt_image_headers32
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov esi, dword [sym.imp.USER32.dll_FillRect]
test eax, eax
jne 0x45969d
lea eax, [esp + 0x20]
mov dword [esp + 0x28], ebp
push eax
push str.yiyuyan
mov dword [esp + 0x40], 2
call fcn.004595c0
mov ecx, dword [esp + 0x4c]
add esp, 4
push eax
push str.yiyuyan
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x24]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
jmp 0x45977e
mov edx, dword [edi]
push ebp
push ebp
push 0x31
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
mov eax, dword [esp + 0x48]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x60]
push ecx
push edx
mov dword [esp + 0x64], eax
call fcn.004595c0
mov ecx, dword [esp + 0x4c]
add esp, 4
push eax
lea eax, [esp + 0x68]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
push 0xfffffffffffffff0
mov eax, dword [esp + 0x28]
cdq
sub eax, edx
mov edx, dword [edi]
sar eax, 1
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, eax
and ecx, 0x100
je 0x459704
test ah, 2
je 0x459711
test ah, 2
je 0x45970d
cmp ecx, ebp
je 0x459722
cmp ecx, ebp
jne 0x459739
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, 0xa
mov dword [esp + 0x2c], eax
jmp 0x45974e
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
lea eax, [edx - 0xa]
mov dword [esp + 0x34], eax
sub eax, ecx
mov dword [esp + 0x2c], eax
jmp 0x459752
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x2c], eax
add ecx, eax
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x24]
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x2c]
push ecx
push edx
push eax
mov dword [esp + 0x3c], ebp
call esi
mov eax, dword [esp + 0x24]
cdq
sub eax, edx
sar eax, 1
add eax, 2
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0x14]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x2c]
push edx
push eax
push ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebp
call esi
mov eax, dword [edi + 0x14]
lea ecx, [esp + 0x2c]
mov edx, dword [esp + 0x1c]
push eax
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x48]
push ecx
push edx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x40], 2
call esi
mov dword [esp + 0x2c], ebp
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x44]
lea ecx, [eax - 2]
mov eax, dword [edi + 0x14]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x2c]
push eax
push ecx
push edx
call esi
mov dword [esp + 0x30], ebp
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x44]
lea ecx, [eax - 2]
mov eax, dword [edi + 0x14]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x2c]
push eax
push ecx
push edx
call esi
push ebx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x44]
push esi
push eax
push ecx
call dword [sym.imp.USER32.dll_FrameRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebp
push ebp
mov edx, dword [esp + 0x4c]
push edx
call dword [sym.imp.GDI32.dll_GetPixel]
inc edi
invalid