Function at 0x1022fa80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x39c
mov eax, dword [0x11ad127c]
xor eax, esp
mov dword [esp + 0x398], eax
push ebx
push esi
mov ebx, ecx
push edi
mov edi, edx
mov dword [esp + 0x10], ebx
call fcn.1022f920
test al, al
je 0x1022fe52
push 0x1046de20
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x1022fae1
push 0x1046dea0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1022fae1
call eax
mov dword [0x11d0d8fc], eax
cmp eax, 2
je 0x1022fe52
push 0x10
push 0x59e8
call fcn.10434a32
add esp, 8
test eax, eax
je 0x1022fb5a
push 0
push 0
push ebx
mov ecx, eax
call fcn.10203ac0
mov esi, eax
test esi, esi
je 0x1022fb5a
mov ecx, esi
call fcn.1021e060
mov ecx, esi
call fcn.1021efe0
mov bl, byte [esi + 0xb3]
mov ecx, esi
call fcn.10204a30
push 0x59e8
push esi
call fcn.1045088a
add esp, 8
test bl, 0x20
je 0x1022fb4d
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x398]
xor ecx, esp
call fcn.1045066c
mov esp, ebp
pop ebp
ret 4
test bl, 0x40
jne 0x1022fe52
mov ebx, dword [esp + 0x10]
push 0x105
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.10450898
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1022fb8a
mov byte [eax], 0
inc dword [0x11d0d904]
lea eax, [esp + 0x2a0]
mov edx, 0x1046c220
mov esi, eax
mov cl, 0x53
sub edx, esi
mov byte [eax], cl
lea eax, [eax + 1]
mov cl, byte [eax + edx]
test cl, cl
jne 0x1022fba2
mov byte [eax], cl
lea eax, [esp + 0x2a0]
push 0
push eax
lea ecx, [esp + 0x1c]
call fcn.101ffd90
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 4
test eax, eax
jne 0x1022fcb7
cmp dword [esp + 0x14], eax
jne 0x1022fcb7
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x1022fc08
lea eax, [esp + 0xc]
push eax
push 0x1046f8c0
call fcn.10200690
test al, al
jne 0x1022fd67
lea ecx, [esp + 0x14]
call fcn.102000a0
mov eax, dword [ebx]
cmp dword [eax + 0xf944], 2
jb 0x1022fd8c
cmp dword [esp + 0xc], 4
je 0x1022fc94
xor eax, eax
mov dword [esp + 0x3c], 0x254
mov dword [esp + 0x40], eax
mov ecx, ebx
mov dword [esp + 0x30], eax
and eax, 0xfffffffe
mov dword [esp + 0x34], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x5c], 0x1000099
mov dword [esp + 0x4c], 0x4e564441
mov dword [esp + 0x50], 0x10002
mov dword [esp + 0x58], 0x4e564458
mov dword [esp + 0x54], 0x254
call fcn.101d20e0
test eax, eax
jne 0x1022fc94
test byte [esp + 0x298], 1
jne 0x1022fc94
cmp dword [esp + 0x78], eax
jne 0x1022fd8e
mov eax, dword [ebx + 0xf7c]
mov dword [eax + 0xb40], edi
mov edi, 1
mov eax, dword [ebx + 0xf7c]
or byte [eax + 0xb38], 0x80
jmp 0x1022fd8e
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x4c]
push ecx
push 0
push 0x1046f8c0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub eax, 0
je 0x1022fd5f
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1022fbe9
cmp byte [0x11d213c0], 0
je 0x1022fd31
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
push 0x1046f8c0
call fcn.100f6950
test al, al
je 0x1022fc08
cmp dword [esp + 0x24], 0
jne 0x1022fc08
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x2c]
call fcn.100f76e0
test al, al
je 0x1022fc08
jmp 0x1022fd67
mov edx, 0x1046f8c0
call fcn.101ff260
test eax, eax
je 0x1022fc08
xor cl, cl
cmp word [eax + 2], 4
jne 0x1022fd55
mov eax, dword [eax + 6]
mov cl, 1
mov dword [esp + 0xc], eax
test cl, cl
je 0x1022fc08
jmp 0x1022fd67
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1022fc08
cmp eax, 4
je 0x1022fc08
lea ecx, [esp + 0x14]
call fcn.102000a0
mov edi, dword [esp + 0xc]
dec edi
jmp 0x1022fd8e
xor edi, edi
cmp dword [esp + 0x18], 0
je 0x1022fd9e
lea ecx, [esp + 0x14]
call fcn.102000a0
mov eax, dword [0x11d0d904]
dec eax
mov dword [0x11d0d904], eax
test eax, eax
jg 0x1022fe27
mov eax, dword [0x11d0d920]
mov dword [0x11d0d920], 0
test eax, eax
je 0x1022fdc9
push eax
call fcn.10450877
add esp, 4
mov eax, dword [0x11d0d918]
mov dword [0x11d0d918], 0
test eax, eax
je 0x1022fde5
push eax
call fcn.10450877
add esp, 4
mov eax, dword [0x11d0d91c]
mov dword [0x11d0d91c], 0
test eax, eax
je 0x1022fe01
push eax
call fcn.10450877
add esp, 4
mov eax, dword [0x11d0d914]
mov dword [0x11d0d914], 0
test eax, eax
je 0x1022fe1d
push eax
call fcn.10450877
add esp, 4
mov dword [0x11d0d904], 0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1022fe38
push eax
call fcn.10450877
add esp, 4
mov esi, dword [esp + 0x20]
test esi, esi
je 0x1022fe52
mov ecx, esi
call fcn.101ffa20
push 0x10
push esi
call fcn.1045088a
add esp, 8
mov ecx, dword [esp + 0x3a4]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1045066c
mov esp, ebp
pop ebp
ret 4