Function at 0x4212f9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bba3f
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x501344]
xor eax, esp
mov dword [esp + 0x2a8], eax
push ebx
push esi
push edi
mov eax, dword [0x501344]
xor eax, esp
push eax
lea eax, [esp + 0x2c0]
mov dword fs:[0], eax
xor eax, eax
mov word [esp + 0x290], ax
lea edi, [esp + 0x292]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 8
lea eax, [esp + 0x294]
mov esi, ecx
push eax
push dword [esi + 4]
mov dword [esp + 0x2c], esi
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x4213ea
push str.static
lea eax, [esp + 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4213ea
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push dword [esi + 4]
call edi
mov ecx, eax
or ecx, 0x100
cmp eax, ecx
je 0x4213a8
push ecx
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0xfffffffffffffff0
push dword [esi + 4]
call edi
and eax, 0xff
cmp eax, 3
je 0x4213e6
cmp eax, 4
je 0x4213e6
cmp eax, 5
je 0x4213e6
cmp eax, 6
je 0x4213e6
cmp eax, 7
je 0x4213e6
cmp eax, 8
je 0x4213e6
cmp eax, 9
je 0x4213e6
cmp eax, 0xd
je 0x4213e6
cmp eax, 0xe
je 0x4213e6
cmp eax, 0xf
jne 0x4213ea
and byte [esi + 0x58], 0xfe
push 0x7f89
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_LoadCursorW]
test byte [esi + 0x58], 1
mov dword [esi + 0x2c], eax
je 0x421499
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetParent]
push edi
push edi
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x34], eax
cmp eax, edi
jne 0x42142b
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esi + 0x34], eax
mov ebx, dword [esi + 0x34]
cmp ebx, edi
je 0x421499
cmp dword [esi + 0x30], edi
jne 0x421499
push 0x58
lea eax, [esp + 0x2c]
push edi
push eax
mov dword [esp + 0x30], edi
call fcn.0049cb00
add esp, 0xc
mov dword [esp + 0x2c8], edi
lea eax, [esp + 0x24]
push eax
push 0x5c
push ebx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esi + 0x54]
and eax, 0x30
cmp al, 0x30
jne 0x421474
mov dword [esp + 0x34], 0x2bc
jmp 0x42147f
test byte [esi + 0x54], 1
jne 0x42147f
mov byte [esp + 0x39], 1
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
or byte [esi + 0x58], 8
mov dword [esi + 0x30], eax
or dword [esp + 0x2c8], 0xffffffff
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
push ecx
mov dword [eax], edi
mov eax, esp
mov dword [esp + 0x1c], esp
mov dword [eax], edi
push dword [esi + 4]
lea ebx, [esi + 0x48]
push ebx
call fcn.00421bda
cmp dword [esi + 0x24], edi
jne 0x421566
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, edi
jle 0x421566
mov dword [esp + 0x84], edi
mov dword [esp + 0x2c8], 1
inc eax
push 2
push eax
mov dword [esp + 0x24], eax
call fcn.00421bac
pop ecx
pop ecx
cmp eax, 0x200
jbe 0x421510
push eax
lea eax, [esp + 0x88]
push eax
call fcn.0046204f
mov eax, dword [esp + 0x84]
jmp 0x42151e
lea eax, [esp + 0x88]
mov dword [esp + 0x84], eax
mov dword [esp + 0x14], eax
cmp eax, edi
je 0x421542
push dword [esp + 0x1c]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x421542
push dword [esp + 0x14]
push esi
call fcn.004209f8
or dword [esp + 0x2c8], 0xffffffff
lea eax, [esp + 0x88]
cmp dword [esp + 0x84], eax
je 0x421566
lea eax, [esp + 0x84]
call fcn.00421bd1
mov ecx, esi
call fcn.00421069
cmp dword [esi + 0x28], edi
jne 0x42158c
mov eax, dword [esi + 0x54]
shr eax, 2
test al, 1
jne 0x42158c
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x4215ba
push eax
push esi
call fcn.00420a98
jmp 0x4215ba
push edi
push 1
push 0x401
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esi + 0x38]
push eax
mov eax, dword [esi + 0x28]
push ecx
xor edx, edx
mov ecx, esp
inc edx
mov dword [esp + 0x1c], esp
mov dword [ecx], eax
mov eax, dword [esi + 4]
push ebx
mov ebx, edx
call fcn.00421c7c
test byte [esi + 0x58], 1
je 0x42169e
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c8], 2
push 0x2001f
push str.SoftwareMicrosoftInternet_ExplorerSettings
push SysReAllocStringLen
lea eax, [esp + 0x20]
call fcn.00421b5d
cmp eax, edi
jne 0x42167e
xor eax, eax
mov word [esp + 0x2a0], ax
lea edi, [esp + 0x2a2]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xc
pop ebx
stosw word es:[edi], ax
push str.Anchor_Color
lea eax, [esp + 0x18]
push eax
lea esi, [esp + 0x24]
lea edi, [esp + 0x2a8]
mov dword [esp + 0x24], ebx
call fcn.00421af5
test eax, eax
jne 0x421647
mov eax, edi
call fcn.00421a61
cmp eax, 0xffffffff
je 0x421647
mov ecx, dword [esp + 0x20]
mov dword [ecx + 0x4c], eax
push str.Anchor_Color_Visited
lea eax, [esp + 0x18]
push eax
lea esi, [esp + 0x24]
lea edi, [esp + 0x2a8]
mov dword [esp + 0x24], ebx
call fcn.00421af5
test eax, eax
jne 0x42167c
mov eax, edi
call fcn.00421a61
cmp eax, 0xffffffff
je 0x42167c
mov ecx, dword [esp + 0x20]
mov dword [ecx + 0x50], eax
xor edi, edi
or dword [esp + 0x2c8], 0xffffffff
cmp dword [esp + 0x14], edi
je 0x42169a
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x2c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a8]
xor ecx, esp
call fcn.0049c07b
mov esp, ebp
pop ebp
ret