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

Disassembly:
sub esp, 0xb98
mov eax, dword [0x34234fcc]
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 0x34315e78
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 0x34315e37
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 0x34315e37
xor esi, esi
mov dword [esp + 0x24], eax
cmp dword [esp + 0x40], eax
jbe 0x34315e37
lea ebx, [ebx]
test esi, esi
jne 0x34315e37
mov edx, dword [esp + 0x10]
push 0x105
lea ecx, [esp + 0x16c]
push ecx
push eax
push edx
call fcn.34398d6b
mov esi, eax
test esi, esi
jne 0x34315e24
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 0x34315e24
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 0x34315e15
mov dword [esp + 0x28], eax
cmp dword [esp + 0x30], eax
jbe 0x34315e15
test esi, esi
jne 0x34315e15
push 0x105
lea edx, [esp + 0x16c]
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.34398d6b
mov esi, eax
test esi, esi
jne 0x34315e02
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 0x34315e02
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 0x34315df3
cmp dword [esp + 0x4c], eax
jne 0x34315df3
xor edi, edi
cmp dword [esp + 0x1c], edi
jbe 0x34315df3
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.MSVCR90.dll_memset
push 0x20a
lea ecx, [esp + 0x384]
push 0
push ecx
call sub.MSVCR90.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 0x34315df3
lea edx, [esp + 0x64]
push 0x34315e6c
push edx
call fcn.3420508c
add esp, 8
test eax, eax
jne 0x34315d2d
lea eax, [esp + 0x374]
push eax
call fcn.3431155e
test eax, eax
jne 0x34315d3d
inc edi
cmp edi, dword [esp + 0x1c]
jae 0x34315df3
jmp 0x34315c9b
cmp dword [ebx], 0x400
jae 0x34315df3
push 0x440
call sub.MSO.dll_Ordinal_1880
mov ecx, dword [ebx]
mov dword [ebp + ecx*4], eax
mov edx, dword [ebx]
cmp dword [ebp + edx*4], 0
je 0x34315df3
push 0x208
lea eax, [esp + 0x790]
push eax
lea ecx, [esp + 0x170]
push ecx
call fcn.34397531
test eax, eax
je 0x34315e65
push 0x208
lea edx, [esp + 0x99c]
push edx
lea eax, [esp + 0x37c]
push eax
call fcn.34397531
test eax, eax
je 0x34315e65
mov edx, dword [ebx]
mov eax, dword [ebp + edx*4]
mov edi, dword [sym.imp.MSVCR90.dll_strncpy_s]
push 0xffffffffffffffff
lea ecx, [esp + 0x790]
push ecx
push 0x209
push eax
call edi
mov ecx, dword [ebx]
mov eax, dword [ebp + ecx*4]
inc ecx
mov dword [ebx], ecx
push 0xffffffffffffffff
lea ecx, [esp + 0x9ac]
push ecx
add eax, 0x209
push 0x209
push eax
call edi
add esp, 0x20
mov dword [esp + 0x48], 1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x34315e02
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x30]
jb 0x34315be0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x34315e24
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x40]
jb 0x34315b2f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x34315e46
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.341f1dd1
add esp, 0xb98
ret 8
xor eax, eax
jmp 0x34315e4a