Function at 0x100358e5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x100ae134]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x14c], eax
xor ebx, ebx
lea eax, [ebp - 0x134]
mov dword [ebp - 0x134], ebx
push eax
push 0x20019
mov esi, ecx
mov dword [ebp - 0x12c], 0x10004528
mov ecx, 0x10004534
mov dword [ebp - 0x128], esi
push ebx
push ecx
xor edi, edi
mov byte [esi], bl
push reloc.OLEAUT32.dll_SysReAllocString
inc edi
mov dword [ebp - 0x124], 0x10c
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x130], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1003b5a2
lea eax, [ebp - 0x148]
mov dword [ebp - 0x144], ebx
push eax
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x140], ebx
push eax
lea eax, [ebp - 0x138]
mov dword [ebp - 0x13c], ebx
push eax
push ebx
push 0x10004564
push dword [ebp - 0x134]
mov dword [ebp - 0x148], 4
mov dword [ebp - 0x138], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1003b5c2
mov dword [ebp - 0x11c], ebx
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x118]
call fcn.10035925
pop ecx
pop ecx
test eax, eax
je 0x10035857
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x12c], eax
call 0x100358e5
test eax, eax
jne 0x1003b5e5
mov eax, dword [ebp - 0x140]
cmp eax, 0x112
jae 0x100358e0
lea ecx, [ebp - 0x134]
mov byte [ebp + eax - 0x118], bl
call 0x100358e5
test eax, eax
jne 0x1003b5e5
mov eax, dword [ebp - 0x144]
test eax, eax
je 0x10035857
mov byte [ebp + eax - 0x118], 0x2a
inc eax
cmp eax, 0x112
jae 0x100358e0
lea ecx, [ebp - 0x134]
mov byte [ebp + eax - 0x118], bl
call 0x100358e5
test eax, eax
jne 0x1003b5e5
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x12c], 0x1000455c
call 0x100358e5
test eax, eax
jne 0x1003b5e5
mov eax, 0x10004528
mov dword [ebp - 0x120], ebx
push 0xffffffffffffffff
push eax
push 0x10d
push esi
mov dword [ebp - 0x12c], eax
call dword [sym.imp.msvcrt.dll_strncpy_s]
add esp, 0x10
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x134], ebx
mov edi, ebx
mov ebx, dword [ebp - 0x120]
mov eax, dword [ebp - 0x11c]
test eax, eax
jne 0x1003b61f
mov ecx, dword [ebp - 0x14c]
mov dword [ecx], eax
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [0x100af384], ebx
xor ecx, ebp
pop ebx
call fcn.100365c0
mov esp, ebp
pop ebp
ret
call fcn.10036710
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
push ebx
push 2
mov dword [esi + 0x14], ebx
mov byte [edi], bl
push dword [esi + 8]
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
je 0x1003b67b
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
mov eax, 0x10004528
push eax
push 0x10d
push esi
call dword [sym.imp.msvcrt.dll_strncpy_s]
add esp, 0x10
mov eax, ebx
mov edi, ebx
jmp 0x100358bf
cmp dword [ebp - 0x138], 4
jne 0x100357ac
xor eax, eax
cmp dword [ebp - 0x13c], eax
setne al
mov dword [ebp - 0x11c], eax
jmp 0x100357b2
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x134], ebx
mov byte [esi + 0x10d], bl
mov ebx, dword [ebp - 0x120]
test ebx, ebx
je 0x100358b1
mov ecx, esi
call fcn.10069d28
mov ebx, eax
mov dword [ebp - 0x120], ebx
jmp 0x100358b1
push 0x1001cbec
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 0x130]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x1001cbf8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x1001cbfc
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x1001cc08
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x11c]
mov ebx, dword [ebp - 0x120]
jmp 0x100358bf
xor ebx, ebx
inc ebx
cmp dword [ebp - 4], ebx
jbe 0x1003591c
xor eax, eax
cmp byte [edi], 0x3a
setne al
mov dword [esi + 0x14], eax
jmp 0x1003591c