Function at 0x403810
Capabilities:
Get graphical window text
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4108e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2a0
push ebx
push ebp
push esi
mov esi, ecx
xor eax, eax
push edi
mov edx, dword [esi + 4]
mov dword [esp + 0x51], eax
lea ecx, [esp + 0x50]
push 8
xor ebx, ebx
mov word [esp + 0x59], ax
push ecx
push edx
mov byte [esp + 0x5c], bl
mov byte [esp + 0x63], al
call dword [sym.imp.USER32.dll_GetClassNameA]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, eax
je 0x4038d6
lea eax, [esp + 0x50]
push str.static
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4038d6
mov ecx, dword [esi + 4]
push 0xfffffffffffffff0
push ecx
call edi
mov ecx, eax
or ch, 1
cmp eax, ecx
je 0x403893
mov edx, dword [esi + 4]
push ecx
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [esi + 4]
push 0xfffffffffffffff0
push eax
call edi
and eax, 0xff
cmp eax, 3
je 0x4038d2
cmp eax, 4
je 0x4038d2
cmp eax, 5
je 0x4038d2
cmp eax, 6
je 0x4038d2
cmp eax, 7
je 0x4038d2
cmp eax, 8
je 0x4038d2
cmp eax, 9
je 0x4038d2
cmp eax, 0xd
je 0x4038d2
cmp eax, 0xe
je 0x4038d2
cmp eax, 0xf
jne 0x4038d6
and byte [esi + 0x54], 0xfe
mov ecx, dword [0x417880]
mov edx, dword [0x414044]
push 0x4140c8
push 0x414048
mov eax, dword [ecx + 4]
mov ecx, dword [0x414040]
push 0x20
push 0x20
push edx
push ecx
push eax
call dword [sym.imp.USER32.dll_CreateCursor]
mov dword [esi + 0x28], eax
mov al, byte [esi + 0x54]
test al, 1
je 0x40399e
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push ebx
push ebx
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebx
mov dword [esi + 0x30], eax
jne 0x403937
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esi + 0x30], eax
mov edx, dword [esi + 0x30]
cmp edx, ebx
je 0x40399e
cmp dword [esi + 0x2c], ebx
jne 0x40399e
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x74]
mov dword [esp + 0x70], ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x70]
push eax
push 0x3c
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esi + 0x50]
and ecx, 0x30
cmp cl, 0x30
jne 0x40397a
mov dword [esp + 0x80], 0x2bc
jmp 0x403988
test byte [esi + 0x50], 1
jne 0x403988
mov byte [esp + 0x85], 1
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [esi + 0x2c], eax
mov al, byte [esi + 0x54]
or al, 8
mov byte [esi + 0x54], al
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push ebx
lea edi, [esi + 0x44]
call fcn.004030b0
push ebx
push ebx
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push ebx
call fcn.004030b0
mov eax, dword [esi + 4]
mov ecx, edi
push eax
call fcn.00404c10
cmp dword [esi + 0x20], ebx
jne 0x403a9d
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
cmp eax, ebx
jle 0x403a9d
mov dword [esp + 0xac], ebx
lea edi, [eax + 1]
mov dword [esp + 0x2b8], ebx
cmp edi, 0x200
jbe 0x403a09
push edi
call fcn.00408f9e
add esp, 4
jmp 0x403a10
lea eax, [esp + 0xb0]
cmp eax, ebx
mov dword [esp + 0xac], eax
mov ebp, eax
je 0x403a7e
mov edx, dword [esi + 4]
push edi
push eax
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
jle 0x403a77
mov eax, dword [esi + 0x20]
push eax
call fcn.004080ac
add esp, 4
mov dword [esi + 0x20], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
push edi
call fcn.00408443
add esp, 4
cmp eax, ebx
mov dword [esi + 0x20], eax
je 0x403a77
push ebp
push edi
push eax
call fcn.00404060
add esp, 0xc
mov ecx, esi
call fcn.004040d0
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x403a77
push ebp
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [esp + 0xac]
lea ecx, [esp + 0xb0]
mov dword [esp + 0x2b8], 0xffffffff
cmp eax, ecx
je 0x403a9d
push eax
call fcn.00408e1f
add esp, 4
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403d2b
cmp dword [esi + 0x20], ebx
jne 0x403abd
cmp dword [esi + 0x24], ebx
je 0x403d34
mov eax, dword [esi + 4]
mov dword [esp + 0x1c], ebx
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x1c], eax
mov edx, dword [esi + 4]
xor eax, eax
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x38], eax
push ecx
push edx
mov dword [esp + 0x2c0], 1
mov dword [esp + 0x38], ebx
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
lea edi, [esi + 0x34]
mov eax, edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov al, byte [esi + 0x54]
test al, 1
jne 0x403b3f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2b8], 0xffffffff
call fcn.00404080
jmp 0x403d2b
mov eax, dword [esi + 0x50]
shr eax, 4
test al, 1
je 0x403c64
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x58]
push ecx
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
mov ecx, esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
call fcn.00404d50
mov eax, dword [esi + 0x30]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ecx
call ebp
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x3c]
cmp eax, ebx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
je 0x403be0
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x60]
push 0x410
push ecx
push edx
push eax
lea ecx, [esp + 0x2c]
call fcn.00404a70
mov eax, dword [esi + 0x2c]
push eax
mov eax, dword [esp + 0x20]
push eax
call ebp
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x3c]
cmp eax, ebx
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], ecx
je 0x403c1b
mov edx, dword [esp + 0x68]
mov dword [esp + 0x40], edx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x40]
push 0x410
push eax
push ecx
push edx
lea ecx, [esp + 0x2c]
call fcn.00404a70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [edi], edx
mov edx, dword [esp + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
jmp 0x403d15
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x2c], ebx
cmp eax, ebx
je 0x403c7f
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x403c8c
mov dword [esp + 0x10], eax
jmp 0x403c93
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x10], ecx
mov edx, dword [esi + 4]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ebx, eax
xor eax, eax
mov ebp, ebx
and ebp, 1
je 0x403cb1
mov eax, 1
jmp 0x403cbb
test bl, 2
je 0x403cbb
mov eax, 2
or eax, 0x410
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push edi
push 0xffffffffffffffff
push eax
call fcn.00404a70
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x403ce9
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
test ebp, ebp
je 0x403cfd
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0x3c]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
jmp 0x403d0b
test bl, 2
je 0x403d15
mov eax, dword [esp + 0x38]
mov ebx, dword [esi + 0x3c]
sub eax, ebx
push 0
push eax
push edi
call dword [sym.imp.USER32.dll_OffsetRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2b8], 0xffffffff
call fcn.00404080
xor ebx, ebx
cmp dword [esi + 0x24], ebx
jne 0x403dca
mov eax, dword [esi + 0x50]
shr eax, 2
test al, 1
jne 0x403dca
mov ebp, dword [esi + 0x20]
cmp ebp, ebx
je 0x403e00
push ebx
call fcn.004080ac
add esp, 4
mov dword [esi + 0x24], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
push edi
call fcn.00408443
add esp, 4
cmp eax, ebx
mov dword [esi + 0x24], eax
je 0x403e00
push ebp
push edi
push eax
call fcn.00404060
mov eax, dword [esi + 0x20]
add esp, 0xc
cmp eax, ebx
jne 0x403d90
mov ecx, esi
call fcn.004040d0
mov ecx, dword [esi + 0x44]
lea edi, [esi + 0x44]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403e00
mov edx, dword [edi]
push ebx
push 1
push 0x401
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi + 0x24]
lea eax, [esi + 0x34]
push 1
push eax
push ecx
mov ecx, esp
push edx
call fcn.004030b0
mov eax, dword [esi + 4]
push eax
jmp 0x403df9
mov ecx, dword [esi + 0x44]
lea edi, [esi + 0x44]
push ebx
push 1
push 0x401
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x24]
lea edx, [esi + 0x34]
push 1
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.004030b0
mov ecx, dword [esi + 4]
push ecx
mov ecx, edi
call fcn.00403310
test byte [esi + 0x54], 1
je 0x40401c
lea edx, [esp + 0x10]
mov dword [esp + 0x18], ebx
push edx
push 0xf003f
push ebx
push str.SoftwareMicrosoftInternet_ExplorerSettings
push 0x80000001
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x404013
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, ebx
je 0x403e46
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x18], ecx
jne 0x404013
xor eax, eax
lea edx, [esp + 0x28]
mov dword [esp + 0x41], eax
push edx
mov dword [esp + 0x49], eax
lea edx, [esp + 0x18]
mov word [esp + 0x4d], ax
mov byte [esp + 0x44], 0
mov byte [esp + 0x4f], al
lea eax, [esp + 0x44]
push eax
push edx
push ebx
push str.Anchor_Color
push ecx
mov dword [esp + 0x40], 0xc
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403f3c
or eax, 0xffffffff
lea ebp, [esp + 0x40]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], 0
lea ebx, [esp + 0x1c]
mov al, byte [ebp]
mov edi, ebp
test al, al
je 0x403eec
cmp al, 0x2c
je 0x403edb
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
mov al, byte [edi]
test al, al
jne 0x403ec6
jmp 0x403eec
push ebp
mov byte [edi], 0
call fcn.00408f93
add esp, 4
mov dword [ebx], eax
lea ebp, [edi + 1]
cmp dword [ebx], 0xffffffff
je 0x403f3c
mov eax, dword [esp + 0x10]
add ebx, 4
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jl 0x403ebd
cmp byte [ebp], 0
je 0x403f3c
push ebp
call fcn.00408f93
mov ecx, dword [esp + 0x24]
and eax, 0xff
shl eax, 8
and ecx, 0xff
add esp, 4
or eax, ecx
mov ecx, dword [esp + 0x1c]
shl eax, 8
and ecx, 0xff
or eax, ecx
cmp eax, 0xffffffff
je 0x403f3c
mov dword [esi + 0x48], eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x40]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push str.Anchor_Color_Visited
push eax
mov dword [esp + 0x40], 0xc
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404013
or eax, 0xffffffff
lea ebp, [esp + 0x40]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], 0
lea ebx, [esp + 0x1c]
mov al, byte [ebp]
mov edi, ebp
test al, al
je 0x403fc3
cmp al, 0x2c
je 0x403fb2
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
mov al, byte [edi]
test al, al
jne 0x403f9d
jmp 0x403fc3
push ebp
mov byte [edi], 0
call fcn.00408f93
add esp, 4
mov dword [ebx], eax
lea ebp, [edi + 1]
cmp dword [ebx], 0xffffffff
je 0x404013
mov eax, dword [esp + 0x10]
add ebx, 4
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jl 0x403f94
cmp byte [ebp], 0
je 0x404013
push ebp
call fcn.00408f93
mov ecx, dword [esp + 0x24]
and eax, 0xff
shl eax, 8
and ecx, 0xff
add esp, 4
or eax, ecx
mov ecx, dword [esp + 0x1c]
shl eax, 8
and ecx, 0xff
or eax, ecx
cmp eax, 0xffffffff
je 0x404013
mov dword [esi + 0x4c], eax
lea ecx, [esp + 0x18]
call fcn.00404040
mov ecx, dword [esp + 0x2b0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2ac
ret