Function at 0x10031a9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x100b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x824], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x814], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x834], eax
mov eax, dword [ebp + 0x20]
push ebx
xor ebx, ebx
mov dword [ebp - 0x838], eax
mov eax, dword [ebp + 0x24]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x830], eax
mov dword [ebp - 0x82c], ebx
mov dword [ebp - 0x810], ebx
mov dword [ebp - 0x820], ebx
mov dword [ebp - 0x828], ebx
mov dword [ebp - 0x80c], ebx
mov dword [ebp - 0x81c], ebx
mov dword [ebp - 0x818], ebx
mov ecx, 0x802
lea eax, [ebp - 0x808]
mov byte [eax], bl
inc eax
dec ecx
jne 0x100322b
push ebx
push 1
push 0x100138c
push esi
call fcn.01005bf3
test eax, eax
je 0x1003255
push ebx
push 1
push 0x1001380
push esi
call fcn.01005bf3
test eax, eax
jne 0x100325f
mov dword [ebp - 0x82c], 1
push ebx
push 1
push 0x100135c
push esi
call fcn.01005bf3
test eax, eax
je 0x1003283
push ebx
push 1
push 0x1001350
push esi
call fcn.01005bf3
test eax, eax
jne 0x100328d
mov dword [ebp - 0x82c], 2
mov esi, dword [ebp - 0x834]
push ebx
push esi
call fcn.01005bd2
test eax, eax
je 0x100332d
push ebx
push esi
call fcn.01005bd2
lea eax, [eax + eax + 0x14]
push eax
call fcn.01005e42
mov dword [ebp - 0x81c], eax
cmp eax, ebx
jne 0x10032d5
push 0x20001
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.0100773a
jmp 0x1003a90
push esi
call fcn.010093f9
push dword [ebp - 0x81c]
test eax, eax
jne 0x1003319
call fcn.01005eeb
shr eax, 1
push eax
push 0x100133c
push dword [ebp - 0x81c]
call fcn.01006510
push dword [ebp - 0x81c]
call fcn.01005eeb
shr eax, 1
push eax
push esi
push dword [ebp - 0x81c]
call fcn.01006553
jmp 0x100332d
call fcn.01005eeb
shr eax, 1
push eax
push esi
push dword [ebp - 0x81c]
call fcn.01006510
push ebx
push dword [ebp - 0x814]
call fcn.01005bd2
test eax, eax
jne 0x1003343
mov dword [ebp - 0x814], ebx
mov eax, dword [ebp - 0x82c]
sub eax, ebx
je 0x1003a85
dec eax
je 0x10037e2
dec eax
jne 0x100378a
lea eax, [ebp - 0x80c]
push eax
push 0x80000001
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
cmp eax, ebx
je 0x1003393
push ebx
push eax
call fcn.01002c79
lea eax, [ebp - 0x81c]
push eax
call fcn.010061a3
jmp 0x1003a90
lea eax, [ebp - 0x81c]
push eax
call fcn.010061a3
lea eax, [ebp - 0x810]
push eax
push 1
push ebx
push dword [ebp - 0x824]
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x10037a3
lea eax, [ebp - 0x820]
push eax
push ebx
lea eax, [ebp - 0x828]
push eax
push ebx
push dword [ebp - 0x814]
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10035c6
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1003410
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x10001
add eax, 0x40
push eax
call fcn.0100773a
push ebx
push dword [ebp - 0x814]
call fcn.01005bd2
push ebx
push dword [ebp - 0x824]
mov esi, eax
call fcn.01005bd2
lea esi, [esi + eax + 0x64]
lea eax, [esi + esi]
push eax
call fcn.01005e42
mov dword [ebp - 0x818], eax
cmp eax, ebx
jne 0x100346f
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov esi, 0x10001
push esi
add eax, 0x40
push eax
call fcn.0100773a
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1003a90
push esi
jmp 0x10032c2
cmp dword [ebp - 0x824], ebx
je 0x10034ad
push ebx
push dword [ebp - 0x824]
call fcn.01005bd2
test eax, eax
je 0x10034ad
push esi
push dword [ebp - 0x824]
push dword [ebp - 0x818]
call fcn.01006510
push esi
push dword [ebp - 0x814]
push dword [ebp - 0x818]
call fcn.01006553
jmp 0x10034ed
push ebx
push 1
push dword [ebp - 0x814]
push 0x1001350
call fcn.01005bf3
test eax, eax
je 0x10034ed
push ebx
push 1
push dword [ebp - 0x814]
push 0x100135c
call fcn.01005bf3
test eax, eax
je 0x10034ed
push esi
push dword [ebp - 0x814]
push dword [ebp - 0x818]
call fcn.01006510
lea eax, [ebp - 0x810]
push eax
push 1
push ebx
push dword [ebp - 0x818]
mov esi, 0x1001240
push dword [ebp - 0x80c]
mov dword [ebp - 0x814], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x100360e
lea eax, [ebp - 0x820]
push eax
push ebx
lea eax, [ebp - 0x828]
push eax
push ebx
push esi
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x10035ba
cmp eax, 0xa1
je 0x1003552
cmp eax, 2
je 0x1003552
push ebx
push eax
call fcn.01002c79
jmp 0x100356b
push 0x1f7
call fcn.01007722
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01006596
push dword [ebp - 0x80c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
test eax, eax
je 0x1003590
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x10001
add eax, 0x40
push eax
call fcn.0100773a
push dword [ebp - 0x810]
call esi
test eax, eax
je 0x10035af
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x10001
add eax, 0x40
push eax
call fcn.0100773a
lea eax, [ebp - 0x818]
jmp 0x1003388
lea eax, [ebp - 0x818]
push eax
call fcn.010061a3
mov eax, dword [ebp - 0x820]
cmp eax, 0xfe
jbe 0x100364b
add eax, eax
push eax
push edi
call fcn.0100621e
test eax, eax
jne 0x100364b
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x20001
add eax, 0x40
push eax
call fcn.0100773a
push dword [ebp - 0x80c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x810]
call esi
jmp 0x1003a90
cmp eax, 0xa1
je 0x1003621
cmp eax, 2
je 0x1003621
push 0x1f6
jmp 0x1003626
push 0x1f7
call fcn.01007722
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01006596
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1003598
lea eax, [ebp - 0x820]
push eax
push dword [edi]
lea eax, [ebp - 0x828]
push eax
push ebx
push dword [ebp - 0x814]
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x10036df
cmp eax, 0xa1
je 0x1003687
cmp eax, 2
je 0x1003687
push ebx
push eax
call fcn.01002c79
jmp 0x10036a0
push 0x1f7
call fcn.01007722
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01006596
push dword [ebp - 0x80c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
test eax, eax
je 0x10036c5
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x10001
add eax, 0x40
push eax
call fcn.0100773a
push dword [ebp - 0x810]
call esi
test eax, eax
je 0x1003a90
push 0x10001
jmp 0x10032c2
push ebx
push dword [edi]
call fcn.01005bd2
mov esi, eax
cmp esi, 0x400
jbe 0x1003731
push 0x401
push dword [edi]
lea eax, [ebp - 0x808]
push eax
call fcn.01006510
mov ecx, dword [ebp - 0x820]
mov eax, dword [edi]
cmp ecx, ebx
je 0x1003716
mov byte [eax], bl
inc eax
dec ecx
jne 0x1003710
push esi
lea eax, [ebp - 0x808]
push eax
push dword [edi]
call fcn.01006510
mov eax, dword [ebp - 0x830]
mov dword [eax], 1
cmp dword [ebp - 0x828], 4
jne 0x1003755
mov eax, dword [edi]
jmp 0x1003a5e
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.010059a3
jmp 0x10032bd
push dword [ebp - 0x80c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
test eax, eax
je 0x100377a
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x10001
add eax, 0x40
push eax
call fcn.0100773a
push dword [ebp - 0x810]
call esi
test eax, eax
jne 0x10036d5
mov eax, dword [ebp - 0x820]
mov ecx, dword [ebp - 0x838]
mov dword [ecx], eax
mov eax, dword [ebp - 0x828]
jmp 0x1003a93
cmp eax, 0xa1
je 0x10037b8
cmp eax, 2
je 0x10037b8
push ebx
push eax
call fcn.01002c79
jmp 0x10037d1
push 0x1f7
call fcn.01007722
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.01006596
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10036cd
lea eax, [ebp - 0x80c]
push eax
push 0x80000002
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
cmp eax, ebx
jne 0x100337b
lea eax, [ebp - 0x81c]
push eax
call fcn.010061a3
lea eax, [ebp - 0x810]
push eax
push 1
push ebx
push dword [ebp - 0x824]
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x10037a3
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x820], eax
lea eax, [ebp - 0x820]
push eax
push ebx
lea eax, [ebp - 0x828]
push eax
push ebx
push dword [ebp - 0x814]
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10039ac
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1003888
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x10001
add eax, 0x40
push eax
call fcn.0100773a
push ebx
push dword [ebp - 0x814]
call fcn.01005bd2
push ebx
push dword [ebp - 0x824]
mov esi, eax
call fcn.01005bd2
lea esi, [esi + eax + 0x64]
lea eax, [esi + esi]
push eax
call fcn.01005e42
mov dword [ebp - 0x818], eax
cmp eax, ebx
je 0x1003441
cmp dword [ebp - 0x824], ebx
je 0x100390c
push ebx
push dword [ebp - 0x824]
call fcn.01005bd2
test eax, eax
je 0x100390c
push esi
push dword [ebp - 0x824]
push dword [ebp - 0x818]
call fcn.01006510
push esi
push 0x100134c
push dword [ebp - 0x818]
call fcn.01006553
push esi
push dword [ebp - 0x814]
push dword [ebp - 0x818]
call fcn.01006553
jmp 0x100394c
push ebx
push 1
push dword [ebp - 0x814]
push 0x1001380
call fcn.01005bf3
test eax, eax
je 0x100394c
push ebx
push 1
push dword [ebp - 0x814]
push 0x100138c
call fcn.01005bf3
test eax, eax
je 0x100394c
push esi
push dword [ebp - 0x814]
push dword [ebp - 0x818]
call fcn.01006510
lea eax, [ebp - 0x810]
push eax
push 1
push ebx
push dword [ebp - 0x818]
mov esi, 0x1001240
push dword [ebp - 0x80c]
mov dword [ebp - 0x814], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x100360e
lea eax, [ebp - 0x820]
push eax
push ebx
lea eax, [ebp - 0x828]
push eax
push ebx
push esi
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x100353d
lea eax, [ebp - 0x818]
push eax
call fcn.010061a3
mov eax, dword [ebp - 0x820]
cmp eax, 0xfe
jbe 0x10039ca
add eax, eax
push eax
push edi
call fcn.0100621e
test eax, eax
je 0x10035e0
lea eax, [ebp - 0x820]
push eax
push dword [edi]
lea eax, [ebp - 0x828]
push eax
push ebx
push dword [ebp - 0x814]
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x1003672
push ebx
push dword [edi]
call fcn.01005bd2
mov esi, eax
cmp esi, 0x400
jbe 0x1003a47
push 0x401
push dword [edi]
lea eax, [ebp - 0x808]
push eax
call fcn.01006510
mov ecx, dword [ebp - 0x820]
mov eax, dword [edi]
cmp ecx, ebx
je 0x1003a2c
mov byte [eax], bl
inc eax
dec ecx
jne 0x1003a26
push esi
lea eax, [ebp - 0x808]
push eax
push dword [edi]
call fcn.01006510
mov eax, dword [ebp - 0x830]
mov dword [eax], 1
cmp dword [ebp - 0x828], 4
jne 0x1003755
mov eax, dword [edi]
cmp eax, ebx
je 0x1003755
push dword [eax]
push 0x1001344
push eax
call fcn.01005eeb
shr eax, 1
push eax
push dword [edi]
call fcn.0100284d
add esp, 0x10
cmp eax, ebx
jl 0x1003741
jmp 0x1003755
push ebx
push 0x13b0
call fcn.01002c79
push 0x63
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01005311
leave
ret 0x20