Function at 0x402e00
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, edx
push 0x1de6b5
mov dword [ebp - 0x54], esi
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edi, eax
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
push ebx
push dword [ebp - 0x54]
mov esi, eax
call dword [sym.imp.USER32.dll_FillRect]
push esi
mov esi, dword [ebp - 0x54]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebx]
add eax, 9
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x7c], eax
mov eax, dword [ebx + 4]
add eax, 5
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x78], eax
mov eax, dword [ebx + 8]
sub eax, 9
mov dword [ebp - 0x74], eax
mov eax, dword [ebx + 0xc]
sub eax, 5
push 0x28
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x50]
push eax
push 0x3ee
push dword [0x4278d8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [ebp - 0x50], 0
je 0x403026
lea eax, [ebp - 0x58]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x50]
call fcn.00402d30
add esp, 4
cmp eax, 3
jne 0x402ee5
push 0x40
push 0
push 0x41db18
push dword [0x4278d8]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404743
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x402f07
lea edx, [ebp - 0x7c]
mov ecx, esi
call fcn.00402ce0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404743
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x58]
or eax, 0xffffffff
or esi, eax
xor edi, edi
test ebx, ebx
jle 0x402f93
lea edx, [eax + 3]
nop dword [eax + eax]
movzx ecx, byte [ebp + edi - 0x28]
test cl, cl
js 0x402f31
test esi, esi
lea eax, [edx - 2]
cmovs esi, eax
test cl, 0x40
jne 0x402f3e
test esi, esi
lea eax, [edx - 1]
cmovs esi, eax
test cl, 0x20
jne 0x402f4a
test esi, esi
mov eax, edx
cmovs esi, edx
test cl, 0x10
jne 0x402f57
test esi, esi
lea eax, [edx + 1]
cmovs esi, eax
test cl, 8
jne 0x402f64
test esi, esi
lea eax, [edx + 2]
cmovs esi, eax
test cl, 4
jne 0x402f71
test esi, esi
lea eax, [edx + 3]
cmovs esi, eax
test cl, 2
jne 0x402f7e
test esi, esi
lea eax, [edx + 4]
cmovs esi, eax
test cl, 1
jne 0x402f8b
test esi, esi
lea eax, [edx + 5]
cmovs esi, eax
inc edi
add edx, 8
cmp edi, ebx
jl 0x402f20
push 0
sub esi, eax
push 2
add esi, 0x7f
push 0
and esi, 0xfffffffe
call dword [sym.imp.GDI32.dll_CreatePen]
mov ebx, dword [ebp - 0x54]
push eax
push ebx
mov dword [ebp - 0x6c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
xor ecx, ecx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x54], ecx
cmp dword [ebp - 0x58], ecx
jle 0x403015
add esi, dword [ebp - 0x5c]
movzx edx, byte [ebp + ecx - 0x28]
xor edi, edi
mov dword [ebp - 0x5c], edx
nop
mov ecx, 7
mov eax, 1
sub ecx, edi
shl eax, cl
test edx, eax
jne 0x402ffd
push 0
push dword [ebp - 0x60]
push esi
push ebx
call dword [sym.imp.GDI32.dll_MoveToEx]
push dword [ebp - 0x64]
push esi
push ebx
call dword [sym.imp.GDI32.dll_LineTo]
mov edx, dword [ebp - 0x5c]
inc edi
add esi, 2
cmp edi, 8
jl 0x402fd0
mov ecx, dword [ebp - 0x54]
inc ecx
mov dword [ebp - 0x54], ecx
cmp ecx, dword [ebp - 0x58]
jl 0x402fc5
mov eax, dword [ebp - 0x68]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x6c]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404743
mov esp, ebp
pop ebp
ret