Function at 0x5a5dcc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd58
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2a0], ebx
mov dword [ebp - 0x2a4], ebx
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5a6115
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00404b20
cmp dword [ebp - 8], 0
je 0x5a5e2f
push dword [ebp - 0x14]
push 0x5a612c
push dword [ebp - 8]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404e18
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0x14]
call fcn.00404f58
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x5a60ef
xor eax, eax
push ebp
push 0x5a60e8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 9], 0
jne 0x5a5e84
mov eax, dword [ebp - 8]
call fcn.00404f58
mov edx, eax
lea eax, [ebp - 0x91]
call fcn.0040a968
mov byte [ebp - 0x25], 1
jmp 0x5a5eeb
cmp byte [ebp - 9], 1
jne 0x5a5eb6
mov dword [ebp - 0x24], 0x65
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x91]
push eax
push 0
push 0
push 0x5a6130
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete byte [ebp - 0x25]
jmp 0x5a5eeb
cmp byte [ebp - 9], 2
jne 0x5a5ed5
mov esi, 0x5a6144
lea edi, [ebp - 0x91]
mov ecx, 0x19
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x25], 1
jmp 0x5a5eeb
mov ecx, 0x5a61b4
mov dl, 1
mov eax, dword [0x40880c]
call fcn.0040e18c
call fcn.00404404
cmp byte [ebp - 0x25], 0
je 0x5a60d1
mov dword [ebp - 0x24], pe_nt_image_headers32
cmp byte [ebp - 9], 2
jne 0x5a5f27
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x191]
push eax
push 0
push 0
push 0x5a61d0
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete byte [ebp - 0x25]
jmp 0x5a5f4a
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x191]
push eax
push 0
push 0
push 0x5a61d8
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete byte [ebp - 0x25]
cmp byte [ebp - 0x25], 0
je 0x5a60d1
xor eax, eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x26], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x5a5fb5
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x10]
call fcn.0041f378
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x20]
call fcn.00404f58
lea edx, [ebp - 0x91]
call fcn.004097d0
test eax, eax
jne 0x5a5fad
mov byte [ebp - 0x26], 1
jmp 0x5a5fb5
inc dword [ebp - 0x10]
dec dword [ebp - 0x2c]
jne 0x5a5f79
cmp byte [ebp - 0x26], 0
jne 0x5a609f
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x24], 0xb
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x29c]
push eax
push 0
push 0
push 0x5a61e4
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x5a6008
mov edx, 0x5a61ec
lea eax, [ebp - 0x29c]
mov ecx, 3
call fcn.0040aa94
test eax, eax
jne 0x5a6008
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x24], pe_nt_image_headers32
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x291]
push eax
push 0
push 0
push 0x5a61f0
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x5a6037
mov byte [ebp - 0x291], 0
lea eax, [ebp - 0x2a0]
lea edx, [ebp - 0x291]
mov ecx, pe_nt_image_headers32
call fcn.00404d08
mov eax, dword [ebp - 0x2a0]
push eax
mov al, byte [ebp - 0x1d]
push eax
lea eax, [ebp - 0x2a4]
lea edx, [ebp - 0x191]
mov ecx, pe_nt_image_headers32
call fcn.00404d08
mov eax, dword [ebp - 0x2a4]
push eax
lea eax, [ebp - 0x2a8]
lea edx, [ebp - 0x91]
mov ecx, 0x65
call fcn.00404d08
mov edx, dword [ebp - 0x2a8]
mov eax, dword [0x647e48]
pop ecx
call fcn.005a5ae0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x5a60d1
cmp dword [ebp - 8], 0
jne 0x5a60d1
cmp byte [ebp - 9], 2
je 0x5a60d1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x24]
call fcn.005a5c8c
pop ecx
test al, al
je 0x5a60d1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x10], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a60ef
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a611c
lea eax, [ebp - 0x2a8]
mov edx, 3
call fcn.00404aac
lea eax, [ebp - 0x14]
call fcn.00404a88
ret