Function at 0x411100
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a27e8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x61df80]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00401ff0
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x411182
push 0
call fcn.00405d70
movzx eax, al
push eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x40]
mov eax, dword [edx + 0xc]
call eax
movzx ecx, al
test ecx, ecx
je 0x411182
push str.GetRegistry
push 0x5ed5f0
push 0x36
push 0x5ed5fc
push 0
call fcn.00405d70
movzx edx, al
push edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x1c
xor ecx, ecx
jne 0x411128
push 0x5deeae
mov ecx, dword [ebp + 0x14]
call fcn.004031c0
cmp dword [ebp + 8], 0
je 0x4111b9
cmp dword [ebp + 0xc], 0
je 0x4111b9
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx]
test eax, eax
je 0x4111b9
cmp dword [ebp + 0x10], 0
je 0x4111b9
mov ecx, dword [ebp + 0x10]
movsx edx, byte [ecx]
test edx, edx
jne 0x4111c1
or eax, 0xffffffff
jmp 0x41136b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4111e8
mov eax, 0xfffffffe
jmp 0x41136b
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x1c], 0x100
push 0x5deeaf
lea ecx, [ebp - 0x3c]
call fcn.00403100
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xa
push eax
lea ecx, [ebp - 0x3c]
call fcn.00411f20
mov ecx, dword [ebp - 0x1c]
add ecx, 0xa
push ecx
push 0
lea ecx, [ebp - 0x3c]
call fcn.00411f00
push eax
call fcn.004ce490
add esp, 0xc
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x3c]
call fcn.00411f00
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xea
jne 0x41130a
call fcn.00401ff0
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x4112b9
push 0
call fcn.00405d70
movzx eax, al
push eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x44]
mov eax, dword [edx + 0xc]
call eax
movzx ecx, al
test ecx, ecx
je 0x4112b9
push str.In_if_ret__ERROR_MORE_DATA__n
push 0x4d
push 0x5ed634
push 0
call fcn.00405d70
movzx edx, al
push edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x18
xor ecx, ecx
jne 0x411264
mov edx, dword [ebp - 0x1c]
add edx, 0xa
push edx
lea ecx, [ebp - 0x3c]
call fcn.00411f20
mov eax, dword [ebp - 0x1c]
add eax, 0xa
push eax
push 0
lea ecx, [ebp - 0x3c]
call fcn.00411f00
push eax
call fcn.004ce490
add esp, 0xc
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00411f00
push eax
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x411337
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x48], 0xfffffffd
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00403180
mov eax, dword [ebp - 0x48]
jmp 0x41136b
lea ecx, [ebp - 0x3c]
call fcn.00403210
push eax
mov ecx, dword [ebp + 0x14]
call fcn.004031c0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00403180
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004c7d13
mov esp, ebp
pop ebp
ret