Function at 0x342dd9cb
Capabilities:
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xb98
mov eax, dword [0x342226fc]
xor eax, esp
mov dword [esp + 0xb94], eax
push ebx
mov ebx, dword [esp + 0xba4]
push ebp
mov ebp, dword [esp + 0xba4]
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push 0x342ddde0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x5c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], 0
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x342ddda0
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x5c]
push edx
mov edx, dword [esp + 0x30]
push 0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x5a8]
push ecx
push edx
mov dword [esp + 0x44], 0x105
call sub.advapi32.dll_RegQueryInfoKeyW
test eax, eax
jne 0x342ddda0
xor esi, esi
cmp dword [esp + 0x40], eax
mov dword [esp + 0x24], eax
jbe 0x342ddda0
lea ebx, [ebx]
test esi, esi
jne 0x342ddda0
mov edx, dword [esp + 0x10]
push 0x105
lea ecx, [esp + 0x16c]
push ecx
push eax
push edx
call fcn.3426adbd
mov esi, eax
test esi, esi
jne 0x342ddd8b
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push 0x20019
push esi
lea ecx, [esp + 0x174]
push ecx
push edx
call sub.advapi32.dll_RegOpenKeyExW
mov esi, eax
test esi, esi
jne 0x342ddd8b
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x38]
push esi
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x5a8]
push eax
push ecx
mov dword [esp + 0x44], 0x105
call sub.advapi32.dll_RegQueryInfoKeyW
mov esi, eax
test esi, esi
jne 0x342ddd7c
cmp dword [esp + 0x30], eax
mov dword [esp + 0x28], eax
jbe 0x342ddd7c
test esi, esi
jne 0x342ddd7c
push 0x105
lea edx, [esp + 0x16c]
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.3426adbd
mov esi, eax
test esi, esi
jne 0x342ddd67
lea ecx, [esp + 0x20]
push ecx
push 0x20019
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x174]
push edx
push eax
call sub.advapi32.dll_RegOpenKeyExW
mov esi, eax
test esi, esi
jne 0x342ddd67
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x68]
push edx
mov edx, dword [esp + 0x40]
push esi
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x5a8]
push ecx
push edx
mov dword [esp + 0x44], 0x105
call sub.advapi32.dll_RegQueryInfoKeyW
mov esi, eax
test esi, esi
jne 0x342ddd58
cmp dword [esp + 0x4c], eax
jne 0x342ddd58
xor edi, edi
cmp dword [esp + 0x1c], edi
jbe 0x342ddd58
lea ebx, [ebx]
push 0x102
lea eax, [esp + 0x68]
push 0
push eax
mov dword [esp + 0x5c], 0x81
mov dword [esp + 0x60], 0x20a
call sub.msvcr80.dll_memset
push 0x20a
lea ecx, [esp + 0x384]
push 0
push ecx
call sub.msvcr80.dll_memset
add esp, 0x18
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x378]
push eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x2c]
push 0
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x78]
push eax
push edi
push ecx
call sub.advapi32.dll_RegEnumValueW
mov esi, eax
test esi, esi
jne 0x342ddd58
lea edx, [esp + 0x64]
push 0x342dddd4
push edx
call fcn.34201b6e
add esp, 8
test eax, eax
jne 0x342ddc95
lea eax, [esp + 0x374]
push eax
call fcn.342d932e
test eax, eax
jne 0x342ddca7
add edi, 1
cmp edi, dword [esp + 0x1c]
jae 0x342ddd58
jmp 0x342ddc03
cmp dword [ebx], 0x400
jae 0x342ddd58
push 0x440
call sub.MSO.dll_Ordinal_815
mov ecx, dword [ebx]
mov dword [ebp + ecx*4], eax
mov edx, dword [ebx]
cmp dword [ebp + edx*4], 0
je 0x342ddd58
push 0x208
lea eax, [esp + 0x790]
push eax
lea ecx, [esp + 0x170]
push ecx
call fcn.3434474f
test eax, eax
je 0x342dddce
push 0x208
lea edx, [esp + 0x99c]
push edx
lea eax, [esp + 0x37c]
push eax
call fcn.3434474f
test eax, eax
je 0x342dddce
mov ecx, dword [ebx]
mov edx, dword [ebp + ecx*4]
mov edi, dword [sym.imp.MSO.dll_Ordinal_6818]
push 0x209
push edx
lea eax, [esp + 0x794]
push eax
call edi
mov ecx, dword [ebx]
mov eax, dword [ebp + ecx*4]
add ecx, 1
push 0x209
add eax, 0x209
mov dword [ebx], ecx
push eax
lea ecx, [esp + 0x9a0]
push ecx
call edi
mov dword [esp + 0x48], 1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x342ddd67
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [esp + 0x28]
add eax, 1
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x28], eax
jb 0x342ddb48
mov eax, dword [esp + 0x18]
test eax, eax
je 0x342ddd8b
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
add eax, 1
cmp eax, dword [esp + 0x40]
mov dword [esp + 0x24], eax
jb 0x342dda97
mov eax, dword [esp + 0x10]
test eax, eax
je 0x342dddaf
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0xba4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.341f1b18
add esp, 0xb98
ret 8
xor eax, eax
jmp 0x342dddb3