Function at 0x10020320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003f5f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov eax, dword [0x1004caec]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x14], eax
push edi
mov eax, 0xf
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], esi
mov byte [ebp - 0x48], 0
mov eax, dword [ebp + 8]
cmp eax, esi
mov byte [ebp - 4], 1
je 0x100205de
cmp byte [eax], 0x5b
jne 0x100205de
push eax
mov byte [ebp - 4], 2
call fcn.10032fb8
add esp, 4
mov ebx, eax
xor edi, edi
cmp edi, 5
jae 0x1002041c
mov ecx, dword [edi*8 + 0x1004c634]
cmp ecx, esi
je 0x1002042d
mov eax, SysReAllocString
xor edx, edx
mov esi, eax
test eax, eax
je 0x1002042d
cmp byte [ecx], 0
je 0x100203c4
inc ecx
dec eax
jmp 0x100203b7
test edx, edx
jl 0x1002042d
mov ecx, dword [edi*8 + 0x1004c634]
sub esi, eax
lea eax, [esi - 1]
push eax
push ecx
push ebx
call fcn.100321b5
add esp, 0xc
test eax, eax
jne 0x10020437
mov eax, dword [edi*8 + 0x1004c638]
add ebx, esi
mov dword [ebp - 0x58], eax
cmp byte [ebx], 0x5c
jne 0x100203ff
push ebx
call fcn.10032fb8
add esp, 4
mov ebx, eax
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10020404
sub eax, edx
push eax
push ebx
lea ecx, [ebp - 0x30]
call fcn.1000e127
xor esi, esi
cmp edi, 5
mov edi, 0x10
jne 0x1002043f
mov esi, 0xd
jmp 0x10020593
mov esi, 0xd
jmp 0x1002058e
inc edi
xor esi, esi
jmp 0x10020396
cmp dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x2c]
jae 0x1002044a
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
cmp byte [eax + ecx - 1], 0x5d
je 0x1002045e
mov esi, 0xd
jmp 0x10020593
lea eax, [ecx - 1]
cmp eax, ecx
ja 0x10020472
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x30]
call fcn.1000dd0a
jmp 0x1002047e
sub eax, ecx
push esi
push eax
lea ecx, [ebp - 0x30]
call fcn.1001f990
push 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x50], 0x5c
call fcn.1001e6f0
mov ecx, dword [ebp - 0x1c]
mov esi, eax
lea eax, [ecx - 1]
cmp esi, eax
jne 0x100204b6
cmp eax, ecx
ja 0x100204af
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x30]
call fcn.1000dd0a
jmp 0x1002050f
push 0
sub eax, ecx
push eax
jmp 0x10020507
push 0xffffffffffffffff
lea edx, [esi + 1]
push edx
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x30]
call fcn.100202e0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.1000e098
cmp dword [ebp - 0x60], edi
mov byte [ebp - 4], 2
jb 0x100204ee
mov ecx, dword [ebp - 0x74]
push ecx
call fcn.100305cc
add esp, 4
mov eax, dword [ebp - 0x1c]
cmp esi, eax
ja 0x10020502
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x30]
call fcn.1000dd0a
jmp 0x1002050f
push 0
sub esi, eax
push esi
lea ecx, [ebp - 0x30]
call fcn.1001f990
mov eax, dword [ebp - 0x1c]
test eax, eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x54], ecx
je 0x10020540
cmp dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x2c]
jae 0x10020527
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 0x10020593
cmp dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x48]
jae 0x1002054b
lea eax, [ebp - 0x48]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
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 0x10020593
mov eax, dword [ebp - 0x5c]
cmp eax, 1
je 0x10020593
cmp eax, 2
je 0x10020593
mov esi, 0x65e
jmp 0x10020593
mov edi, 0x10
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x100205a6
cmp dword [ebp - 0x58], eax
je 0x100205a6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x34], edi
jb 0x100205b7
mov eax, dword [ebp - 0x48]
push eax
call fcn.100305cc
add esp, 4
cmp dword [ebp - 0x18], edi
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
jb 0x100205da
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.100305cc
add esp, 4
mov eax, esi
jmp 0x100205e3
mov eax, 0xd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.10030334
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8