Function at 0x493800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a07d7
mov eax, dword fs:[0]
push eax
mov eax, 0x4254
call fcn.0055f2e0
mov eax, dword [0x5e6468]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x18]
mov ecx, dword [eax + 4]
push ecx
mov ecx, edi
mov dword [ebp - 0x4240], edi
call fcn.00496bf0
mov eax, dword [edi + 0x18]
lea edx, [ebp - 0x422c]
push edx
mov dword [eax + 4], eax
mov eax, dword [edi + 0x18]
push 0x20019
xor ebx, ebx
push ebx
mov dword [edi + 0x1c], ebx
mov dword [eax], eax
mov eax, dword [edi + 0x18]
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [eax + 8], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x493886
xor eax, eax
jmp 0x493bf5
lea eax, [ebp - 0x4219]
push eax
lea ecx, [ebp - 0x4219]
push ecx
lea ecx, [ebp - 0x4260]
call fcn.004968e0
lea edx, [ebp - 0x4224]
push edx
lea eax, [ebp - 0x4218]
push eax
lea ecx, [ebp - 0x4234]
push ecx
push ebx
lea edx, [ebp - 0x4230]
push edx
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x422c]
push eax
push ebx
push ecx
mov dword [ebp - 0x4230], 0x104
mov dword [ebp - 0x4224], 0x3ffe
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x493a74
mov eax, dword [ebp - 0x4234]
cmp eax, 1
jne 0x49397f
mov edx, dword [ebp - 0x4224]
lea ecx, [ebp - 0x218]
shr edx, 1
xor eax, eax
push 0x104
push ecx
mov word [ebp + edx*2 - 0x4218], ax
call fcn.00564615
add esp, 8
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x4228]
call fcn.00426f30
lea eax, [ebp - 0x4228]
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00495700
lea edx, [ebp - 0x4218]
lea ecx, [edx + 2]
mov si, word [edx]
add edx, 2
test si, si
jne 0x493952
sub edx, ecx
sar edx, 1
push edx
lea ecx, [ebp - 0x4218]
push ecx
mov ecx, eax
call fcn.00427a50
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x4228]
jmp 0x493a08
cmp eax, 2
jne 0x493a24
mov ecx, dword [ebp - 0x4224]
lea eax, [ebp - 0x218]
shr ecx, 1
xor edx, edx
push 0x104
push eax
mov word [ebp + ecx*2 - 0x4218], dx
call fcn.00564615
add esp, 8
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x4220]
call fcn.00426f30
lea edx, [ebp - 0x4220]
push edx
lea ecx, [ebp - 0x4260]
mov byte [ebp - 4], 2
call fcn.00495700
lea edx, [ebp - 0x4218]
lea ecx, [edx + 2]
nop
mov si, word [edx]
add edx, 2
test si, si
jne 0x4939e0
sub edx, ecx
sar edx, 1
push edx
lea ecx, [ebp - 0x4218]
push ecx
mov ecx, eax
call fcn.00427a50
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x4220]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x493a24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x4224]
push ecx
lea edx, [ebp - 0x4218]
push edx
lea eax, [ebp - 0x4234]
push eax
mov eax, dword [ebp - 0x422c]
push 0
lea ecx, [ebp - 0x4230]
push ecx
lea edx, [ebp - 0x218]
push edx
inc ebx
push ebx
push eax
mov dword [ebp - 0x4230], 0x104
mov dword [ebp - 0x4224], 0x3ffe
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x4938f0
mov ecx, dword [ebp - 0x422c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x4248]
mov edi, dword [edx]
mov esi, dword [ebp - 0x4260]
mov dword [ebp - 0x423c], esi
mov dword [ebp - 0x4238], edi
jmp 0x493aa0
mov ebx, dword [ebp - 0x4248]
test esi, esi
je 0x493ab2
cmp esi, dword [ebp - 0x4260]
je 0x493ab7
call fcn.0055e4b6
cmp edi, ebx
je 0x493bcf
mov eax, dword [0x5f22b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f22b0
call edx
add eax, 0x10
mov dword [ebp - 0x4220], eax
mov byte [ebp - 4], 3
test esi, esi
jne 0x493b7f
call fcn.0055e4b6
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x493af4
call fcn.0055e4b6
mov ebx, dword [ebp - 0x4240]
push ebx
lea ecx, [edi + 0x10]
lea edx, [ebp - 0x4220]
call fcn.00490e60
add esp, 4
test esi, esi
jne 0x493b86
call fcn.0055e4b6
cmp edi, dword [esi + 0x18]
jne 0x493b1f
call fcn.0055e4b6
lea eax, [edi + 0xc]
push eax
mov ecx, ebx
call fcn.00495700
mov ebx, eax
mov eax, dword [ebp - 0x4220]
mov esi, dword [ebx]
lea edi, [eax - 0x10]
sub esi, 0x10
cmp edi, esi
je 0x493b96
cmp dword [esi + 0xc], 0
jl 0x493b8a
mov ecx, dword [edi]
cmp ecx, dword [esi]
jne 0x493b8a
push edi
call fcn.00427bb0
mov dword [ebp - 0x4228], eax
add esp, 4
lea eax, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x493b72
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [ebp - 0x4228]
add eax, 0x10
mov dword [ebx], eax
jmp 0x493b96
mov eax, dword [esi]
jmp 0x493aea
mov esi, dword [esi]
jmp 0x493b15
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.00427a50
mov byte [ebp - 4], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x493bb3
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
lea ecx, [ebp - 0x423c]
call fcn.00497820
mov edi, dword [ebp - 0x4238]
mov esi, dword [ebp - 0x423c]
jmp 0x493aa0
lea ecx, [ebp - 0x4260]
mov dword [ebp - 4], 4
call fcn.00496ca0
mov eax, dword [ebp - 0x4260]
push eax
call fcn.0055dfce
add esp, 4
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 - 0x10]
xor ecx, ebp
call fcn.0055e289
mov esp, ebp
pop ebp
ret