Function at 0x1002ad9
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
mov ebx, eax
test ebx, ebx
push esi
push edi
je 0x1002b64
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 4
pop eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
mov edi, 0x2001f
push edi
push 0
push 0x1001318
push ebx
call esi
test eax, eax
jne 0x1002b83
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x1001308
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
jne 0x1002b83
cmp dword [ebp - 0x1c], 1
lea eax, [ebp - 0xc]
push eax
push edi
push 0
jne 0x1002b51
push 0x10012d4
jmp 0x1002b56
push 0x10012a0
push ebx
call esi
test eax, eax
je 0x1002b8a
xor bl, bl
jmp 0x1002f69
lea eax, [ebp - 0xc]
push eax
push 0x2001f
push 0
push 0x1001200
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1002b8a
xor al, al
jmp 0x1002f74
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x38]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push 0x100125c
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x1002c86
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x10], 9
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jne 0x1002c86
xor edx, edx
mov al, byte [ebp + edx - 0x28]
cmp al, 0x30
jl 0x1002bfe
cmp al, 0x39
jg 0x1002bfe
movsx eax, al
sub eax, 0x30
jmp 0x1002c21
cmp al, 0x61
jl 0x1002c0e
cmp al, 0x66
jg 0x1002c0e
movsx eax, al
sub eax, 0x57
jmp 0x1002c21
cmp al, 0x41
jl 0x1002c1e
cmp al, 0x46
jg 0x1002c1e
movsx eax, al
sub eax, 0x37
jmp 0x1002c21
or eax, 0xffffffff
mov cl, byte [ebp + edx - 0x27]
cmp cl, 0x30
jl 0x1002c37
cmp cl, 0x39
jg 0x1002c37
movsx ecx, cl
sub ecx, 0x30
jmp 0x1002c5e
cmp cl, 0x61
jl 0x1002c49
cmp cl, 0x66
jg 0x1002c49
movsx ecx, cl
sub ecx, 0x57
jmp 0x1002c5e
cmp cl, 0x41
jl 0x1002c5b
cmp cl, 0x46
jg 0x1002c5b
movsx ecx, cl
sub ecx, 0x37
jmp 0x1002c5e
or ecx, 0xffffffff
cmp eax, edi
jl 0x1002b5d
cmp ecx, edi
jl 0x1002b5d
shl al, 4
add al, cl
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
inc edx
inc edx
cmp edx, 8
mov byte [ecx], al
jb 0x1002bea
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push 0x1001264
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x1002d74
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x10], 9
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jne 0x1002d74
xor edx, edx
mov al, byte [ebp + edx - 0x28]
cmp al, 0x30
jl 0x1002cec
cmp al, 0x39
jg 0x1002cec
movsx eax, al
sub eax, 0x30
jmp 0x1002d0f
cmp al, 0x61
jl 0x1002cfc
cmp al, 0x66
jg 0x1002cfc
movsx eax, al
sub eax, 0x57
jmp 0x1002d0f
cmp al, 0x41
jl 0x1002d0c
cmp al, 0x46
jg 0x1002d0c
movsx eax, al
sub eax, 0x37
jmp 0x1002d0f
or eax, 0xffffffff
mov cl, byte [ebp + edx - 0x27]
cmp cl, 0x30
jl 0x1002d25
cmp cl, 0x39
jg 0x1002d25
movsx ecx, cl
sub ecx, 0x30
jmp 0x1002d4c
cmp cl, 0x61
jl 0x1002d37
cmp cl, 0x66
jg 0x1002d37
movsx ecx, cl
sub ecx, 0x57
jmp 0x1002d4c
cmp cl, 0x41
jl 0x1002d49
cmp cl, 0x46
jg 0x1002d49
movsx ecx, cl
sub ecx, 0x37
jmp 0x1002d4c
or ecx, 0xffffffff
cmp eax, edi
jl 0x1002b5d
cmp ecx, edi
jl 0x1002b5d
shl al, 4
add al, cl
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
inc edx
inc edx
cmp edx, 8
mov byte [ecx], al
jb 0x1002cd8
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push 0x1001260
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x1002e62
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x10], 9
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jne 0x1002e62
xor edx, edx
mov al, byte [ebp + edx - 0x28]
cmp al, 0x30
jl 0x1002dda
cmp al, 0x39
jg 0x1002dda
movsx eax, al
sub eax, 0x30
jmp 0x1002dfd
cmp al, 0x61
jl 0x1002dea
cmp al, 0x66
jg 0x1002dea
movsx eax, al
sub eax, 0x57
jmp 0x1002dfd
cmp al, 0x41
jl 0x1002dfa
cmp al, 0x46
jg 0x1002dfa
movsx eax, al
sub eax, 0x37
jmp 0x1002dfd
or eax, 0xffffffff
mov cl, byte [ebp + edx - 0x27]
cmp cl, 0x30
jl 0x1002e13
cmp cl, 0x39
jg 0x1002e13
movsx ecx, cl
sub ecx, 0x30
jmp 0x1002e3a
cmp cl, 0x61
jl 0x1002e25
cmp cl, 0x66
jg 0x1002e25
movsx ecx, cl
sub ecx, 0x57
jmp 0x1002e3a
cmp cl, 0x41
jl 0x1002e37
cmp cl, 0x46
jg 0x1002e37
movsx ecx, cl
sub ecx, 0x37
jmp 0x1002e3a
or ecx, 0xffffffff
cmp eax, edi
jl 0x1002b5d
cmp ecx, edi
jl 0x1002b5d
shl al, 4
add al, cl
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
inc edx
inc edx
cmp edx, 8
mov byte [ecx], al
jb 0x1002dc6
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push 0x100126c
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x1002f4e
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x10], 9
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jne 0x1002f4e
mov esi, dword [ebp - 8]
xor edx, edx
mov al, byte [ebp + edx - 0x28]
cmp al, 0x30
jl 0x1002ecb
cmp al, 0x39
jg 0x1002ecb
movsx eax, al
sub eax, 0x30
jmp 0x1002eee
cmp al, 0x61
jl 0x1002edb
cmp al, 0x66
jg 0x1002edb
movsx eax, al
sub eax, 0x57
jmp 0x1002eee
cmp al, 0x41
jl 0x1002eeb
cmp al, 0x46
jg 0x1002eeb
movsx eax, al
sub eax, 0x37
jmp 0x1002eee
or eax, 0xffffffff
mov cl, byte [ebp + edx - 0x27]
cmp cl, 0x30
jl 0x1002f04
cmp cl, 0x39
jg 0x1002f04
movsx ecx, cl
sub ecx, 0x30
jmp 0x1002f2b
cmp cl, 0x61
jl 0x1002f16
cmp cl, 0x66
jg 0x1002f16
movsx ecx, cl
sub ecx, 0x57
jmp 0x1002f2b
cmp cl, 0x41
jl 0x1002f28
cmp cl, 0x46
jg 0x1002f28
movsx ecx, cl
sub ecx, 0x37
jmp 0x1002f2b
or ecx, 0xffffffff
cmp eax, edi
jl 0x1002b5d
cmp ecx, edi
jl 0x1002b5d
shl al, 4
add al, cl
mov byte [esi], al
inc esi
inc edx
inc edx
cmp edx, 8
jb 0x1002eb7
xor eax, eax
movzx ecx, byte [eax + 0x100602c]
mov dl, byte [ebp + eax - 0x38]
mov esi, dword [ebp + 8]
inc eax
cmp eax, 0x10
mov byte [ecx + esi], dl
jb 0x1002f50
mov bl, 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 4