Function at 0x482b20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de195
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x514080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], edx
mov ebx, ecx
call fcn.004046f0
mov edi, eax
test edi, edi
je 0x482e31
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 1
call fcn.004046f0
mov edi, eax
test edi, edi
je 0x482e31
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x18]
call fcn.00482e40
add esp, 0xc
or edi, 0xffffffff
test al, al
je 0x482dc3
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x482dc3
mov dword [ebp - 0x14], 0x104
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 4
push dword [ebp - 0x14]
call fcn.004a18f7
mov ebx, eax
add esp, 4
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 5
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x2c]
push eax
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x482c81
nop word [eax + eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x482cd1
mov byte [ebp - 4], 4
push ebx
call fcn.004a18f2
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
call fcn.004a18f7
mov ebx, eax
add esp, 8
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 5
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x2c]
push eax
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x482c30
mov eax, dword [ebp - 0x2c]
cmp eax, 1
je 0x482d59
cmp eax, 2
je 0x482d59
cmp eax, 7
jne 0x482cf5
mov edx, dword [ebp - 0x14]
xor ecx, ecx
lea eax, [edx - 1]
test eax, eax
je 0x482cbc
cmp byte [ebx + ecx], 0
jne 0x482cb4
mov byte [ebx + ecx], 0xa
mov edx, dword [ebp - 0x14]
inc ecx
lea eax, [edx - 1]
cmp ecx, eax
jb 0x482ca7
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x482cc1
jmp 0x482d6b
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 4
push ebx
call fcn.004a18f2
add esp, 4
mov dword [ebp - 0x18], 0
xor bl, bl
jmp 0x482d98
xor esi, esi
cmp dword [ebp - 0x14], esi
jbe 0x482d12
nop dword [eax]
lea eax, [esi + ebx]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040d350
inc esi
cmp esi, dword [ebp - 0x14]
jb 0x482d00
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x30]
call fcn.0040de50
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x24]
push eax
call fcn.00409950
mov byte [ebp - 4], 5
mov eax, edi
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x482d79
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
or edi, 0xffffffff
jmp 0x482d79
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x482d60
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x24]
push ebx
call fcn.00403890
mov byte [ebp - 4], 4
push ebx
call fcn.004a18f2
add esp, 4
mov dword [ebp - 0x18], 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x482db3
push eax
call fcn.004ab3c1
add esp, 4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
jmp 0x482dc5
xor bl, bl
mov byte [ebp - 4], 1
mov eax, edi
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x482df2
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x482e1d
mov edi, dword [eax]
push eax
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402720
int3