Function at 0x405bc4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004036c0
xor eax, eax
push ebp
push 0x405e29
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.004033d8
lea eax, [ebp - 8]
call fcn.004033d8
lea eax, [ebp - 0xc]
call fcn.004033d8
lea eax, [ebp - 0x10]
call fcn.004033d8
mov edx, dword [ebp - 4]
mov eax, 0x405e40
call fcn.004037b8
mov ebx, eax
test ebx, ebx
jle 0x405e01
lea eax, [ebp - 8]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00403730
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, 1
call fcn.00403770
mov edx, dword [ebp - 4]
mov eax, 0x405e4c
call fcn.004037b8
mov ebx, eax
test ebx, ebx
jle 0x405c8b
lea eax, [ebp - 0x10]
push eax
lea edx, [ebx + 1]
mov ecx, 0x7fffffff
mov eax, dword [ebp - 4]
call fcn.00403730
lea eax, [ebp - 4]
mov ecx, 0x7fffffff
mov edx, ebx
call fcn.00403770
mov eax, dword [ebp - 4]
call fcn.0040355c
mov ebx, eax
jmp 0x405c98
dec ebx
test ebx, ebx
jle 0x405ca6
mov eax, dword [ebp - 4]
cmp byte [eax + ebx - 1], 0x5c
jne 0x405c97
test ebx, ebx
jle 0x405cd9
mov eax, dword [ebp - 4]
call fcn.0040355c
cmp ebx, eax
jge 0x405cd9
lea eax, [ebp - 0xc]
push eax
lea edx, [ebx + 1]
mov ecx, 0x7fffffff
mov eax, dword [ebp - 4]
call fcn.00403730
lea eax, [ebp - 4]
mov ecx, 0x7fffffff
mov edx, ebx
call fcn.00403770
mov eax, 0x405e58
mov dword [ebp - 0x34], eax
mov eax, 0x405e74
mov dword [ebp - 0x30], eax
mov eax, 0x405e84
mov dword [ebp - 0x2c], eax
mov eax, 0x405ea0
mov dword [ebp - 0x28], eax
mov eax, 0x405eb0
mov dword [ebp - 0x24], eax
mov eax, 0x405ec4
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x34]
mov ecx, 5
mov eax, dword [ebp - 8]
call fcn.00405b28
sub eax, 2
jb 0x405d2a
sub eax, 2
jb 0x405d31
sub eax, 2
jb 0x405d38
jmp 0x405d3f
mov esi, 0x80000001
jmp 0x405d41
mov esi, 0x80000002
jmp 0x405d41
mov esi, 0x80000003
jmp 0x405d41
xor esi, esi
test esi, esi
je 0x405e01
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.004036d0
push eax
push esi
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x405e01
lea eax, [ebp - 0x14]
mov edx, 0x208
call fcn.00403800
mov eax, dword [ebp - 0x14]
call fcn.0040355c
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004036d0
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.004036d0
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x405dfb
mov edx, dword [ebp - 0x18]
dec edx
lea eax, [ebp - 0x14]
call fcn.00403800
mov edx, dword [ebp - 0x14]
mov eax, 0x405ed0
call fcn.004037b8
mov ebx, eax
test ebx, ebx
jle 0x405dd1
lea eax, [ebp - 0x14]
mov ecx, 0x7fffffff
mov edx, ebx
call fcn.00403770
mov eax, dword [ebp - 0x14]
call fcn.004036d0
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00403508
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.00405850
mov edx, dword [ebp - 0x38]
mov eax, edi
mov ecx, dword [ebp - 0x10]
call fcn.004035a8
push esi
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e30
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.004033fc
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004033fc
ret