Function at 0x4e85f4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404c04
mov eax, dword [ebp - 0xc]
call fcn.00404c04
xor eax, eax
push ebp
push 0x4e880c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x88], 0
je 0x4e86e1
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x74]
call fcn.004047dc
mov byte [ebp - 0xd], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004e53dc
test al, al
je 0x4e86cf
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404c14
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4e86cf
cmp dword [ebp - 0x20], 3
jne 0x4e86cf
cmp dword [ebp - 0x1c], 8
jne 0x4e86cf
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404c14
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete byte [ebp - 0xd]
xor ecx, ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004e53dc
jmp 0x4e87e1
mov byte [ebp - 0xd], 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x30]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4e87d3
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x10], 6
jne 0x4e8723
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x18]
mov dword [eax], ecx
mov ecx, dword [edx + 0x1c]
mov dword [eax + 4], ecx
mov byte [ebp - 0xd], 1
jmp 0x4e87e1
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x10], 2
jne 0x4e8741
mov eax, dword [ebp - 0x14]
fild dword [eax + 0x14]
mov eax, dword [ebp + 8]
fstp qword [eax]
wait
mov byte [ebp - 0xd], 1
jmp 0x4e87e1
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x10], 3
jne 0x4e87c3
mov eax, dword [0x5357d4]
mov al, byte [eax]
mov byte [ebp - 0x31], al
mov eax, dword [0x5357d4]
mov byte [eax], 0x2e
xor eax, eax
push ebp
push 0x4e87bc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x14]
call fcn.0040494c
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x30]
call fcn.0040bca8
test al, al
je 0x4e8796
fld xword [ebp - 0x30]
mov eax, dword [ebp + 8]
fstp qword [eax]
wait
mov byte [ebp - 0xd], 1
jmp 0x4e87a4
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e87e1
mov eax, dword [0x5357d4]
mov dl, byte [ebp - 0x31]
mov byte [eax], dl
ret
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
jmp 0x4e87e1
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8813
lea eax, [ebp - 0x38]
call fcn.00404744
lea eax, [ebp - 0x18]
call fcn.00404744
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404768
ret