Function at 0x4992f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e178
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x61ce74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
xor esi, esi
mov dword [ebp - 0x10], esi
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x499507
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
mov eax, dword [ebx]
mov dword [ebp - 4], esi
test eax, eax
je 0x4994c8
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push esi
lea ecx, [ebp - 0x18]
push ecx
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x18], 7
jne 0x4994c8
mov edx, dword [ebp - 0x10]
shr edx, 1
add edx, 1
js 0x4994fd
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, edx
or eax, ecx
jge 0x499393
push edx
lea ecx, [ebp - 0x14]
call fcn.00426250
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push 0
push ebx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4994c8
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shr eax, 1
mov esi, edi
mov dword [ebp - 0x1c], esi
mov word [edi + eax*2], cx
cmp word [edi], cx
je 0x4994a7
jmp 0x4993d0
mov ebx, esi
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4993d5
sub ebx, ecx
sar ebx, 1
call fcn.00421b80
test eax, eax
je 0x499507
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
test esi, 0xffff0000
jne 0x499418
movzx eax, si
lea ecx, [ebp + 8]
push eax
call fcn.00426130
jmp 0x499439
mov ecx, esi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x499420
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp + 8]
call fcn.004263f0
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 2
mov eax, dword [ecx + 4]
mov dword [ebp - 0x20], eax
cmp eax, dword [ecx + 8]
je 0x49946b
lea eax, [esi - 0x10]
push eax
call fcn.00425f70
mov ecx, dword [ebp - 0x20]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
add dword [eax + 4], 4
jmp 0x499475
lea edx, [ebp + 8]
push edx
push eax
call fcn.004257d0
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x499491
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1c]
lea esi, [esi + ebx*2]
add esi, 2
mov dword [ebp - 0x1c], esi
cmp word [esi], 0
jne 0x4993d0
push dword [edi - 8]
push edi
call fcn.0054b2c2
add esp, 8
test eax, eax
js 0x4994fd
cmp eax, dword [edi - 8]
jg 0x4994fd
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
lea esi, [ecx + 1]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4994e7
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
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 8
push 0x80070057
call fcn.00425f50
push 0x80004005
call fcn.00425f50
int3