Function at 0x1002f4f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
mov ebx, 0x20019
push ebx
push edi
push 0x1001338
push dword [ebp + 8]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
call esi
test eax, eax
jne 0x1002ffa
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push 0x100130c
push dword [ebp - 4]
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002fee
cmp dword [ebp - 8], 2
jbe 0x1002fee
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x1002fee
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push 0x100130c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002fe2
mov eax, dword [ebp - 0x14]
cmp word [eax], di
jne 0x1002fee
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x14], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], edi
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0x10012a0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x100307c
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push edi
mov ebx, 0x100130c
push ebx
push dword [ebp - 4]
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x1003070
cmp dword [ebp - 8], 2
jbe 0x1003070
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x1003070
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x1003064
mov eax, dword [ebp - 0xc]
cmp word [eax], di
jne 0x1003070
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0xc], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], edi
mov ebx, dword [ebp - 0x14]
cmp ebx, edi
jne 0x1003096
mov eax, dword [ebp - 0xc]
cmp eax, edi
je 0x100311d
mov dword [ebp - 0x10], eax
jmp 0x100311d
cmp dword [ebp - 0xc], edi
jne 0x10030a0
mov dword [ebp - 0x10], ebx
jmp 0x100311d
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call esi
push ebx
mov dword [ebp + 8], eax
call esi
mov ecx, dword [ebp + 8]
lea ebx, [ecx + eax + 2]
lea eax, [ebx + ebx]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x100310d
push dword [ebp - 0xc]
push ebx
push eax
call fcn.01002613
test eax, eax
push dword [ebp - 0x10]
jl 0x1003104
call esi
mov esi, dword [ebp - 0x10]
lea eax, [esi + eax*2 - 2]
cmp word [eax], 0x3b
je 0x10030f5
mov word [eax + 2], 0x3b
mov word [eax + 4], di
push dword [ebp - 0x14]
push ebx
push esi
call fcn.01002c1f
test eax, eax
jge 0x100310d
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x10], edi
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 4