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

Disassembly:
push 0xffffffffffffffff
push 0x42da56
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 0x403746
lea eax, [esp + 0x50]
push 0x436634
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
jne 0x403746
mov ecx, dword [esi + 4]
push 0xfffffffffffffff0
push ecx
call edi
mov ecx, eax
or ch, 1
cmp eax, ecx
je 0x403703
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 0x403742
cmp eax, 4
je 0x403742
cmp eax, 5
je 0x403742
cmp eax, 6
je 0x403742
cmp eax, 7
je 0x403742
cmp eax, 8
je 0x403742
cmp eax, 9
je 0x403742
cmp eax, 0xd
je 0x403742
cmp eax, 0xe
je 0x403742
cmp eax, 0xf
jne 0x403746
and byte [esi + 0x54], 0xfe
mov ecx, dword [0x45ec18]
mov edx, dword [0x43607c]
push 0x436100
push 0x436080
mov eax, dword [ecx + 4]
mov ecx, dword [0x436078]
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 0x40380e
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 0x4037a7
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esi + 0x30], eax
mov edx, dword [esi + 0x30]
cmp edx, ebx
je 0x40380e
cmp dword [esi + 0x2c], ebx
jne 0x40380e
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 0x4037ea
mov dword [esp + 0x80], 0x2bc
jmp 0x4037f8
test byte [esi + 0x50], 1
jne 0x4037f8
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.00402eb0
push ebx
push ebx
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push ebx
call fcn.00402eb0
mov eax, dword [esi + 4]
mov ecx, edi
push eax
call fcn.00404250
cmp dword [esi + 0x20], ebx
jne 0x40390f
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
cmp eax, ebx
jle 0x40390f
mov dword [esp + 0xac], ebx
lea edi, [eax + 1]
mov dword [esp + 0x2b8], ebx
cmp edi, 0x200
jbe 0x40387a
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
jmp 0x403881
lea eax, [esp + 0xb0]
cmp eax, ebx
mov dword [esp + 0xac], eax
mov ebp, eax
je 0x4038ef
mov edx, dword [esi + 4]
push edi
push eax
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
jle 0x4038e8
mov eax, dword [esi + 0x20]
push eax
call fcn.0042d5f4
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 0x4038e8
push ebp
push edi
push eax
call fcn.00403ed0
add esp, 0xc
mov ecx, esi
call fcn.00403f20
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4038e8
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 0x40390f
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 0x403b9d
cmp dword [esi + 0x20], ebx
jne 0x40392f
cmp dword [esi + 0x24], ebx
je 0x403ba6
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 0x4039b1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2b8], 0xffffffff
call fcn.00403ef0
jmp 0x403b9d
mov eax, dword [esi + 0x50]
shr eax, 4
test al, 1
je 0x403ad6
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.00404390
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 0x403a52
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x60]
push 0x410
push ecx
push edx
push eax
lea ecx, [esp + 0x2c]
call fcn.00404230
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 0x403a8d
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.00404230
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 0x403b87
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x2c], ebx
cmp eax, ebx
je 0x403af1
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 0x403afe
mov dword [esp + 0x10], eax
jmp 0x403b05
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 0x403b23
mov eax, 1
jmp 0x403b2d
test bl, 2
je 0x403b2d
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.00404230
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x403b5b
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 0x403b6f
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0x3c]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
jmp 0x403b7d
test bl, 2
je 0x403b87
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.00403ef0
xor ebx, ebx
cmp dword [esi + 0x24], ebx
jne 0x403c3c
mov eax, dword [esi + 0x50]
shr eax, 2
test al, 1
jne 0x403c3c
mov ebp, dword [esi + 0x20]
cmp ebp, ebx
je 0x403c72
push ebx
call fcn.0042d5f4
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 0x403c72
push ebp
push edi
push eax
call fcn.00403ed0
mov eax, dword [esi + 0x20]
add esp, 0xc
cmp eax, ebx
jne 0x403c02
mov ecx, esi
call fcn.00403f20
mov ecx, dword [esi + 0x44]
lea edi, [esi + 0x44]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403c72
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.00402eb0
mov eax, dword [esi + 4]
push eax
jmp 0x403c6b
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.00402eb0
mov ecx, dword [esi + 4]
push ecx
mov ecx, edi
call fcn.004034d0
test byte [esi + 0x54], 1
je 0x403e92
lea edx, [esp + 0x10]
mov dword [esp + 0x18], ebx
push edx
push 0xf003f
push ebx
push str.SoftwareMicrosoftInternet_ExplorerSettings
push connect
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x403e89
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, ebx
je 0x403cb8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x18], ecx
jne 0x403e89
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 0x403db0
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 0x403d5f
cmp al, 0x2c
je 0x403d4d
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
mov al, byte [edi]
test al, al
jne 0x403d38
jmp 0x403d5f
push ebp
mov byte [edi], 0
call dword [sym.imp.ntdll.dll_atoi]
add esp, 4
mov dword [ebx], eax
lea ebp, [edi + 1]
cmp dword [ebx], 0xffffffff
je 0x403db0
mov eax, dword [esp + 0x10]
add ebx, 4
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jl 0x403d2f
cmp byte [ebp], 0
je 0x403db0
push ebp
call dword [sym.imp.ntdll.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 0x403db0
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 0x403e89
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 0x403e38
cmp al, 0x2c
je 0x403e26
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
mov al, byte [edi]
test al, al
jne 0x403e11
jmp 0x403e38
push ebp
mov byte [edi], 0
call dword [sym.imp.ntdll.dll_atoi]
add esp, 4
mov dword [ebx], eax
lea ebp, [edi + 1]
cmp dword [ebx], 0xffffffff
je 0x403e89
mov eax, dword [esp + 0x10]
add ebx, 4
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jl 0x403e08
cmp byte [ebp], 0
je 0x403e89
push ebp
call dword [sym.imp.ntdll.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 0x403e89
mov dword [esi + 0x4c], eax
lea ecx, [esp + 0x18]
call fcn.00403eb0
mov ecx, dword [esp + 0x2b0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2ac
ret