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

Disassembly:
push ebp
lea ebp, [esp - 0x2dc]
sub esp, 0x2dc
push 0xffffffffffffffff
push 0x6582a3
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x2d8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
call fcn.005f6b34
mov dword [esi + 0xf8], esi
mov dword [esi + 0xfc], 0x6d4
push 0x6d4
mov ecx, esi
call fcn.005f5a75
mov eax, dword [eax + 0x20]
mov dword [esi + 0xf4], eax
mov dword [esi + 0x108], esi
mov dword [esi + 0x10c], 0x699
push 0x699
mov ecx, esi
call fcn.005f5a75
mov ecx, dword [eax + 0x20]
mov dword [esi + 0x104], ecx
mov dword [esi + 0x118], esi
mov dword [esi + 0x11c], 0x5f7
push 0x5f7
mov ecx, esi
call fcn.005f5a75
mov edx, dword [eax + 0x20]
mov dword [esi + 0x114], edx
mov dword [esi + 0x128], esi
mov dword [esi + 0x12c], 0x698
push 0x698
mov ecx, esi
call fcn.005f5a75
mov eax, dword [eax + 0x20]
mov dword [esi + 0x124], eax
mov dword [esi + 0x138], esi
mov dword [esi + 0x13c], 0x6b9
push 0x6b9
mov ecx, esi
call fcn.005f5a75
mov ecx, dword [eax + 0x20]
mov dword [esi + 0x134], ecx
lea ebx, [esi + 0x140]
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], 0x672
push 0x672
mov ecx, esi
call fcn.005f5a75
mov edx, dword [eax + 0x20]
mov dword [ebx + 4], edx
mov dword [esi + 0x158], esi
mov dword [esi + 0x15c], 0x565
push 0x565
mov ecx, esi
call fcn.005f5a75
mov eax, dword [eax + 0x20]
mov dword [esi + 0x154], eax
mov dword [ebp - 4], 0
lea edi, [esi + 0x170]
mov edx, dword [edi]
push 0
push esi
mov ecx, edi
mov eax, dword [edx + 0x13c]
call eax
push 0x420
push esi
push edi
call fcn.00403240
push 0x425
push esi
push edi
call fcn.00403240
add esp, 0x18
push 1
mov ecx, edi
call fcn.00401620
mov ecx, esi
call fcn.00424390
xor edi, edi
cmp eax, edi
je 0x505a4d
lea ecx, [ebp + 0x210]
push ecx
mov ecx, eax
call fcn.004a5550
test eax, eax
je 0x505a4d
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov edx, 0x3ff
and ax, dx
mov ecx, 4
cmp cx, ax
je 0x5059df
mov dword [ebp + 0x220], 0x258
push 0x48
push 0x5a
mov ecx, esi
call fcn.004015c0
mov edx, dword [eax + 4]
push edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 9
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [ebp + 0x210], eax
mov eax, dword [0x678e3c]
mov dword [ebp + 0x22c], eax
mov cx, word [0x678e40]
mov word [ebp + 0x230], cx
mov dl, byte [0x678e42]
mov byte [ebp + 0x232], dl
lea eax, [ebp + 0x210]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
cmp eax, edi
je 0x505a4d
push 1
push eax
push 0x30
mov ecx, dword [esi + 0x114]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [0x75dd30], edi
je 0x505ac3
push 0x8b
push esi
mov ecx, 0x75dcf0
call fcn.004e6a60
mov dword [ebp + 0x24c], edi
mov dword [ebp + 0x254], edi
xor edx, edx
mov word [ebp + 0x250], dx
mov byte [ebp - 4], 1
mov eax, dword [0x75dd28]
push eax
mov ecx, dword [0x75eda0]
push ecx
lea ecx, [ebp + 0x24c]
call fcn.00401970
mov eax, dword [ebp + 0x24c]
cmp eax, edi
jne 0x505aa6
lea eax, [ebp + 0x250]
push eax
mov edx, dword [esi + 0x114]
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x24c]
call fcn.00401210
push 0x40
lea eax, [ebp + 0x258]
push eax
mov ecx, dword [esi + 0x124]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x505af1
lea edx, [ebp + 0x258]
push edx
mov eax, dword [esi + 0x134]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, esi
call fcn.00505570
mov dword [ebp - 0x14], 4
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x20]
push edx
push edi
push edi
push str.RunIEMonitor2
mov eax, dword [0x75dbe4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x505b24
mov ecx, dword [ebp - 0x20]
push ecx
jmp 0x505b26
push 1
mov ecx, ebx
call fcn.00405450
mov ecx, dword [esi + 0x94]
add ecx, 4
call fcn.0040f7f0
cmp dword [0x75dbc0], edi
je 0x505b59
push edi
mov ecx, ebx
call fcn.00405450
push edi
mov edx, dword [esi + 0x144]
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
lea edi, [esi + 0x98]
push 0x24
mov ecx, edi
call fcn.0040d0b0
mov byte [ebp - 0x2c], 0
mov eax, 0x60
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
push 0xffffffffffffffff
push 0x14a
lea ecx, [ebp - 0x2c]
call fcn.0040d180
push eax
push 0
push 0x67997c
push 0
mov ecx, edi
call fcn.00601481
xor edi, edi
mov dword [ebp - 0x1c], edi
mov eax, dword [esi + 0x94]
cmp edi, dword [eax + 0xc]
jge 0x505c46
cmp dword [0x75dbc0], 0
je 0x505bd4
push edi
lea ecx, [eax + 4]
call fcn.004ce870
add eax, 4
mov eax, dword [eax]
push str.IEXPLORE
push eax
call fcn.006226ae
add esp, 8
test eax, eax
je 0x505c40
push edi
mov ecx, dword [esi + 0x94]
add ecx, 4
call fcn.004ce870
mov eax, dword [eax]
lea ecx, [esi + 0x98]
push eax
push edi
call fcn.0040d070
mov ebx, eax
cmp ebx, 0xffffffff
jle 0x505c40
push edi
mov ecx, dword [esi + 0x94]
add ecx, 4
call fcn.004ce870
cmp dword [eax + 8], 0
je 0x505c33
mov dword [ebp - 0x50], 0xf000
mov dword [ebp - 0x54], 0x2000
lea eax, [ebp - 0x60]
push eax
push ebx
push 0x102b
mov ecx, dword [esi + 0xb8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
push ebx
lea ecx, [esi + 0x98]
call fcn.0040d050
inc edi
jmp 0x505b99
mov dword [ebp - 4], 0xffffffff
jmp 0x505c86
mov dword [esi + 0x1e4], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2d8]
xor ecx, ebp
call fcn.00620b8d
add ebp, 0x2dc
mov esp, ebp
pop ebp
ret