Function at 0x40331e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14c
mov eax, dword [ebp + 0xc]
cmp eax, 0x14
je 0x4035af
cmp eax, 0x14
ja 0x40334e
cmp eax, 2
je 0x403401
cmp eax, 0x10
je 0x4033bc
jmp 0x4035c7
cmp eax, 0x111
je 0x40336e
cmp eax, 0x138
je 0x403538
cmp eax, 0x2b
je 0x40341a
jmp 0x4035c7
mov edx, dword [ebp + 0x14]
mov eax, dword [0x6d9034]
mov eax, dword [eax + 8]
cmp edx, eax
jne 0x4035c3
mov eax, dword [0x6d906c]
test eax, eax
je 0x4033a1
mov eax, dword [0x6d9034]
mov eax, dword [eax]
mov dword [esp], eax
call sub.USER32.dll_DestroyWindow
sub esp, 4
jmp 0x4035c3
mov eax, dword [0x6d9034]
mov dword [esp], 0
mov ecx, eax
call fcn.00402d2a
sub esp, 4
jmp 0x4035c3
mov eax, dword [0x6d9034]
mov eax, dword [eax]
cmp eax, dword [ebp + 8]
jne 0x4033f7
mov eax, dword [0x6d9034]
mov dword [esp], 0
mov ecx, eax
call fcn.00402d76
sub esp, 4
xor eax, 1
test al, al
je 0x4033f7
mov eax, dword [0x6d9034]
mov eax, dword [eax]
mov dword [esp], eax
call sub.USER32.dll_DestroyWindow
sub esp, 4
mov eax, 0
jmp 0x4035ea
mov dword [esp], 0
call sub.USER32.dll_PostQuitMessage
sub esp, 4
mov eax, 0
jmp 0x4035ea
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x2c]
lea ebx, [eax + 0x1c]
mov eax, 4
mov edi, edx
mov esi, ebx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.GDI32.dll_SetBkMode
sub esp, 8
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x14]
mov dword [esp + 8], 0x100
lea edx, [ebp - 0x12c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.USER32.dll_GetWindowTextA
sub esp, 0xc
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov dword [esp + 4], 0xf3f3f3
mov dword [esp], eax
call sub.GDI32.dll_SetTextColor
sub esp, 8
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x12c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x10], 0x10
lea ecx, [ebp - 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
lea edx, [ebp - 0x12c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.USER32.dll_DrawTextA
sub esp, 0x14
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.GDI32.dll_SetTextColor
sub esp, 8
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x12c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x10], 0x10
lea ecx, [ebp - 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
lea edx, [ebp - 0x12c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.USER32.dll_DrawTextA
sub esp, 0x14
mov eax, 1
jmp 0x4035ea
mov edx, dword [ebp + 0x14]
mov eax, dword [0x6d9040]
cmp edx, eax
je 0x40356b
mov edx, dword [ebp + 0x14]
mov eax, dword [0x6d9034]
mov eax, dword [eax + 0xc]
cmp edx, eax
je 0x40356b
mov edx, dword [ebp + 0x14]
mov eax, dword [0x6d9044]
cmp edx, eax
je 0x40356b
mov edx, dword [ebp + 0x14]
mov eax, dword [0x6d9050]
cmp edx, eax
jne 0x4035a8
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.GDI32.dll_SetBkMode
sub esp, 8
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.GDI32.dll_SetTextColor
sub esp, 8
mov dword [esp], 5
call sub.GDI32.dll_GetStockObject
sub esp, 4
jmp 0x4035ea
mov eax, 1
jmp 0x4035ea
mov eax, dword [0x6d9034]
mov eax, dword [eax + 0xc]
cmp eax, dword [ebp + 8]
jne 0x4035c6
mov eax, 0
jmp 0x4035ea
nop
jmp 0x4035c7
nop
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.USER32.dll_DefWindowProcA
sub esp, 0x10
jmp 0x4035f4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10