Function at 0x100477a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10065fd0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100862c4]
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
call dword [0x10086284]
mov ebx, eax
xor esi, esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov edi, dword [ebp + 8]
cmp edi, esi
mov byte [ebp - 4], 1
je 0x10047814
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x10047814
lea esi, [eax + eax]
mov eax, esi
call fcn.1004c100
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.10009d6d
mov esi, eax
mov eax, dword [0x1009a864]
mov edx, dword [eax + 0xc]
mov ecx, 0x1009a864
call edx
add eax, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [0x1009a864]
mov edx, dword [eax + 0xc]
mov ecx, 0x1009a864
mov byte [ebp - 4], 2
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x30]
push edx
push esi
mov byte [ebp - 4], 3
call fcn.100475b0
mov edi, eax
xor ebx, ebx
add esp, 0x10
cmp edi, ebx
jl 0x10047984
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
push eax
push 0x20019
push ebx
push ecx
push edx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x100478aa
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
push eax
push ebx
lea ecx, [ebp - 0x2c]
push ecx
push ebx
push edx
mov dword [ebp - 0x1c], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
mov dword [ebp - 0x28], esi
call ebx
test eax, eax
je 0x100478c4
jg 0x100478b3
mov edi, eax
jmp 0x10047984
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x10047984
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
ja 0x1004797f
jb 0x100478da
cmp eax, 0xffffffff
ja 0x1004797f
push eax
call fcn.1004b5c9
add esp, 4
test eax, eax
mov dword [ebp - 0x14], eax
je 0x1004797f
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x2c]
push edx
push 0
push eax
push esi
call ebx
test eax, eax
je 0x1004790a
jg 0x100478b3
mov edi, eax
jmp 0x10047984
mov eax, dword [ebp - 0x2c]
cmp eax, 1
je 0x10047935
cmp eax, 2
je 0x10047935
cmp eax, 4
jne 0x1004792e
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov word [eax], 3
mov edx, dword [ecx]
mov dword [eax + 8], edx
jmp 0x10047984
mov edi, 0x80070032
jmp 0x10047984
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x14]
push ebx
mov word [eax], 8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 1
cmp esi, 0x3fffffff
jle 0x10047958
xor eax, eax
jmp 0x1004796e
lea eax, [esi + esi]
call fcn.1004c100
mov ecx, dword [ebp - 0x34]
mov eax, esp
push ecx
push esi
push ebx
push eax
call fcn.10001f7e
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
mov edx, dword [ebp + 0xc]
mov dword [edx + 8], eax
jne 0x10047984
mov edi, 0x8007000e
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100479a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100479ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1004b68c
mov eax, dword [ebp - 0x28]
add esp, 4
test eax, eax
je 0x100479e4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
lea esp, [ebp - 0x44]
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.1004ada8
mov esp, ebp
pop ebp
ret