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

Disassembly:
push 0xffffffffffffffff
push 0x43a8d6
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 0x403976
lea eax, [esp + 0x50]
push str.static
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403976
mov ecx, dword [esi + 4]
push 0xfffffffffffffff0
push ecx
call edi
mov ecx, eax
or ch, 1
cmp eax, ecx
je 0x403933
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 0x403972
cmp eax, 4
je 0x403972
cmp eax, 5
je 0x403972
cmp eax, 6
je 0x403972
cmp eax, 7
je 0x403972
cmp eax, 8
je 0x403972
cmp eax, 9
je 0x403972
cmp eax, 0xd
je 0x403972
cmp eax, 0xe
je 0x403972
cmp eax, 0xf
jne 0x403976
and byte [esi + 0x54], 0xfe
mov ecx, dword [0x445260]
mov edx, dword [0x44403c]
push 0x4440c0
push 0x444040
mov eax, dword [ecx + 4]
mov ecx, dword [0x444038]
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 0x403a3e
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 0x4039d7
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esi + 0x30], eax
mov edx, dword [esi + 0x30]
cmp edx, ebx
je 0x403a3e
cmp dword [esi + 0x2c], ebx
jne 0x403a3e
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 0x403a1a
mov dword [esp + 0x80], 0x2bc
jmp 0x403a28
test byte [esi + 0x50], 1
jne 0x403a28
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.00402bf0
push ebx
push ebx
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push ebx
call fcn.00402bf0
mov eax, dword [esi + 4]
mov ecx, edi
push eax
call fcn.00404920
cmp dword [esi + 0x20], ebx
jne 0x403b3f
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
cmp eax, ebx
jle 0x403b3f
mov dword [esp + 0xac], ebx
lea edi, [eax + 1]
mov dword [esp + 0x2b8], ebx
cmp edi, 0x200
jbe 0x403aaa
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
jmp 0x403ab1
lea eax, [esp + 0xb0]
cmp eax, ebx
mov dword [esp + 0xac], eax
mov ebp, eax
je 0x403b1f
mov edx, dword [esi + 4]
push edi
push eax
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
jle 0x403b18
mov eax, dword [esi + 0x20]
push eax
call fcn.0043a372
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 sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
mov dword [esi + 0x20], eax
je 0x403b18
push ebp
push edi
push eax
call fcn.00404120
add esp, 0xc
mov ecx, esi
call fcn.004058f0
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x403b18
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 0x403b3f
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403dcd
cmp dword [esi + 0x20], ebx
jne 0x403b5f
cmp dword [esi + 0x24], ebx
je 0x403dd6
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 0x403be1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2b8], 0xffffffff
call fcn.00404140
jmp 0x403dcd
mov eax, dword [esi + 0x50]
shr eax, 4
test al, 1
je 0x403d06
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.00404170
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 0x403c82
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x60]
push 0x410
push ecx
push edx
push eax
lea ecx, [esp + 0x2c]
call fcn.00405ee0
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 0x403cbd
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.00405ee0
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 0x403db7
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x2c], ebx
cmp eax, ebx
je 0x403d21
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 0x403d2e
mov dword [esp + 0x10], eax
jmp 0x403d35
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 0x403d53
mov eax, 1
jmp 0x403d5d
test bl, 2
je 0x403d5d
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.00405ee0
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x403d8b
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 0x403d9f
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0x3c]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
jmp 0x403dad
test bl, 2
je 0x403db7
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.00404140
xor ebx, ebx
cmp dword [esi + 0x24], ebx
jne 0x403e6c
mov eax, dword [esi + 0x50]
shr eax, 2
test al, 1
jne 0x403e6c
mov ebp, dword [esi + 0x20]
cmp ebp, ebx
je 0x403ea2
push ebx
call fcn.0043a372
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 sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
mov dword [esi + 0x24], eax
je 0x403ea2
push ebp
push edi
push eax
call fcn.00404120
mov eax, dword [esi + 0x20]
add esp, 0xc
cmp eax, ebx
jne 0x403e32
mov ecx, esi
call fcn.004058f0
mov ecx, dword [esi + 0x44]
lea edi, [esi + 0x44]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403ea2
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.00402bf0
mov eax, dword [esi + 4]
push eax
jmp 0x403e9b
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.00402bf0
mov ecx, dword [esi + 4]
push ecx
mov ecx, edi
call fcn.00404980
test byte [esi + 0x54], 1
je 0x4040c2
lea edx, [esp + 0x10]
mov dword [esp + 0x18], ebx
push edx
push 0xf003f
push ebx
push str.SoftwareMicrosoftInternet_ExplorerSettings
push SysReAllocStringLen
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4040b9
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, ebx
je 0x403ee8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x18], ecx
jne 0x4040b9
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 0x403fe0
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 0x403f8f
cmp al, 0x2c
je 0x403f7d
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
mov al, byte [edi]
test al, al
jne 0x403f68
jmp 0x403f8f
push ebp
mov byte [edi], 0
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebx], eax
lea ebp, [edi + 1]
cmp dword [ebx], 0xffffffff
je 0x403fe0
mov eax, dword [esp + 0x10]
add ebx, 4
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jl 0x403f5f
cmp byte [ebp], 0
je 0x403fe0
push ebp
call dword [sym.imp.MSVCRT.dll_atoi]
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 0x403fe0
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 0x4040b9
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 0x404068
cmp al, 0x2c
je 0x404056
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
mov al, byte [edi]
test al, al
jne 0x404041
jmp 0x404068
push ebp
mov byte [edi], 0
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebx], eax
lea ebp, [edi + 1]
cmp dword [ebx], 0xffffffff
je 0x4040b9
mov eax, dword [esp + 0x10]
add ebx, 4
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jl 0x404038
cmp byte [ebp], 0
je 0x4040b9
push ebp
call dword [sym.imp.MSVCRT.dll_atoi]
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 0x4040b9
mov dword [esi + 0x4c], eax
lea ecx, [esp + 0x18]
call fcn.00404100
mov ecx, dword [esp + 0x2b0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2ac
ret