Function at 0x421160
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4965e6
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x4bea30]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push esi
push edi
mov eax, dword [0x4bea30]
xor eax, esp
push eax
lea eax, [esp + 0x150]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x18], ebx
call fcn.0041eeb0
cmp dword [ebx + 0x3c], 0
lea eax, [ebx - 0x60]
mov dword [esp + 0x20], eax
jg 0x4211d1
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x111c
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
movsx ecx, ax
mov dword [ebx + 0x3c], ecx
mov edx, dword [ebx + 0x3c]
mov eax, dword [ebx + 4]
push 0
push 0
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x48], 0
mov eax, dword [eax + 0x20]
push 0x7f0e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x421224
lea ecx, [esp + 0x24]
test ecx, ecx
je 0x42120e
lea esi, [eax + 0x38]
mov ecx, 0x47
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x28], 5
jne 0x421224
xor edx, edx
cmp dword [esp + 0x2c], edx
setne dl
add edx, 2
mov dword [ebx + 0x44], edx
call fcn.0045525d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42123e
push 0x80004005
call fcn.004022b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x158], 0
call fcn.0045525d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x421273
push 0x80004005
call fcn.004022b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 3
mov byte [esp + 0x15c], 1
mov esi, dword [ebx + 8]
push ebx
lea ebx, [esp + 0x1c]
call fcn.0040c370
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
push 0
push 5
push 5
push edi
mov ecx, esi
call fcn.0040c9f0
mov ebx, dword [esp + 0x20]
mov ecx, dword [ebx + 0x20]
push eax
push 0
push 0x111d
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 8
push 2
push edi
mov ecx, esi
call fcn.0040c9f0
mov edx, dword [ebx + 0x20]
push eax
push 0
push 0x111e
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [edi + 8]
push 0xd
push edi
lea ebx, [esp + 0x24]
call fcn.0040c370
test eax, eax
je 0x42137f
mov ebx, dword [esp + 0x1c]
push ebx
lea edi, [esp + 0x18]
mov eax, 1
call fcn.00430810
add esp, 4
test eax, eax
je 0x421351
mov eax, dword [esp + 0x14]
push eax
call fcn.00430640
add esp, 4
test edx, edx
jl 0x421335
jg 0x42132e
test eax, eax
jbe 0x421335
mov eax, 1
jmp 0x421337
xor eax, eax
mov esi, dword [esp + 0x18]
push 0
push 0x1c
push 2
push esi
mov ecx, ebx
mov dword [esi + 0x48], eax
call fcn.0040c9f0
mov dword [esi + 0x4c], eax
jmp 0x421355
mov esi, dword [esp + 0x18]
push ebx
lea edi, [esp + 0x18]
mov eax, 5
call fcn.00430810
add esp, 4
test eax, eax
je 0x42137b
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00430640
add esp, 4
mov dword [esi + 0x40], eax
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov edx, dword [esi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x111c
push edx
call ebx
movzx eax, ax
movsx eax, ax
cmp eax, dword [edi + 0x40]
je 0x4213b8
movzx eax, word [edi + 0x40]
mov edx, dword [esi + 0x20]
push 0
movsx ecx, ax
push ecx
push 0x111b
push edx
call ebx
push 0x27
push 0x1100
push 0x25
mov ecx, esi
call fcn.0045db3f
mov byte [esp + 0x158], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4213f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x158], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42141b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.0047a105
mov esp, ebp
pop ebp
ret