Function at 0x100458b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006bf78
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x1008d414]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x64], ecx
mov ecx, 0xf
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], esi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], esi
mov byte [ebp - 0x48], 0
cmp eax, esi
mov byte [ebp - 4], 1
je 0x10045ba0
cmp byte [eax], 0x5b
jne 0x10045ba0
push eax
mov byte [ebp - 4], 2
call fcn.10053367
add esp, 4
mov ebx, eax
xor edi, edi
cmp edi, 5
jae 0x100459d8
mov ecx, dword [edi*8 + 0x1008d150]
cmp ecx, esi
je 0x1004596d
mov eax, SysReAllocString
xor edx, edx
mov esi, eax
test eax, eax
je 0x10045962
cmp byte [ecx], 0
je 0x10045977
add ecx, 1
sub eax, 1
jmp 0x10045951
mov edx, 0x80070057
xor esi, esi
test edx, edx
jge 0x1004597f
mov esi, 0xd
jmp 0x10045b50
test edx, edx
jl 0x10045967
sub esi, eax
jmp 0x10045969
mov ecx, dword [edi*8 + 0x1008d150]
lea eax, [esi - 1]
push eax
push ecx
push ebx
call fcn.10054558
add esp, 0xc
test eax, eax
jne 0x100459e4
mov edx, dword [edi*8 + 0x1008d154]
add ebx, esi
cmp byte [ebx], 0x5c
mov dword [ebp - 0x58], edx
jne 0x100459b4
push ebx
call fcn.10053367
add esp, 4
mov ebx, eax
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100459c0
sub eax, edx
push eax
push ebx
lea ecx, [ebp - 0x30]
call fcn.100030bd
cmp edi, 5
jne 0x100459ee
mov esi, 0xd
jmp 0x10045b50
add edi, 1
xor esi, esi
jmp 0x10045934
mov ecx, dword [ebp - 0x1c]
lea esi, [ecx - 1]
cmp esi, ecx
jbe 0x10045a00
call fcn.1004ff43
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
mov edi, 0x10
cmp dword [ebp - 0x18], edi
jae 0x10045a10
lea eax, [ebp - 0x2c]
cmp byte [eax + esi], 0x5d
je 0x10045a20
mov esi, 0xd
jmp 0x10045b55
lea eax, [ecx - 1]
cmp eax, ecx
ja 0x10045a34
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x30]
call fcn.100029ce
jmp 0x10045a41
sub eax, ecx
push 0
push eax
lea ecx, [ebp - 0x30]
call fcn.10044fa0
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x50], 0x5c
call fcn.10043b60
mov ecx, dword [ebp - 0x1c]
mov esi, eax
lea eax, [ecx - 1]
cmp esi, eax
jne 0x10045a79
cmp eax, ecx
ja 0x10045a72
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x30]
call fcn.100029ce
jmp 0x10045ad2
push 0
sub eax, ecx
push eax
jmp 0x10045aca
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
lea edx, [ebp - 0x80]
push edx
lea ecx, [ebp - 0x30]
call fcn.10045870
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.10002f21
cmp dword [ebp - 0x68], edi
mov byte [ebp - 4], 2
jb 0x10045ab1
mov eax, dword [ebp - 0x7c]
push eax
call fcn.1004efee
add esp, 4
mov eax, dword [ebp - 0x1c]
cmp esi, eax
ja 0x10045ac5
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x30]
call fcn.100029ce
jmp 0x10045ad2
push 0
sub esi, eax
push esi
lea ecx, [ebp - 0x30]
call fcn.10044fa0
cmp dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x54], ecx
je 0x10045b02
cmp dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x2c]
jae 0x10045ae9
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x54]
push edx
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x10045b55
cmp dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x48]
jae 0x10045b0d
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x60]
push ecx
push edx
mov edx, dword [ebp - 0x54]
lea ecx, [ebp - 0x5c]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x10045b55
mov eax, dword [ebp - 0x5c]
cmp eax, 1
je 0x10045b55
cmp eax, 2
je 0x10045b55
mov esi, 0x65e
jmp 0x10045b55
mov edi, 0x10
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x10045b68
cmp dword [ebp - 0x58], eax
je 0x10045b68
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x34], edi
jb 0x10045b79
mov eax, dword [ebp - 0x48]
push eax
call fcn.1004efee
add esp, 4
cmp dword [ebp - 0x18], edi
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
jb 0x10045b9c
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1004efee
add esp, 4
mov eax, esi
jmp 0x10045ba5
mov eax, 0xd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1004f347
mov esp, ebp
pop ebp
ret 8