Function at 0x41a170
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x47d421
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x4a67d0]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a67d0]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x150]
mov esi, dword [esp + 0x158]
mov ebp, dword [esp + 0x15c]
xor ebx, ebx
push 0x103
lea ecx, [esp + 0x3d]
push ebx
push ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 1
mov dword [esp + 0x34], 0x104
mov byte [esp + 0x44], bl
call fcn.00461680
add esp, 0xc
push esi
lea ecx, [esp + 0x18]
call fcn.00403a00
push 0xf
push str.InProcServer32
lea ecx, [esp + 0x1c]
mov dword [esp + 0x150], ebx
call fcn.004030e0
mov esi, dword [esp + 0x154]
mov ecx, str.HKEY_CLASSES_ROOT
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41a249
cmp dx, bx
je 0x41a242
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41a249
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x41a220
xor eax, eax
or edi, 0xffffffff
jmp 0x41a252
sbb eax, eax
mov edi, 0xffffffff
sbb eax, edi
cmp eax, ebx
jne 0x41a25d
mov eax, SysReAllocStringLen
jmp 0x41a2d7
mov ecx, str.HKEY_LOCAL_MACHINE
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41a28a
cmp dx, bx
je 0x41a286
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41a28a
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x41a264
xor eax, eax
jmp 0x41a28e
sbb eax, eax
sbb eax, edi
cmp eax, ebx
jne 0x41a299
mov eax, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x41a2d7
mov ecx, str.HKEY_CURRENT_USER
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41a2c6
cmp dx, bx
je 0x41a2c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41a2c6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x41a2a0
xor eax, eax
jmp 0x41a2ca
sbb eax, eax
sbb eax, edi
cmp eax, ebx
mov eax, SysReAllocStringLen
je 0x41a2d7
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push 1
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41a31d
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x148], edi
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x41a313
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x41a518
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
push ebx
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41a360
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x148], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
jmp 0x41a305
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x20]
call fcn.00403a00
mov byte [esp + 0x148], 1
call fcn.00432e21
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41a39b
push 0x80004005
call fcn.004022f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov byte [esp + 0x150], 2
call fcn.00414450
test eax, eax
jne 0x41a432
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x148], 1
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a3f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x148], bl
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a417
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x148], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
jmp 0x41a305
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x28]
call fcn.00403a00
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x18]
mov ecx, edi
mov eax, ebp
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41a476
cmp dx, bx
je 0x41a472
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41a476
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x41a450
xor eax, eax
jmp 0x41a47b
sbb eax, eax
sbb eax, 0xffffffff
xor edx, edx
cmp eax, ebx
setl dl
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
mov esi, edx
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a4a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x148], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a4c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x148], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a4eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x148], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a516
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004611fb
add esp, 0x138
ret 0x10