Function at 0x4b3000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x743386
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x899944]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
lea edx, [ebp - 0x108]
push edx
push 0
mov dword [ebp - 0x104], ecx
lea ecx, [ebp - 0x10c]
push ecx
push 0
push edi
push eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x10c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov byte [ebp - 0xf9], 0
test ebx, ebx
jne 0x4b321b
mov eax, dword [ebp - 0x108]
test eax, eax
je 0x4b3274
push eax
call fcn.00408f70
add esp, 4
mov dword [ebp - 0x100], eax
test eax, eax
jne 0x4b30ad
xor al, al
jmp 0x4b327a
mov ecx, dword [ebp - 0x110]
lea edx, [ebp - 0x108]
push edx
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test ebx, ebx
jne 0x4b31b1
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x108]
cmp eax, 4
jne 0x4b311f
cmp ecx, 4
jne 0x4b3183
mov edx, dword [ebp - 0x100]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x104]
push eax
call fcn.0040db20
mov eax, dword [ebp - 0x100]
push eax
mov byte [ebp - 0xf9], 1
call fcn.005c4733
add esp, 4
jmp 0x4b3274
cmp eax, 1
jne 0x4b3151
mov ecx, dword [ebp - 0x100]
push ecx
mov ecx, dword [ebp - 0x104]
call fcn.0040a8e0
mov eax, dword [ebp - 0x100]
push eax
mov byte [ebp - 0xf9], 1
call fcn.005c4733
add esp, 4
jmp 0x4b3274
cmp eax, 2
jne 0x4b3183
mov edx, dword [ebp - 0x100]
mov ecx, dword [ebp - 0x104]
push edx
call fcn.0040a8e0
mov eax, dword [ebp - 0x100]
push eax
mov byte [ebp - 0xf9], 1
call fcn.005c4733
add esp, 4
jmp 0x4b3274
mov eax, dword [ebp - 0x100]
push ecx
mov ecx, dword [ebp - 0x104]
push eax
call fcn.0040d560
mov eax, dword [ebp - 0x100]
push eax
mov byte [ebp - 0xf9], 1
call fcn.005c4733
add esp, 4
jmp 0x4b3274
lea ecx, [ebp - 0xf8]
call fcn.0040ac30
push ebx
lea ecx, [ebp - 0xf8]
mov dword [ebp - 4], 0
call fcn.0040c520
mov ebx, dword [esi]
lea ecx, [ebp - 0xf8]
call fcn.00409d90
mov edx, dword [ebx + 0x2c]
push eax
push str.RegistryQueryError2
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push edi
push str.ValueName
mov ecx, esi
call edx
lea ecx, [ebp - 0xf8]
mov dword [ebp - 4], 0xffffffff
call fcn.0040acf0
mov eax, dword [ebp - 0x100]
push eax
call fcn.005c4733
add esp, 4
jmp 0x4b3274
lea ecx, [ebp - 0x84]
call fcn.0040ac30
push ebx
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 1
call fcn.0040c520
mov ebx, dword [esi]
lea ecx, [ebp - 0x84]
call fcn.00409d90
mov edx, dword [ebx + 0x2c]
push eax
push str.RegistryQueryError
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push edi
push str.ValueName
mov ecx, esi
call edx
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 0xffffffff
call fcn.0040acf0
mov al, byte [ebp - 0xf9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0070bb4c
mov esp, ebp
pop ebp
ret