Function at 0x1002a23
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
xor eax, eax
lea ecx, [ebp - 4]
push ecx
mov edi, 0x20019
push edi
push eax
push 0x1001350
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002afc
xor eax, eax
lea ecx, [ebp - 8]
push ecx
push eax
lea ecx, [ebp - 0x18]
push ecx
push eax
push 0x1001324
push dword [ebp - 4]
mov dword [ebp - 8], eax
call ebx
test eax, eax
jne 0x1002aef
cmp dword [ebp - 8], 2
jbe 0x1002aef
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1002aef
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x1001324
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x1002abb
mov ecx, dword [ebp - 0x10]
cmp word [ecx], ax
jne 0x1002aef
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1002ae2
test byte [ecx + 0x1c], 4
je 0x1002ae2
push eax
push 0x1001250
push 0x43
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01001915
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [ebp - 0x10], 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push edi
push 0
push 0x10012b8
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1002bbf
lea ecx, [ebp - 8]
push ecx
push eax
lea ecx, [ebp - 0x18]
push ecx
push eax
mov esi, 0x1001324
push esi
push dword [ebp - 4]
mov dword [ebp - 8], eax
call ebx
test eax, eax
jne 0x1002ba8
cmp dword [ebp - 8], 2
jbe 0x1002ba8
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x1002ba1
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push 0
push esi
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x1002b65
cmp word [edi], ax
jne 0x1002ba1
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1002b8f
test byte [ecx + 0x1c], 4
je 0x1002b8f
push eax
mov ebx, 0x1001250
push ebx
push 0x44
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01001915
jmp 0x1002b94
mov ebx, 0x1001250
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [ebp - 0x14], 0
jmp 0x1002bad
mov ebx, 0x1001250
jmp 0x1002bb0
mov ebx, 0x1001250
mov edi, dword [ebp - 0x14]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 4], 0
jmp 0x1002bc7
mov edi, dword [ebp - 0x14]
mov ebx, 0x1001250
mov esi, dword [ebp - 0x10]
test esi, esi
jne 0x1002c28
test edi, edi
jne 0x1002bff
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002d89
test byte [eax + 0x1c], 8
je 0x1002d89
push ebx
push 0x45
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010016d5
jmp 0x1002d89
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002c20
test byte [eax + 0x1c], 8
je 0x1002c20
push edi
push ebx
push 0x46
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100176e
mov dword [ebp - 0xc], edi
jmp 0x1002d89
test edi, edi
jne 0x1002c55
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002c4d
test byte [eax + 0x1c], 8
je 0x1002c4d
push esi
push ebx
push 0x47
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100176e
mov dword [ebp - 0xc], esi
jmp 0x1002d89
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002c77
test byte [eax + 0x1c], 8
je 0x1002c77
push esi
push edi
push ebx
push 0x48
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010017db
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call esi
push dword [ebp - 0x10]
mov edi, eax
call esi
lea edi, [edi + eax + 2]
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x1002ccb
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002d79
test byte [eax + 0x1c], 4
je 0x1002d79
push ebx
push 0x49
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010016d5
jmp 0x1002d79
push dword [ebp - 0x14]
push edi
push eax
call fcn.01001cf3
test eax, eax
jge 0x1002cfe
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002cf9
test byte [eax + 0x1c], 4
je 0x1002cf9
push ebx
push 0x4a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010016d5
push dword [ebp - 0xc]
jmp 0x1002d4c
push dword [ebp - 0xc]
call esi
mov esi, dword [ebp - 0xc]
lea eax, [esi + eax*2 - 2]
cmp word [eax], 0x3b
je 0x1002d1d
push 0x3b
pop ecx
mov word [eax + 2], cx
xor ecx, ecx
mov word [eax + 4], cx
push dword [ebp - 0x10]
push edi
push esi
call fcn.01001d2d
test eax, eax
jge 0x1002d58
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002d4b
test byte [eax + 0x1c], 4
je 0x1002d4b
push ebx
push 0x4b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010016d5
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [ebp - 0xc], 0
jmp 0x1002d79
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002d79
test byte [eax + 0x1c], 8
je 0x1002d79
push esi
push ebx
push 0x4c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100176e
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4