Function at 0x4bc160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0982
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x61ce74]
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 esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x24c], ebx
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x248], eax
jne 0x4bc1c8
push eax
mov ecx, ebx
call fcn.00439650
jmp 0x4bc4a1
cmp dword [esi + 0x14], 8
jb 0x4bc1d0
mov esi, dword [esi]
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x4bc4bf
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x240], eax
push esi
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], 0
call fcn.004bbd80
test al, al
jne 0x4bc22d
test esi, esi
jne 0x4bc20c
xor ecx, ecx
jmp 0x4bc220
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bc211
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x240]
call fcn.004263f0
cmp dword [edi + 0x14], 8
mov dword [ebp - 4], 1
jb 0x4bc23c
mov edi, dword [edi]
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x4bc4c9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x238], eax
push edi
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 2
call fcn.004bbd80
test al, al
jne 0x4bc29c
test edi, edi
jne 0x4bc275
xor ecx, ecx
jmp 0x4bc28f
mov ecx, edi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bc280
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x238]
call fcn.004263f0
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 0
mov esi, dword [ebp - 0x240]
lea eax, [ebp - 0x244]
push eax
push 0x20019
push 0
push esi
push dword [ebp - 0x23c]
mov byte [ebp - 4], 4
mov dword [ebp - 0x244], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4bc454
mov ebx, dword [ebp - 0x244]
push 0x20a
push eax
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x25c], ebx
call fcn.00540d70
mov edi, dword [ebp - 0x238]
lea eax, [ebp - 0x23c]
add esp, 0xc
mov dword [ebp - 0x23c], 0x208
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x24c]
push eax
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x4bc391
mov eax, dword [ebp - 0x24c]
cmp eax, 1
je 0x4bc364
cmp eax, 2
je 0x4bc364
mov ebx, 0xd
jmp 0x4bc391
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x4bc386
test al, 1
jne 0x4bc37f
shr eax, 1
cmp word [ebp + eax*2 - 0x21e], 0
je 0x4bc38f
mov ebx, 0xd
jmp 0x4bc391
xor eax, eax
mov word [ebp - 0x21c], ax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x224], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bc3b7
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.00439df0
test ebx, ebx
mov byte [ebp - 4], 5
mov ebx, dword [ebp - 0x250]
lea eax, [ebp - 0x234]
cmovne eax, dword [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.00439650
mov edx, dword [ebp - 0x220]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x4bc43e
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4bc434
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bc4d3
push edx
push ecx
call fcn.0053d0af
add esp, 8
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x4bc44f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [edi - 0x10]
jmp 0x4bc46a
push dword [ebp - 0x248]
mov ecx, ebx
call fcn.00439650
mov edx, dword [ebp - 0x238]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 1
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4bc485
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x4bc4a1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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.0053d079
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00425f50
push 0x80004005
call fcn.00425f50
call fcn.0054b0c3
int3