Function at 0x4011c0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x40b820
push 0x403eb0
mov eax, dword fs:[0]
push eax
sub esp, 0x4a8
mov eax, dword [0x40c004]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x4b4], ebx
mov esi, 0x378
mov dword [ebp - 0x4b8], esi
lea edx, [ebp - 0x4b4]
push edx
push 0xf003f
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40122f
mov eax, 0xfffffcdd
jmp 0x4013ef
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x4b8]
push eax
lea ecx, [ebp - 0x4b0]
push ecx
push ebx
push ebx
push str.PackedCatalogItem
mov edx, dword [ebp - 0x4b4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40140b
cmp dword [ebp - 0x4b8], esi
jne 0x40140b
cmp dword [ebp - 0x384], 1
jne 0x4013e1
cmp dword [ebp - 0x360], 2
jne 0x4013e1
mov byte [ebp - 0x34], bl
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov eax, dword [ebp - 0x388]
push eax
push 0x40b394
lea ecx, [ebp - 0x34]
push ecx
call fcn.00401707
add esp, 0xc
cmp dword [ebp + 0xc], ebx
jne 0x401362
lea eax, [ebp - 0x4b0]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4012c0
sub eax, edx
push eax
lea edx, [ebp - 0x4b0]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.00401000
add esp, 0xc
test eax, eax
jne 0x4012fe
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x40c004
call fcn.0040759c
add esp, 0xc
mov eax, 0xfffffcda
jmp 0x4013ef
mov ecx, 0x40da20
lea edx, [ebp - 0x4b0]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x401310
mov edx, dword [ebp - 0x4b8]
push edx
lea eax, [ebp - 0x4b0]
push eax
push 3
push ebx
push str.PackedCatalogItem
mov ecx, dword [ebp - 0x4b4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4013e1
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x40c004
call fcn.0040759c
add esp, 0xc
mov eax, 0xfffffcd9
jmp 0x4013ef
mov byte [ebp - 0x138], bl
push 0x103
push ebx
lea eax, [ebp - 0x137]
push eax
call fcn.00405bd0
lea ecx, [ebp - 0x138]
push ecx
lea edx, [ebp - 0x34]
push edx
call fcn.00401080
add esp, 0x14
test eax, eax
jne 0x401399
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
jmp 0x401411
lea ecx, [ebp - 0x138]
lea edx, [ebp - 0x4b0]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x4013a5
mov ecx, dword [ebp - 0x4b8]
push ecx
lea edx, [ebp - 0x4b0]
push edx
push 3
push ebx
push str.PackedCatalogItem
mov eax, dword [ebp - 0x4b4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4013e1
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
jmp 0x40134b
mov dword [ebp - 4], 0xfffffffe
call fcn.00401425
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004016f8
mov esp, ebp
pop ebp
ret
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x40c004
call fcn.0040759c
add esp, 0xc
mov eax, 0xfffffcdb
jmp 0x4013ef