Function at 0x5030c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573180
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
cmp dword [esi + 4], eax
jbe 0x5033a5
mov edi, edi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0
call fcn.0045adc0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x5033c3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
cmp ebx, dword [esi + 4]
jae 0x5033b9
mov eax, dword [esi]
lea ecx, [ebx*4]
mov dword [ebp - 0x28], ecx
push dword [eax + ecx]
lea eax, [ebp - 0x20]
push dword [0x5d6814]
push str._s_sInfo
push eax
call fcn.0045acb0
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x34]
add esp, 0x10
push 0x20019
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0045b220
test eax, eax
jne 0x503354
call fcn.0045adc0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x5033c3
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov byte [ebp - 4], 2
jge 0x5031d7
push 0x104
lea ecx, [ebp - 0x10]
call fcn.0045b530
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x208
push eax
push esi
lea eax, [ebp - 0x24]
push eax
push 0
push 0x581110
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x503238
mov eax, dword [ebp - 0x24]
cmp eax, 1
je 0x503211
cmp eax, 2
je 0x503211
mov ebx, 0xd
jmp 0x503238
test esi, esi
je 0x503236
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x503231
test al, 1
jne 0x50322a
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x503236
mov ebx, 0xd
jmp 0x503238
xor eax, eax
mov word [esi], ax
xor ebx, ebx
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.00526d13
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x5033b9
mov eax, dword [ebp - 0x10]
cmp ecx, dword [eax - 8]
jg 0x5033b9
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
mov word [eax + ecx*2], dx
test ebx, ebx
jne 0x50332d
call fcn.0045adc0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x5033c3
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 8]
dec eax
mov byte [ebp - 4], 3
cmp eax, 3
ja case.default.0x50329f
jmp dword [eax*4 + 0x5033d0]
push 2
push 0x581124
jmp 0x5032bf
push 2
push 0x5863d4
jmp 0x5032bf
push 2
push 0x58d000
lea ecx, [ebp - 0x14]
call fcn.0045b6e0
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x50330f
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jl 0x50330f
push esi
push eax
call fcn.00526d32
add esp, 8
test eax, eax
je 0x50330f
sub eax, dword [ebp - 0x10]
sar eax, 1
cmp eax, 0xffffffff
je 0x50330f
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ecx + 4]
jae 0x5033b9
mov eax, dword [ecx]
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0045a580
inc dword [ebp - 0x1c]
add esi, 0xfffffff0
mov byte [ebp - 4], 2
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50332d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50334e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x18]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x503372
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x50338e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x34], 0
inc ebx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x18], ebx
cmp ebx, dword [esi + 4]
jb 0x503100
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.0045a8f0
push 0x80004005
call fcn.0045a8f0
lea ecx, [ecx]
scasd eax, dword es:[edi]
xor dl, byte [eax]
scasd eax, dword es:[edi]
xor dl, byte [eax]
cmpsb byte [esi], byte es:[edi]
xor dl, byte [eax]
mov eax, 0x55005032
push ebp