Function at 0x10052f10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a0ac5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x100ef034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov dword [ebp - 0x1c], esi
call fcn.10055620
or edi, 0xffffffff
cmp byte [eax + 0x1c], 0
je 0x1005302f
call fcn.10055620
mov dword [ebp - 0x20], eax
call fcn.1003aaa0
test eax, eax
je 0x100531fa
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x10]
push 0x19
push str.Checking_registry_Value:
call fcn.1003f390
mov edx, dword [ebx]
test edx, edx
je 0x10052fb3
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10052f97
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.1003f390
mov esi, dword [ebp - 0x1c]
call fcn.1003aaa0
test eax, eax
je 0x100531fa
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x18]
push 0
push 0x100c62fc
call fcn.1003f390
push ecx
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x10]
push eax
sub esp, 8
call fcn.10055700
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005300e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005302f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebx]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [ebp + 8]
mov ebx, eax
cmp ebx, 0xea
jne 0x100530e8
mov edx, dword [ebp - 0x14]
test edx, edx
js 0x10053204
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or eax, ecx
jge 0x10053084
push edx
mov ecx, esi
call fcn.1003f8e0
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x10053096
push dword [eax - 0xc]
mov ecx, esi
call fcn.1003f7e0
lea eax, [ebp - 0x14]
push eax
push dword [esi]
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push 0
push dword [eax]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov eax, dword [esi]
test eax, eax
jne 0x100530bc
xor ecx, ecx
jmp 0x100530d2
push dword [eax - 8]
push eax
call fcn.1007c340
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x10053204
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x10053204
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
test ebx, ebx
je 0x10053103
mov eax, 1
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.10055620
cmp byte [eax + 0x1c], 0
je 0x100531e6
call fcn.10055620
mov ebx, eax
call fcn.1003aaa0
test eax, eax
je 0x100531fa
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xc
lea ecx, [ebp - 0x10]
push 0x23
push str.Registry_value_read_from_registry:
call fcn.1003f390
mov edx, dword [esi]
test edx, edx
je 0x1005316d
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10053154
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.1003f390
call fcn.1003aaa0
test eax, eax
je 0x100531fa
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x1c]
push 0
push 0x100c62fc
call fcn.1003f390
push ecx
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
sub esp, 8
call fcn.10055700
mov byte [ebp - 4], 0xc
mov eax, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100531c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x100531e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
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.100374f0
push 0x80070057
call fcn.100374f0
int3