Function at 0x4bc470
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d9a9d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x63d284]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x2c]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ecx
lea eax, [ebp + 0x14]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], SysReAllocString
cmp edi, eax
je 0x4bc50f
cmp dword [ebp + 0x28], 8
mov ecx, dword [edi + 0x14]
cmovae eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
cmp eax, ecx
ja 0x4bc670
mov dword [ebp - 0x28], edi
mov edx, edi
cmp ecx, 8
jb 0x4bc4f0
mov edx, dword [edi]
mov dword [ebp - 0x28], edx
lea esi, [eax + eax]
mov dword [edi + 0x10], eax
push esi
push dword [ebp - 0x10]
push edx
call fcn.00572f50
mov eax, dword [ebp - 0x28]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 8
jb 0x4bc529
mov eax, dword [eax]
mov esi, dword [ebp + 0x30]
lea edx, [ebp - 0x10]
push edx
push esi
push 0
push eax
push ecx
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4bc8df
mov eax, dword [ebp - 0x10]
and esi, 0x300
cmp dword [ebx + 0x14], 8
mov ecx, ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], esi
jb 0x4bc566
mov ecx, dword [ebx]
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push edx
push 0
lea edx, [ebp - 0x1c]
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4bc8df
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x4bc59a
cmp eax, 2
jne 0x4bc8df
mov esi, dword [ebp - 0x10]
shr esi, 1
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
push ecx
lea eax, [esi + 1]
mov dword [ebp - 0x1c], 0
push eax
lea ecx, [ebp - 0x38]
call fcn.004bfe50
cmp dword [ebx + 0x14], 8
jb 0x4bc5da
mov ebx, dword [ebx]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x38]
lea eax, [esi + esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
push 0
push dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4bc631
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x4bc60c
cmp eax, 2
jne 0x4bc631
test ebx, ebx
je 0x4bc775
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4bc770
test al, 1
jne 0x4bc631
shr eax, 1
cmp word [ebx + eax*2 - 2], 0
je 0x4bc775
xor esi, esi
test ebx, ebx
je 0x4bc8e1
mov ecx, dword [ebp - 0x30]
mov eax, ebx
sub ecx, ebx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x4bc661
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bc980
push ecx
push ebx
call fcn.0056c61e
add esp, 8
jmp 0x4bc8e1
cmp eax, 0x7ffffffe
ja 0x4bc939
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4bc694
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4bc6cc
mov eax, dword [ebp - 0x18]
mov edx, ecx
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x4bc6ad
mov esi, SysReAllocString
mov eax, 0xfffffffe
jmp 0x4bc6cc
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x4bc95a
add eax, eax
cmp eax, 0x1000
jb 0x4bc6f3
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4bc95a
push ecx
call fcn.00591cad
add esp, 4
test eax, eax
je 0x4bc93e
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x4bc70e
test eax, eax
je 0x4bc70c
push eax
call fcn.00591cad
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4bc94c
jmp 0x4bc70e
xor ebx, ebx
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], eax
lea esi, [eax + eax]
push esi
push dword [ebp - 0x10]
push ebx
call fcn.005729d0
mov ecx, dword [ebp - 0x2c]
xor eax, eax
add esp, 0xc
mov word [esi + ebx], ax
cmp ecx, 8
jb 0x4bc766
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4bc75c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bc980
mov eax, edx
push ecx
push eax
call fcn.0056c61e
add esp, 8
mov dword [edi], ebx
mov ebx, dword [ebp - 0x14]
jmp 0x4bc50c
xor eax, eax
mov word [ebx], ax
mov esi, ebx
lea ecx, [esi + 2]
nop word [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4bc780
mov eax, dword [edi + 0x14]
sub esi, ecx
sar esi, 1
mov dword [ebp - 0x1c], eax
cmp esi, eax
ja 0x4bc7c9
mov dword [ebp - 0x10], edi
mov ecx, edi
cmp eax, 8
jb 0x4bc7a8
mov ecx, dword [edi]
mov dword [ebp - 0x10], ecx
mov dword [edi + 0x10], esi
add esi, esi
push esi
push ebx
push ecx
call fcn.00572f50
mov eax, dword [ebp - 0x10]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi], cx
lea esi, [ecx + 1]
jmp 0x4bc633
cmp esi, 0x7ffffffe
ja 0x4bc95f
mov ecx, esi
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x4bc7f1
mov eax, SysReAllocString
mov dword [ebp - 0x18], eax
mov eax, 0xfffffffe
jmp 0x4bc82d
mov edx, eax
shr edx, 1
sub dword [ebp - 0x18], edx
cmp eax, dword [ebp - 0x18]
jbe 0x4bc80c
mov eax, SysReAllocString
mov dword [ebp - 0x18], eax
mov eax, 0xfffffffe
jmp 0x4bc82d
add eax, edx
cmp ecx, eax
cmovb ecx, eax
mov dword [ebp - 0x18], ecx
lea eax, [ecx + 1]
cmp eax, 0x7fffffff
ja 0x4bc95a
add eax, eax
cmp eax, 0x1000
jb 0x4bc859
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4bc95a
push ecx
call fcn.00591cad
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4bc964
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov ecx, dword [ebp - 0x18]
jmp 0x4bc878
test eax, eax
je 0x4bc876
push eax
call fcn.00591cad
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4bc972
mov ecx, dword [ebp - 0x18]
jmp 0x4bc87b
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [edi + 0x10], esi
add esi, esi
push esi
push ebx
push eax
mov dword [edi + 0x14], ecx
call fcn.005729d0
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add esp, 0xc
mov word [eax + esi], cx
mov ecx, dword [ebp - 0x1c]
cmp ecx, 8
jb 0x4bc8d3
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4bc8c6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bc980
mov eax, edx
push ecx
push eax
call fcn.0056c61e
mov eax, dword [ebp - 0x14]
add esp, 8
mov dword [edi], eax
mov esi, 1
jmp 0x4bc633
xor esi, esi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4bc8ef
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x28]
cmp edx, 8
jb 0x4bc925
mov ecx, dword [ebp + 0x14]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4bc91b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bc980
push edx
push ecx
call fcn.0056c61e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0040791f
push 0x638780
lea eax, [ebp - 0x1d]
push eax
call fcn.0057359b
push 0x638780
lea eax, [ebp - 0x1e]
push eax
call fcn.0057359b
call fcn.00407b84
call fcn.0040791f
push 0x638780
lea eax, [ebp - 0x1e]
push eax
call fcn.0057359b
push 0x638780
lea eax, [ebp - 0x1d]
push eax
call fcn.0057359b
call fcn.0057da80
int3