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

Disassembly:
sub esp, 0xb98
mov eax, dword [0x347765c8]
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 0x34773da8
push 0x80000002
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 0x347ab518
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 0x347ab518
xor esi, esi
cmp dword [esp + 0x40], eax
mov dword [esp + 0x24], eax
jbe 0x347ab518
lea ebx, [ebx]
test esi, esi
jne 0x347ab518
mov edx, dword [esp + 0x10]
push 0x105
lea ecx, [esp + 0x16c]
push ecx
push eax
push edx
call fcn.347e7742
mov esi, eax
test esi, esi
jne 0x347ab503
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 0x347ab503
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 0x347ab4f4
cmp dword [esp + 0x30], eax
mov dword [esp + 0x28], eax
jbe 0x347ab4f4
test esi, esi
jne 0x347ab4f4
push 0x105
lea edx, [esp + 0x16c]
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.347e7742
mov esi, eax
test esi, esi
jne 0x347ab4df
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 0x347ab4df
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 0x347ab4d0
cmp dword [esp + 0x4c], eax
jne 0x347ab4d0
xor edi, edi
cmp dword [esp + 0x1c], edi
jbe 0x347ab4d0
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 0x347ab4d0
lea edx, [esp + 0x64]
push 0x34773d9c
push edx
call fcn.34776ce7
add esp, 8
test eax, eax
jne 0x347ab40d
lea eax, [esp + 0x374]
push eax
call fcn.347774ea
test eax, eax
jne 0x347ab41f
add edi, 1
cmp edi, dword [esp + 0x1c]
jb 0x347ab37b
jmp 0x347ab4d0
cmp dword [ebx], 0x400
jae 0x347ab4d0
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 0x347ab4d0
push 0x208
lea eax, [esp + 0x790]
push eax
lea ecx, [esp + 0x170]
push ecx
call fcn.347772fe
test eax, eax
je 0x347ab546
push 0x208
lea edx, [esp + 0x99c]
push edx
lea eax, [esp + 0x37c]
push eax
call fcn.347772fe
test eax, eax
je 0x347ab546
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 0x347ab4df
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 0x347ab2c0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x347ab503
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 0x347ab20f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x347ab527
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.347ea89f
add esp, 0xb98
ret 8
xor eax, eax
jmp 0x347ab52b