Function at 0x4212d7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bc75f
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x502344]
xor eax, esp
mov dword [esp + 0x2a8], eax
push ebx
push esi
push edi
mov eax, dword [0x502344]
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 0x4213c8
push str.static
lea eax, [esp + 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4213c8
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 0x421386
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 0x4213c4
cmp eax, 4
je 0x4213c4
cmp eax, 5
je 0x4213c4
cmp eax, 6
je 0x4213c4
cmp eax, 7
je 0x4213c4
cmp eax, 8
je 0x4213c4
cmp eax, 9
je 0x4213c4
cmp eax, 0xd
je 0x4213c4
cmp eax, 0xe
je 0x4213c4
cmp eax, 0xf
jne 0x4213c8
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 0x421477
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 0x421409
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esi + 0x34], eax
mov ebx, dword [esi + 0x34]
cmp ebx, edi
je 0x421477
cmp dword [esi + 0x30], edi
jne 0x421477
push 0x58
lea eax, [esp + 0x2c]
push edi
push eax
mov dword [esp + 0x30], edi
call fcn.0049d850
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 0x421452
mov dword [esp + 0x34], 0x2bc
jmp 0x42145d
test byte [esi + 0x54], 1
jne 0x42145d
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.00421baf
cmp dword [esi + 0x24], edi
jne 0x421544
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, edi
jle 0x421544
mov dword [esp + 0x84], edi
mov dword [esp + 0x2c8], 1
inc eax
push 2
push eax
mov dword [esp + 0x24], eax
call fcn.00421b8a
pop ecx
pop ecx
cmp eax, 0x200
jbe 0x4214ee
push eax
lea eax, [esp + 0x88]
push eax
call fcn.00462c12
mov eax, dword [esp + 0x84]
jmp 0x4214fc
lea eax, [esp + 0x88]
mov dword [esp + 0x84], eax
mov dword [esp + 0x14], eax
cmp eax, edi
je 0x421520
push dword [esp + 0x1c]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x421520
push dword [esp + 0x14]
push esi
call fcn.004209d3
or dword [esp + 0x2c8], 0xffffffff
lea eax, [esp + 0x88]
cmp dword [esp + 0x84], eax
je 0x421544
lea eax, [esp + 0x84]
call fcn.0043adb6
mov ecx, esi
call fcn.00421047
cmp dword [esi + 0x28], edi
jne 0x42156a
mov eax, dword [esi + 0x54]
shr eax, 2
test al, 1
jne 0x42156a
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x421598
push eax
push esi
call fcn.00420a73
jmp 0x421598
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.00421c51
test byte [esi + 0x58], 1
je 0x42167c
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.00421b3b
cmp eax, edi
jne 0x42165c
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.00421ad3
test eax, eax
jne 0x421625
mov eax, edi
call fcn.00421a3f
cmp eax, 0xffffffff
je 0x421625
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.00421ad3
test eax, eax
jne 0x42165a
mov eax, edi
call fcn.00421a3f
cmp eax, 0xffffffff
je 0x42165a
mov ecx, dword [esp + 0x20]
mov dword [ecx + 0x50], eax
xor edi, edi
or dword [esp + 0x2c8], 0xffffffff
cmp dword [esp + 0x14], edi
je 0x421678
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.0049cdcb
mov esp, ebp
pop ebp
ret