Function at 0x1003fc85
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x100e3998]
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], 0x100083f8
mov ecx, 0x10008404
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 0x1004f930
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 0x10008434
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 0x1004f950
mov dword [ebp - 0x11c], ebx
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x118]
call fcn.1003fcc5
pop ecx
pop ecx
test eax, eax
je 0x1003fbf7
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x12c], eax
call 0x1003fc85
test eax, eax
jne 0x1004f973
mov eax, dword [ebp - 0x140]
cmp eax, 0x112
jae 0x1003fc80
lea ecx, [ebp - 0x134]
mov byte [ebp + eax - 0x118], bl
call 0x1003fc85
test eax, eax
jne 0x1004f973
mov eax, dword [ebp - 0x144]
test eax, eax
je 0x1003fbf7
mov byte [ebp + eax - 0x118], 0x2a
inc eax
cmp eax, 0x112
jae 0x1003fc80
lea ecx, [ebp - 0x134]
mov byte [ebp + eax - 0x118], bl
call 0x1003fc85
test eax, eax
jne 0x1004f973
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x12c], 0x1000842c
call 0x1003fc85
test eax, eax
jne 0x1004f973
mov eax, 0x100083f8
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 0x1004f9ad
mov ecx, dword [ebp - 0x14c]
mov dword [ecx], eax
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [0x100e4158], ebx
xor ecx, ebp
pop ebx
call fcn.10040f40
mov esp, ebp
pop ebp
ret
call fcn.10041317
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 0x1004fa09
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
mov eax, 0x100083f8
push eax
push 0x10d
push esi
call dword [sym.imp.msvcrt.dll_strncpy_s]
add esp, 0x10
mov eax, ebx
mov edi, ebx
jmp 0x1003fc5f
cmp dword [ebp - 0x138], 4
jne 0x1003fb4c
xor eax, eax
cmp dword [ebp - 0x13c], eax
setne al
mov dword [ebp - 0x11c], eax
jmp 0x1003fb52
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 0x1003fc51
mov ecx, esi
call fcn.100d8b4f
mov ebx, eax
mov dword [ebp - 0x120], ebx
jmp 0x1003fc51
push 0x10035818
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 0x130]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x10035824
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x10035828
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x10035834
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x11c]
mov ebx, dword [ebp - 0x120]
jmp 0x1003fc5f
xor ebx, ebx
inc ebx
cmp dword [ebp - 4], ebx
jbe 0x1003fcbc
xor eax, eax
cmp byte [edi], 0x3a
setne al
mov dword [esi + 0x14], eax
jmp 0x1003fcbc