Function at 0x496d80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515d23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b4
push ebx
push esi
push edi
mov ecx, 5
mov esi, str.SoftwareGlobalSCAPE_
lea edi, [ebp - 0x1c0]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x45
xor eax, eax
lea edi, [ebp - 0x1aa]
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1c]
push 0x10
push eax
call fcn.0042e080
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
add esp, 8
lea edx, [ebp - 0x1c0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x1c]
call fcn.004dd111
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x1c0]
push eax
push 0x20019
push 0
push ecx
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x496e42
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x24]
push edx
push 0
push eax
push 0
push str.Scheduler
push ecx
call edi
test eax, eax
je 0x496e80
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
add eax, 0x2328
push eax
call fcn.004dd75a
add esp, 4
lea ecx, [ebp - 0x18]
mov esi, eax
mov eax, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x24]
push esi
push edx
push 0
push str.Scheduler
push eax
mov dword [ebp - 0x20], esi
call edi
mov ecx, dword [ebp - 0x18]
push 0
push ecx
push esi
lea ecx, [ebp - 0x94]
call fcn.004e91d9
push 0
push 0x1000
lea edx, [ebp - 0x94]
push 1
push edx
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 0
call fcn.004e1890
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 2
lea edx, [eax + 4]
cmp edx, ecx
jbe 0x496eff
sub eax, ecx
lea ecx, [ebp - 0x6c]
add eax, 4
push eax
call fcn.004e1c1d
mov eax, dword [ebp - 0x48]
mov edi, dword [eax]
add eax, 4
mov dword [ebp - 0x48], eax
xor esi, esi
cmp esi, edi
jge 0x496f42
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x6c]
push eax
push ecx
call fcn.004983a0
call fcn.004f7db8
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x1c]
push edx
lea ecx, [eax + 0x12c]
call fcn.004d7c2f
inc esi
jmp 0x496f09
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 1
call fcn.004e19f4
lea ecx, [ebp - 0x94]
call fcn.004e9240
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004dd783
add esp, 4
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0
call fcn.004e196c
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.004e9252
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret