Function at 0x411790
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5081aa
push eax
mov dword fs:[0], esp
sub esp, 0x824
push ebx
push esi
push edi
mov edi, dword [esp + 0x840]
xor esi, esi
mov ebx, ecx
cmp edi, esi
je 0x411af5
cmp dword [esp + 0x844], esi
je 0x411af5
push ebp
push edi
lea ecx, [esp + 0x2c]
mov ebp, 1
mov dword [esp + 0x1c], esi
call fcn.004ea7b5
mov eax, dword [esp + 0x848]
lea ecx, [esp + 0x20]
push eax
mov dword [esp + 0x840], 3
call fcn.004ea7b5
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x34]
mov byte [esp + 0x83c], 4
rep stosd dword es:[edi], eax
mov ecx, dword [0x543c98]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], ecx
mov edx, dword [ebx + 0x1b8]
lea eax, [esp + 0x24]
push edx
push str.softwareTEC_sOcular.3Agent
push eax
mov byte [esp + 0x848], 5
call fcn.004e3c81
mov edx, dword [esp + 0x30]
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
push 0x20019
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov edi, ebp
jne 0x4119cc
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x34]
push eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x14]
push ecx
push edx
push esi
push str.CheckPeFileFilter
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4118b2
cmp dword [esp + 0x10], edi
jne 0x4118b2
lea ecx, [esp + 0x34]
push ecx
call fcn.0043533b
add esp, 4
test eax, eax
jbe 0x4118b2
mov dword [esp + 0x18], edi
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4119cc
lea eax, [esp + 0x20]
lea ecx, [esp + 0x1c]
push eax
call fcn.004ea4ae
mov ecx, dword [0x543c98]
mov byte [esp + 0x83c], 6
mov dword [esp + 0x10], ecx
push 0x5c
lea ecx, [esp + 0x20]
mov byte [esp + 0x840], 7
call fcn.004e38eb
cmp eax, 0xffffffff
jne 0x411936
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push edx
call fcn.00454fb0
mov eax, dword [eax]
mov ecx, ebx
push eax
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x844], 8
call fcn.00411bb0
mov esi, eax
mov byte [esp + 0x83c], 7
lea ecx, [esp + 0x14]
jmp 0x4119a5
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.004e37a3
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x840], 9
call fcn.004ea888
lea ecx, [esp + 0x14]
mov byte [esp + 0x83c], 7
call fcn.004ea741
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call fcn.00454fb0
mov eax, dword [eax]
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, ebx
mov byte [esp + 0x844], 0xa
call fcn.00411bb0
mov esi, eax
mov byte [esp + 0x83c], 7
lea ecx, [esp + 0x14]
call fcn.00455820
lea ecx, [esp + 0x10]
mov byte [esp + 0x83c], 6
call fcn.004ea741
lea ecx, [esp + 0x1c]
mov byte [esp + 0x83c], 5
call fcn.004ea741
mov eax, dword [esp + 0x84c]
xor ecx, ecx
and eax, 0x40
or eax, ecx
je 0x4119e0
mov esi, edi
jmp 0x4119e4
cmp esi, ecx
je 0x411a0c
mov eax, dword [esp + 0x854]
lea edx, [esp + 0x10]
cmp eax, ecx
mov eax, dword [esp + 0x28]
push edx
mov dword [esp + 0x14], ecx
push ecx
jne 0x411a01
mov eax, dword [esp + 0x28]
push eax
call fcn.00418b00
add esp, 0xc
mov ebp, eax
mov ecx, dword [0x543c98]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x840], 0xb
call fcn.00454fb0
mov edi, eax
mov eax, dword [esp + 0x28]
mov bl, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x840], bl
call fcn.00454fb0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x854]
push esi
push ecx
mov ecx, dword [edi]
push edx
mov edx, dword [eax]
push ebp
push ecx
push edx
lea eax, [esp + 0x48]
push str.IsValidPeFile___s____s____d___d___d___d_
push eax
mov byte [esp + 0x85c], 0xd
call fcn.004e3c81
add esp, 0x20
lea ecx, [esp + 0x14]
mov byte [esp + 0x83c], bl
call fcn.00455820
lea ecx, [esp + 0x10]
mov byte [esp + 0x83c], 0xb
call fcn.00455820
mov ecx, dword [esp + 0x30]
push 0
push 2
push ecx
call fcn.0041e3a0
add esp, 0xc
lea ecx, [esp + 0x30]
mov byte [esp + 0x83c], 5
call fcn.004ea741
lea ecx, [esp + 0x24]
mov byte [esp + 0x83c], 4
call fcn.004ea741
lea ecx, [esp + 0x20]
mov byte [esp + 0x83c], 3
call fcn.004ea741
lea ecx, [esp + 0x28]
mov dword [esp + 0x83c], 0xffffffff
call fcn.004ea741
mov eax, ebp
pop ebp
jmp 0x411b93
mov edx, dword [0x543c98]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x844]
lea ecx, [esp + 0xc]
push eax
mov dword [esp + 0x83c], esi
call fcn.00454fb0
mov ebx, eax
push edi
lea ecx, [esp + 0x14]
mov byte [esp + 0x83c], 1
call fcn.00454fb0
mov ecx, dword [ebx]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x1c]
push str.IsValidPeFile_NULL___s____s_
push eax
mov byte [esp + 0x848], 2
call fcn.004e3c81
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0x838], 1
call fcn.00455820
lea ecx, [esp + 0xc]
mov byte [esp + 0x838], 0
call fcn.00455820
mov ecx, dword [esp + 0x14]
push esi
push 2
push ecx
call fcn.0041e3a0
add esp, 0xc
lea ecx, [esp + 0x14]
mov dword [esp + 0x838], 0xffffffff
call fcn.004ea741
xor eax, eax
mov ecx, dword [esp + 0x830]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x830
ret 0x14