Function at 0x42c380
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x46d438
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x20]
push ecx
xor ebx, ebx
push eax
mov dword [esp + 0x28], ebx
call fcn.004178f0
mov ecx, eax
call fcn.00416630
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebx
je 0x42c3df
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov edx, dword [0x4800d8]
push esi
mov dword [esp + 0x14], edx
push 0x105
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], ebx
call fcn.004042d0
test eax, eax
jne 0x42c404
xor esi, esi
jmp 0x42c416
mov esi, dword [esp + 0x14]
mov dword [esi - 8], 0x105
mov byte [esi + 0x105], 0
push edi
xor eax, eax
mov dword [esp + 0x20], 0x104
mov ecx, 0x41
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x20]
push ecx
push esi
lea edx, [esp + 0x34]
push edx
push ebx
push eax
mov eax, dword [esp + 0x30]
push eax
call edi
lea ecx, [esp + 0x18]
mov byte [esi + 0x104], 0
call fcn.00404410
mov esi, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call ebx
mov dword [esi - 8], eax
mov byte [eax + esi], 0
mov eax, dword [esi - 8]
test eax, eax
jle 0x42c71b
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx - 8]
test edx, edx
jle 0x42c4af
test eax, eax
jge 0x42c489
or eax, 0xffffffff
jmp 0x42c49e
push ecx
push esi
call fcn.00457e8d
add esp, 8
test eax, eax
jne 0x42c49c
or eax, 0xffffffff
jmp 0x42c49e
sub eax, esi
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
test eax, eax
je 0x42c71b
mov eax, dword [ebp + 0x28]
test eax, eax
jbe 0x42c6e9
mov eax, dword [0x4800d8]
mov dword [esp + 0x14], eax
mov edx, dword [ebp + 0x18]
mov ecx, dword [edx - 8]
test ecx, ecx
mov byte [esp + 0x3c], 1
jle 0x42c534
push 0x105
lea ecx, [esp + 0x18]
call fcn.00404360
mov esi, eax
xor eax, eax
mov dword [esp + 0x20], 0x104
mov ecx, 0x41
mov edi, esi
rep stosd dword es:[edi], eax
mov edx, dword [ebp + 0x18]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push esi
lea ecx, [esp + 0x34]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov byte [esi + 0x103], 0
call fcn.00404410
mov esi, dword [esp + 0x14]
push esi
call ebx
mov dword [esi - 8], eax
mov byte [eax + esi], 0
jmp 0x42c66c
mov dword [esp + 0x10], eax
push 0x30c
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 2
call fcn.00404360
lea ecx, [esp + 0x20]
push ecx
mov esi, eax
mov eax, dword [esp + 0x20]
push esi
lea edx, [esp + 0x34]
push edx
push 0
push str.UninstallString
push eax
mov dword [esp + 0x38], 0x30c
call edi
lea ecx, [esp + 0x10]
mov byte [esi + 0x30b], 0
call fcn.00404410
mov esi, dword [esp + 0x10]
push esi
call ebx
lea ecx, [esp + 0x10]
push ecx
mov dword [esi - 8], eax
lea ecx, [esp + 0x28]
mov byte [eax + esi], 0
call fcn.00405930
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 3
call fcn.00404410
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_CharLowerA]
push str..exe
lea ecx, [esp + 0x28]
call fcn.004042a0
test eax, eax
jle 0x42c60e
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
call fcn.0040a900
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 4
call fcn.00404cd0
lea ecx, [esp + 0x30]
mov byte [esp + 0x3c], 3
call fcn.004309a0
push str..exe
lea ecx, [esp + 0x14]
call fcn.00404260
push 0x22
lea ecx, [esp + 0x14]
call fcn.00404b50
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
call fcn.0040a8e0
call fcn.004178f0
mov edi, dword [eax]
push 0x104
push 0x104
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], eax
call fcn.00404360
mov ecx, dword [esp + 0x34]
push eax
push esi
call dword [edi + 0x18]
lea ecx, [esp + 0x14]
call fcn.00404410
mov esi, dword [esp + 0x14]
push esi
call ebx
mov dword [esi - 8], eax
lea ecx, [esp + 0x24]
mov byte [eax + esi], 0
call fcn.004309a0
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 1
call fcn.004309a0
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call fcn.0042c1d0
test eax, eax
je 0x42c6b7
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebp
call fcn.0042c020
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.004309a0
lea ecx, [esp + 0x18]
call fcn.004309a0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
call fcn.004309a0
lea ecx, [esp + 0x18]
call fcn.004309a0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebp
call fcn.0042c020
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.004309a0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov eax, dword [0x4800dc]
lea edx, [esi - 0xc]
cmp edx, eax
je 0x42c73e
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42c73e
push esi
call fcn.00457c3f
add esp, 4
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret