Function at 0x103599f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x1079e94]
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0x14]
xor esi, esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x224], eax
mov dword [eax], esi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x228], ecx
mov ecx, dword [ebp + 0x1c]
push eax
push edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.0106d913
mov ebx, eax
cmp ebx, esi
je 0x1035a15
push ebx
push 0x2a60138
call fcn.01053610
jmp 0x1035bcb
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop ecx
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x214]
push eax
mov ebx, 0xf003f
push ebx
push esi
push dword [ebp - 0x210]
push dword [ebp - 0x218]
call edi
test eax, eax
je 0x1035add
push 0x5c
push dword [ebp - 0x210]
mov dword [ebp - 0x214], esi
call dword [sym.imp.msvcrt.dll_wcsrchr]
cmp eax, esi
pop ecx
pop ecx
je 0x1035add
mov word [eax], si
sub eax, dword [ebp - 0x210]
shr eax, 1
inc eax
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x214]
push eax
push ebx
push esi
push dword [ebp - 0x210]
push dword [ebp - 0x218]
call edi
mov ebx, eax
cmp ebx, 2
jne 0x1035ad1
cmp dword [ebp + 0x10], esi
je 0x1035ad5
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x210]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ebx, eax
cmp ebx, esi
je 0x1035add
push ebx
push 0x2c40138
push dword [ebp - 0x210]
call fcn.0105364b
jmp 0x1035bcb
cmp ebx, esi
je 0x1035add
push ebx
push 0x2c60138
jmp 0x1035ac1
cmp dword [ebp - 0x214], esi
je 0x1035b7d
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x21c]
lea eax, [eax + ecx*2]
cmp word [eax], si
mov dword [ebp - 0x220], eax
je 0x1035b7d
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x21c], esi
mov ebx, 0x104
push esi
jmp 0x1035b5d
push dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push eax
call fcn.010559b5
test eax, eax
je 0x1035b71
inc dword [ebp - 0x21c]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
push dword [ebp - 0x214]
mov dword [ebp - 0x218], ebx
call edi
test eax, eax
je 0x1035b29
jmp 0x1035b7d
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x220], eax
push dword [ebp - 0x22c]
push dword [ebp - 0x220]
call fcn.0106d913
mov ebx, eax
cmp ebx, esi
je 0x1035b9f
push ebx
push 0x2e60138
jmp 0x1035a0b
mov eax, dword [ebp - 0x214]
cmp eax, esi
je 0x1035bb7
mov ecx, dword [ebp - 0x224]
mov dword [ecx], eax
mov dword [ebp - 0x214], esi
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x228]
mov dword [ecx], eax
mov dword [ebp - 0x210], esi
cmp dword [ebp - 0x210], esi
je 0x1035bdf
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x214], esi
je 0x1035bf3
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.0106d6ca
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0104b509
leave
ret 0x18