Function at 0x1026432
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x107342c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov ebx, dword [eax + 8]
push edi
xor eax, eax
inc eax
xor edi, edi
push ebx
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x230], ebx
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0x28], eax
call fcn.0102d3af
test eax, eax
je 0x10267dc
lea eax, [ebp - 0x224]
push eax
push 0x20019
push edi
push 0x1012740
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov word [ebp - 0x10], 0x30
push dword [ebx + 0x68]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
call ebx
test eax, eax
jne 0x1026673
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push 0x101272c
push dword [ebp - 0x224]
mov dword [ebp - 0x21c], 0xa
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x102650f
cmp dword [ebp - 0x220], 1
jne 0x1026500
lea eax, [ebp - 0x10]
push eax
call dword [0x1001524]
pop ecx
jmp 0x102650c
cmp dword [ebp - 0x220], 4
jne 0x102650f
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push 0x1012858
push dword [ebp - 0x224]
mov dword [ebp - 0x21c], 0xa
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1026558
cmp dword [ebp - 0x220], 1
jne 0x1026558
lea eax, [ebp - 0x10]
push eax
call dword [0x1001524]
pop ecx
mov dword [esi + 8], eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push 0x1012840
push dword [ebp - 0x224]
mov dword [ebp - 0x21c], 0xa
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10265a6
cmp dword [ebp - 0x220], 1
jne 0x10265a6
lea eax, [ebp - 0x10]
push eax
call dword [0x1001524]
neg eax
sbb eax, eax
inc eax
pop ecx
mov dword [esi + 0x28], eax
lea eax, [ebp - 0x21c]
push eax
push edi
lea eax, [ebp - 0x220]
push eax
push edi
push 0x1012824
push dword [ebp - 0x224]
mov dword [ebp - 0x21c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x1026664
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [0x7ffe02d8]
cmp ecx, dword [eax + 0x1d4]
sete al
movzx eax, al
cmp eax, edi
mov dword [ebp - 0x22c], eax
jne 0x1026605
mov dword [ebp - 0x21c], 0x1a
push dword [ebp - 0x21c]
push edi
call dword [fcn.01001418]
cmp eax, edi
mov dword [esi + 0xc], eax
je 0x1026667
cmp dword [ebp - 0x22c], edi
je 0x1026644
lea ecx, [ebp - 0x21c]
push ecx
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push 0x1012824
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x1026652
push 0x10127f8
push eax
call dword [0x100140c]
xor eax, eax
cmp eax, edi
je 0x1026667
push dword [esi + 0xc]
call dword [fcn.010014a0]
mov dword [esi + 0xc], edi
jmp 0x1026667
mov dword [esi + 8], edi
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x230]
push 0x20019
push edi
push 0x10126b8
push dword [eax + 0x68]
call ebx
test eax, eax
jne 0x10267d1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push 0x101272c
push dword [ebp - 0x228]
mov dword [ebp - 0x21c], 0xa
call ebx
test eax, eax
jne 0x10266fa
cmp dword [ebp - 0x220], 1
jne 0x10266e2
lea eax, [ebp - 0x10]
push eax
call dword [0x1001524]
pop ecx
jmp 0x10266ee
cmp dword [ebp - 0x220], 4
jne 0x10266f1
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push 0x1012858
push dword [ebp - 0x228]
mov dword [ebp - 0x21c], 0xa
call ebx
test eax, eax
jne 0x1026745
cmp dword [ebp - 0x220], 1
jne 0x1026745
lea eax, [ebp - 0x10]
push eax
call dword [0x1001524]
pop ecx
mov dword [esi + 8], eax
mov dword [ebp - 0x234], eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x21c]
push eax
push edi
lea eax, [ebp - 0x220]
push eax
push edi
push 0x1012824
push dword [ebp - 0x228]
mov dword [ebp - 0x21c], edi
call ebx
cmp eax, 2
je 0x10267c5
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x1026784
push eax
call dword [fcn.010014a0]
mov dword [esi + 0xc], edi
push dword [ebp - 0x21c]
push edi
call dword [fcn.01001418]
cmp eax, edi
mov dword [esi + 0xc], eax
je 0x10267c5
lea ecx, [ebp - 0x21c]
push ecx
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push 0x1012824
push dword [ebp - 0x228]
call ebx
test eax, eax
je 0x10267c5
push dword [esi + 0xc]
call dword [fcn.010014a0]
mov dword [esi + 0xc], edi
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x230]
call fcn.0102d428
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x10268db
cmp word [eax], di
je 0x10268db
push 0x1012814
push eax
call dword [0x10015e0]
test eax, eax
pop ecx
pop ecx
je 0x10268db
push dword [esi + 0xc]
mov ebx, dword [fcn.01001410]
call ebx
mov dword [ebp - 0x22c], eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [esi + 0xc]
call dword [0x10012c0]
dec eax
cmp eax, dword [ebp - 0x22c]
mov dword [ebp - 0x230], eax
je 0x1026892
push dword [esi + 0xc]
call dword [fcn.010014a0]
push 0x10731ec
call ebx
add eax, dword [ebp - 0x230]
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [fcn.01001418]
cmp eax, edi
mov dword [esi + 0xc], eax
je 0x10268ee
mov ebx, dword [fcn.010015c0]
lea ecx, [ebp - 0x218]
push ecx
push eax
call ebx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x230]
lea eax, [eax + ecx*2]
push 0x10731ec
push eax
call ebx
add esp, 0x10
jmp 0x10268cf
push 0x42
push 0x10731ec
call ebx
push dword [esi + 0xc]
mov dword [ebp - 0x22c], eax
call ebx
mov ecx, dword [ebp - 0x22c]
add ecx, eax
lea eax, [ecx + ecx + 2]
push eax
push dword [esi + 0xc]
call dword [fcn.010012e0]
cmp eax, edi
je 0x10268ee
push 0x10731ec
push eax
mov dword [esi + 0xc], eax
call dword [0x10012dc]
mov dword [ebp - 0x238], 1
jmp 0x10268ee
cmp dword [ebp - 0x234], edi
je 0x10268eb
cmp dword [ebp - 0x23c], edi
jne 0x10268ee
mov dword [esi + 8], edi
cmp dword [esi + 4], edi
je 0x1026901
push dword [esi]
call fcn.010321ca
test eax, eax
je 0x1026901
mov dword [esi + 4], edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x238]
pop edi
pop esi
pop ebx
call fcn.0103e4d8
leave
ret 4