Function at 0x402690
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419158
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x42200c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], edx
mov edi, ecx
call fcn.00401200
mov ecx, eax
test ecx, ecx
je 0x4028d6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3c], eax
push 0x13
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor esi, esi
cmp dword [esi*4 + 0x4233e0], edi
je 0x402702
inc esi
cmp esi, 0x64
jl 0x4026f0
or esi, 0xffffffff
lea ecx, [ebp - 0x38]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402710
sub ecx, edx
lea eax, [ebp - 0x38]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00402360
lea eax, [esi + esi*4]
mov dword [ebp - 0x40], 0
cmp dword [eax*8 + 0x4235d4], 8
lea eax, [eax*8 + 0x4235c0]
jb 0x402749
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x40]
call fcn.00401dd0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004044a0
mov esi, dword [ebp - 0x3c]
or ebx, 0xffffffff
test al, al
je 0x402818
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x402777
or eax, ebx
jmp 0x402799
cmp dword [esi - 0xc], 0
jge 0x402782
or eax, 0xffffffff
jmp 0x402799
push eax
push esi
call fcn.00406ff1
add esp, 8
test eax, eax
jne 0x402795
or eax, 0xffffffff
jmp 0x402799
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00404560
mov byte [ebp - 4], 2
lea edi, [esi - 0x10]
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x4027fa
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x4027eb
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4027eb
call fcn.00402130
mov dword [ebp - 0x44], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4027e3
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x44]
lea esi, [eax + 0x10]
mov dword [ebp - 0x3c], esi
jmp 0x4027fa
push dword [edx - 0xc]
lea ecx, [ebp - 0x3c]
push edx
call fcn.00402360
mov esi, dword [ebp - 0x3c]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402818
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x48]
lea ebx, [esi - 0x10]
mov edi, dword [ecx]
sub edi, 0x10
cmp ebx, edi
je 0x40286a
cmp dword [edi + 0xc], 0
jl 0x402861
mov eax, dword [ebx]
cmp eax, dword [edi]
jne 0x402861
mov ecx, ebx
call fcn.00402130
mov dword [ebp - 0x44], eax
lea edx, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402857
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
add eax, 0x10
mov dword [ecx], eax
jmp 0x40286a
push dword [esi - 0xc]
push esi
call fcn.00402360
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x402870
mov byte [ebp - 4], al
sub esi, ecx
mov edx, dword [ebp - 0x40]
or edi, 0xffffffff
sar esi, 1
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40289f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [ebx + 0xc], edi
dec edi
test edi, edi
jg 0x4028b8
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00405af0
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401070
int3