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

Disassembly:
push 0xffffffffffffffff
push 0x43fe86
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 0x403726
lea eax, [esp + 0x50]
push str.static
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403726
mov ecx, dword [esi + 4]
push 0xfffffffffffffff0
push ecx
call edi
mov ecx, eax
or ch, 1
cmp eax, ecx
je 0x4036e3
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 0x403722
cmp eax, 4
je 0x403722
cmp eax, 5
je 0x403722
cmp eax, 6
je 0x403722
cmp eax, 7
je 0x403722
cmp eax, 8
je 0x403722
cmp eax, 9
je 0x403722
cmp eax, 0xd
je 0x403722
cmp eax, 0xe
je 0x403722
cmp eax, 0xf
jne 0x403726
and byte [esi + 0x54], 0xfe
mov ecx, dword [0x47c550]
mov edx, dword [0x4490ac]
push 0x449130
push 0x4490b0
mov eax, dword [ecx + 4]
mov ecx, dword [0x4490a8]
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 0x4037ee
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 0x403787
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esi + 0x30], eax
mov edx, dword [esi + 0x30]
cmp edx, ebx
je 0x4037ee
cmp dword [esi + 0x2c], ebx
jne 0x4037ee
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 0x4037ca
mov dword [esp + 0x80], 0x2bc
jmp 0x4037d8
test byte [esi + 0x50], 1
jne 0x4037d8
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.00402e90
push ebx
push ebx
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push ebx
call fcn.00402e90
mov eax, dword [esi + 4]
mov ecx, edi
push eax
call fcn.00404230
cmp dword [esi + 0x20], ebx
jne 0x4038ef
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
cmp eax, ebx
jle 0x4038ef
mov dword [esp + 0xac], ebx
lea edi, [eax + 1]
mov dword [esp + 0x2b8], ebx
cmp edi, 0x200
jbe 0x40385a
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
jmp 0x403861
lea eax, [esp + 0xb0]
cmp eax, ebx
mov dword [esp + 0xac], eax
mov ebp, eax
je 0x4038cf
mov edx, dword [esi + 4]
push edi
push eax
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
jle 0x4038c8
mov eax, dword [esi + 0x20]
push eax
call fcn.0043fa08
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 0x4038c8
push ebp
push edi
push eax
call fcn.00403eb0
add esp, 0xc
mov ecx, esi
call fcn.00403f00
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4038c8
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 0x4038ef
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 0x403b7d
cmp dword [esi + 0x20], ebx
jne 0x40390f
cmp dword [esi + 0x24], ebx
je 0x403b86
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 0x403991
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2b8], 0xffffffff
call fcn.00403ed0
jmp 0x403b7d
mov eax, dword [esi + 0x50]
shr eax, 4
test al, 1
je 0x403ab6
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.00404370
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 0x403a32
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x60]
push 0x410
push ecx
push edx
push eax
lea ecx, [esp + 0x2c]
call fcn.00404210
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 0x403a6d
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.00404210
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 0x403b67
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x2c], ebx
cmp eax, ebx
je 0x403ad1
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 0x403ade
mov dword [esp + 0x10], eax
jmp 0x403ae5
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 0x403b03
mov eax, 1
jmp 0x403b0d
test bl, 2
je 0x403b0d
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.00404210
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x403b3b
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 0x403b4f
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0x3c]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
jmp 0x403b5d
test bl, 2
je 0x403b67
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.00403ed0
xor ebx, ebx
cmp dword [esi + 0x24], ebx
jne 0x403c1c
mov eax, dword [esi + 0x50]
shr eax, 2
test al, 1
jne 0x403c1c
mov ebp, dword [esi + 0x20]
cmp ebp, ebx
je 0x403c52
push ebx
call fcn.0043fa08
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 0x403c52
push ebp
push edi
push eax
call fcn.00403eb0
mov eax, dword [esi + 0x20]
add esp, 0xc
cmp eax, ebx
jne 0x403be2
mov ecx, esi
call fcn.00403f00
mov ecx, dword [esi + 0x44]
lea edi, [esi + 0x44]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403c52
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.00402e90
mov eax, dword [esi + 4]
push eax
jmp 0x403c4b
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.00402e90
mov ecx, dword [esi + 4]
push ecx
mov ecx, edi
call fcn.004034b0
test byte [esi + 0x54], 1
je 0x403e72
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 0x403e69
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, ebx
je 0x403c98
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x18], ecx
jne 0x403e69
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 0x403d90
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 0x403d3f
cmp al, 0x2c
je 0x403d2d
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
mov al, byte [edi]
test al, al
jne 0x403d18
jmp 0x403d3f
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 0x403d90
mov eax, dword [esp + 0x10]
add ebx, 4
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jl 0x403d0f
cmp byte [ebp], 0
je 0x403d90
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 0x403d90
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 0x403e69
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 0x403e18
cmp al, 0x2c
je 0x403e06
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
mov al, byte [edi]
test al, al
jne 0x403df1
jmp 0x403e18
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 0x403e69
mov eax, dword [esp + 0x10]
add ebx, 4
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jl 0x403de8
cmp byte [ebp], 0
je 0x403e69
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 0x403e69
mov dword [esi + 0x4c], eax
lea ecx, [esp + 0x18]
call fcn.00403e90
mov ecx, dword [esp + 0x2b0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2ac
ret