Function at 0x10035805
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x100a2bb4]
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], 0x1000461c
mov ecx, 0x10004628
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 0x100485ec
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 0x10004658
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 0x1004860c
mov dword [ebp - 0x11c], ebx
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x118]
call fcn.10035845
pop ecx
pop ecx
test eax, eax
je 0x10035777
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x12c], eax
call 0x10035805
test eax, eax
jne 0x1004862f
mov eax, dword [ebp - 0x140]
cmp eax, 0x112
jae 0x10035800
lea ecx, [ebp - 0x134]
mov byte [ebp + eax - 0x118], bl
call 0x10035805
test eax, eax
jne 0x1004862f
mov eax, dword [ebp - 0x144]
test eax, eax
je 0x10035777
mov byte [ebp + eax - 0x118], 0x2a
inc eax
cmp eax, 0x112
jae 0x10035800
lea ecx, [ebp - 0x134]
mov byte [ebp + eax - 0x118], bl
call 0x10035805
test eax, eax
jne 0x1004862f
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x12c], 0x10004650
call 0x10035805
test eax, eax
jne 0x1004862f
mov eax, 0x1000461c
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 0x10048669
mov ecx, dword [ebp - 0x14c]
mov dword [ecx], eax
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [0x100a479c], ebx
xor ecx, ebp
pop ebx
call fcn.10037870
mov esp, ebp
pop ebp
ret
call fcn.10037abf
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 0x100486c5
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
mov eax, 0x1000461c
push eax
push 0x10d
push esi
call dword [sym.imp.msvcrt.dll_strncpy_s]
add esp, 0x10
mov eax, ebx
mov edi, ebx
jmp 0x100357df
cmp dword [ebp - 0x138], 4
jne 0x100356cc
xor eax, eax
cmp dword [ebp - 0x13c], eax
setne al
mov dword [ebp - 0x11c], eax
jmp 0x100356d2
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 0x100357d1
mov ecx, esi
call fcn.10055d21
mov ebx, eax
mov dword [ebp - 0x120], ebx
jmp 0x100357d1
push 0x10007518
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 0x130]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x10007524
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x10007528
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x10007534
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x11c]
mov ebx, dword [ebp - 0x120]
jmp 0x100357df
xor ebx, ebx
inc ebx
cmp dword [ebp - 4], ebx
jbe 0x1003583c
xor eax, eax
cmp byte [edi], 0x3a
setne al
mov dword [esi + 0x14], eax
jmp 0x1003583c