Function at 0x4056f8
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.00403288
xor eax, eax
push ebp
push 0x40595d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00402f1c
lea eax, [ebp - 8]
call fcn.00402f1c
lea eax, [ebp - 0xc]
call fcn.00402f1c
lea eax, [ebp - 0x10]
call fcn.00402f1c
mov edx, dword [ebp - 4]
mov eax, 0x405974
call fcn.00403380
mov ebx, eax
test ebx, ebx
jle 0x405935
lea eax, [ebp - 8]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004032f8
lea eax, [ebp - 4]
mov ecx, ebx
mov edx, 1
call fcn.00403338
mov edx, dword [ebp - 4]
mov eax, 0x405980
call fcn.00403380
mov ebx, eax
test ebx, ebx
jle 0x4057bf
lea eax, [ebp - 0x10]
push eax
lea edx, [ebx + 1]
mov ecx, 0x7fffffff
mov eax, dword [ebp - 4]
call fcn.004032f8
lea eax, [ebp - 4]
mov ecx, 0x7fffffff
mov edx, ebx
call fcn.00403338
mov eax, dword [ebp - 4]
call fcn.004030a0
mov ebx, eax
jmp 0x4057cc
dec ebx
test ebx, ebx
jle 0x4057da
mov eax, dword [ebp - 4]
cmp byte [eax + ebx - 1], 0x5c
jne 0x4057cb
test ebx, ebx
jle 0x40580d
mov eax, dword [ebp - 4]
call fcn.004030a0
cmp ebx, eax
jge 0x40580d
lea eax, [ebp - 0xc]
push eax
lea edx, [ebx + 1]
mov ecx, 0x7fffffff
mov eax, dword [ebp - 4]
call fcn.004032f8
lea eax, [ebp - 4]
mov ecx, 0x7fffffff
mov edx, ebx
call fcn.00403338
mov eax, 0x40598c
mov dword [ebp - 0x34], eax
mov eax, 0x4059a8
mov dword [ebp - 0x30], eax
mov eax, 0x4059b8
mov dword [ebp - 0x2c], eax
mov eax, 0x4059d4
mov dword [ebp - 0x28], eax
mov eax, 0x4059e4
mov dword [ebp - 0x24], eax
mov eax, 0x4059f8
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x34]
mov ecx, 5
mov eax, dword [ebp - 8]
call fcn.0040565c
sub eax, 2
jb 0x40585e
sub eax, 2
jb 0x405865
sub eax, 2
jb 0x40586c
jmp 0x405873
mov esi, 0x80000001
jmp 0x405875
mov esi, 0x80000002
jmp 0x405875
mov esi, 0x80000003
jmp 0x405875
xor esi, esi
test esi, esi
je 0x405935
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.00403298
push eax
push esi
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x405935
lea eax, [ebp - 0x14]
mov edx, 0x208
call fcn.004033c8
mov eax, dword [ebp - 0x14]
call fcn.004030a0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00403298
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403298
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x40592f
mov edx, dword [ebp - 0x18]
dec edx
lea eax, [ebp - 0x14]
call fcn.004033c8
mov edx, dword [ebp - 0x14]
mov eax, 0x405a04
call fcn.00403380
mov ebx, eax
test ebx, ebx
jle 0x405905
lea eax, [ebp - 0x14]
mov ecx, 0x7fffffff
mov edx, ebx
call fcn.00403338
mov eax, dword [ebp - 0x14]
call fcn.00403298
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040304c
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.00405338
mov edx, dword [ebp - 0x38]
mov eax, edi
mov ecx, dword [ebp - 0x10]
call fcn.004030ec
push esi
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405964
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00402f40
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00402f40
ret