Function at 0x1009d59
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x1009fad
cmp dword [ebp + 0x18], ebx
je 0x1009fad
mov eax, dword [ebp + 8]
cmp dword [eax], ebx
push esi
push edi
mov dword [ebp - 4], ebx
mov esi, 0x10016c4
jne 0x1009db4
push eax
push 0x20319
push ebx
push 0x1001718
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x1009db4
push eax
call fcn.01009d20
push ebx
push eax
push 0x4c2
push esi
mov dword [ebp - 4], eax
call fcn.0101c3d2
cmp dword [ebp - 4], ebx
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov dword [edi], ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0x18]
mov dword [eax], ebx
jl 0x1009fa6
push edi
push ebx
lea eax, [ebp + 0x14]
push eax
mov eax, dword [ebp + 8]
push ebx
push 0x100170c
push dword [eax]
mov dword [ebp + 0x14], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x1009e04
push eax
call fcn.01009d20
push ebx
push eax
push 0x4d5
push esi
mov dword [ebp - 4], eax
call fcn.0101c3d2
cmp dword [ebp - 4], ebx
jl 0x1009e77
push dword [edi]
call fcn.0100d5aa
cmp eax, ebx
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jne 0x1009e31
push ebx
mov eax, 0x8007000e
push eax
push 0x4e2
push esi
mov dword [edi], ebx
mov dword [ebp - 4], eax
call fcn.0101c3d2
cmp dword [ebp - 4], ebx
jl 0x1009e77
mov eax, dword [ebp + 0x10]
push edi
push dword [eax]
lea eax, [ebp + 0x14]
push eax
mov eax, dword [ebp + 8]
push ebx
push 0x100170c
push dword [eax]
mov dword [ebp + 0x14], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x1009e72
push eax
call fcn.01009d20
push ebx
push eax
push 0x4f0
push esi
mov dword [ebp - 4], eax
call fcn.0101c3d2
cmp dword [ebp - 4], ebx
jge 0x1009e97
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x1009e8e
push eax
call fcn.0100dd74
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
pop ecx
mov dword [edi], ebx
cmp dword [ebp - 4], ebx
jl 0x1009fa6
mov edi, dword [ebp + 0xc]
cmp dword [edi], ebx
jne 0x1009ecf
push edi
push 0x20319
push ebx
push 0x10016dc
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x1009ecf
push eax
call fcn.01009d20
push ebx
push eax
push 0x50f
push esi
mov dword [ebp - 4], eax
call fcn.0101c3d2
cmp dword [ebp - 4], ebx
jl 0x1009fa6
lea eax, [ebp + 0x10]
push eax
push ebx
lea eax, [ebp + 8]
push eax
push ebx
push 0x10016d0
push dword [edi]
mov dword [ebp + 0x10], ebx
mov dword [ebp + 8], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x1009f13
push eax
call fcn.01009d20
push ebx
push eax
push 0x522
push esi
mov dword [ebp - 4], eax
call fcn.0101c3d2
cmp dword [ebp - 4], ebx
jl 0x1009f94
push dword [ebp + 0x10]
call fcn.0100d5aa
cmp eax, ebx
mov edi, dword [ebp + 0x18]
pop ecx
mov dword [edi], eax
jne 0x1009f3f
push ebx
mov eax, 0x8007000e
push eax
push 0x52e
push esi
mov dword [ebp - 4], eax
call fcn.0101c3d2
cmp dword [ebp - 4], ebx
jl 0x1009f97
lea eax, [ebp + 0x10]
push eax
push dword [edi]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0xc]
push ebx
push 0x10016d0
push dword [eax]
mov dword [ebp + 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x1009f80
push eax
call fcn.01009d20
push ebx
push eax
push 0x53b
push esi
mov dword [ebp - 4], eax
call fcn.0101c3d2
cmp dword [ebp - 4], ebx
jl 0x1009f97
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jbe 0x1009fa6
mov ecx, dword [edi]
mov byte [ecx + eax - 1], bl
jmp 0x1009fa6
mov edi, dword [ebp + 0x18]
mov eax, dword [edi]
cmp eax, ebx
je 0x1009fa6
push eax
call fcn.0100dd74
pop ecx
mov dword [edi], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
jmp 0x1009fb2
mov eax, 0x80070057
pop ebx
leave
ret 0x14