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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 1], cl
mov esi, edx
xor edx, edx
push ebp
push 0x47631d
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 0
push 3
push 0
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 0xc]
push edx
mov ecx, 0x47632c
mov edx, 0x80000002
call fcn.0044eccc
mov ebx, eax
test ebx, ebx
je 0x476163
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x38]
mov eax, 0x80000002
call fcn.00475260
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
mov eax, 0x47636c
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x34]
mov ecx, 1
mov al, 0x3d
call fcn.004737b0
push dword [ebp - 0x2c]
push 0x4763ac
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x4763bc
mov dword [ebp - 0x48], eax
lea edx, [ebp - 0x4c]
mov eax, ebx
call fcn.00409bb8
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0x50]
mov eax, ebx
call fcn.0044f67c
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x48]
mov ecx, 2
mov al, 0x34
call fcn.004737b0
push dword [ebp - 0x3c]
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00403df8
mov ecx, dword [ebp - 0x28]
mov dl, 1
mov eax, dword [0x408920]
call fcn.0040c440
call fcn.00403588
mov eax, esi
call fcn.00403efc
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 4
xor eax, eax
push ebp
push 0x47624b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x476241
mov eax, dword [ebp - 0x18]
dec eax
je 0x4761bb
sub eax, 2
je 0x4761e1
dec eax
je 0x476218
jmp 0x476241
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.0044ec34
test al, al
je 0x476241
mov eax, dword [ebp - 0x20]
call fcn.00409c1c
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 1
jmp 0x476241
cmp dword [ebp - 0x10], 1
jb 0x476241
cmp dword [ebp - 0x10], 4
ja 0x476241
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x47620f
call fcn.0040c3d8
mov dword [ebp - 0x1c], 3
jmp 0x476241
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x476241
call fcn.0040c3d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47625a
cmp dword [ebp - 0x14], 0
jge 0x476265
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
sete al
and al, byte [ebp - 1]
je 0x476274
inc dword [ebp - 0x14]
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
dec eax
je 0x476287
add eax, 0xfffffffe
sub eax, 2
jb 0x4762be
jmp 0x4762d7
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00409be8
mov eax, dword [ebp - 0x20]
call fcn.00403d38
inc eax
push eax
mov eax, dword [ebp - 0x20]
call fcn.00403efc
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
jmp 0x4762d7
push 4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476324
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.00403adc
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00403adc
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00403adc
lea eax, [ebp - 0x20]
call fcn.00403ab8
ret