Function at 0x475308
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0x475bb5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x49f394]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x475b80
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x30]
mov eax, dword [0x49f394]
call fcn.0040b6dc
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0xc]
mov edx, dword [0x49f3e4]
mov eax, dword [0x49f3dc]
call fcn.0047b7d4
test al, al
je 0x475b74
mov edx, dword [ebp - 0x30]
mov al, 0xb
call fcn.004803ec
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x20]
call fcn.0047b418
mov eax, 0x475bcc
call fcn.004585a0
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
call fcn.0047e4a8
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x38]
call fcn.00453dac
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
lea edx, [ebp - 0x4c]
mov ecx, 1
mov eax, 0x475bec
call fcn.004587ac
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 4]
call fcn.0047e4a8
cmp dword [ebp - 0x14], 0
je 0x47541e
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0xb
lea edx, [ebp - 0x58]
xor ecx, ecx
mov eax, 0x475c00
call fcn.004587ac
mov al, byte [0x49cc94]
mov byte [ebp - 0x29], al
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 4
je 0x475443
cmp byte [ebp - 0x29], 1
je 0x475443
mov eax, 0x475c18
call fcn.004585a0
mov byte [ebp - 0x29], 1
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 8
je 0x475473
cmp byte [0x49f446], 0
jne 0x47545f
mov eax, 0x475c3c
call fcn.00453b40
cmp byte [ebp - 0x29], 2
je 0x475473
mov eax, 0x475c84
call fcn.004585a0
mov byte [ebp - 0x29], 2
mov byte [ebp - 0x31], 0
xor edx, edx
push ebp
push 0x475a51
push dword fs:[edx]
mov dword fs:[edx], esp
xor ebx, ebx
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 0x40
je 0x4754cc
mov eax, dword [ebp - 0x28]
call fcn.00475154
test al, al
je 0x4754c2
mov eax, 0x475ca8
call fcn.004585a0
mov eax, dword [ebp - 0x28]
call fcn.00403738
mov ecx, eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov al, byte [ebp - 0x29]
call fcn.0042e350
mov bl, 1
jmp 0x4754cc
mov eax, 0x475cc4
call fcn.004585a0
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 0x40
je 0x4754f5
mov eax, dword [ebp - 0x3c]
cmp byte [eax + 0x3e], 0
jne 0x4754f5
test bl, bl
je 0x475a47
mov eax, 0x475cec
call fcn.004585a0
jmp 0x475a47
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 0x80
je 0x47556e
mov eax, dword [ebp - 0x3c]
cmp byte [eax + 0x3e], 0
jne 0x47556e
push 0
push 2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x28]
call fcn.00403738
mov ecx, eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov al, byte [ebp - 0x29]
call fcn.0042e2ac
test eax, eax
jne 0x47555f
mov eax, 0x475d14
call fcn.004585a0
mov eax, dword [ebp - 0x14]
call fcn.00403738
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, 0x475d30
call fcn.004585a0
jmp 0x475a47
mov eax, 0x475d58
call fcn.004585a0
jmp 0x475a47
mov eax, dword [ebp - 0x3c]
mov ax, word [eax + 0x3c]
cmp ax, 0xffff
je 0x475590
movsx eax, ax
push eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov al, byte [ebp - 0x29]
call fcn.00475178
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 2
jne 0x475633
mov eax, 0x475d88
call fcn.004585a0
push 0
push 0
push 0
push 3
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x28]
call fcn.00403738
mov ecx, eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov al, byte [ebp - 0x29]
call fcn.0042e274
mov ebx, eax
test ebx, ebx
jne 0x475617
cmp dword [ebp - 0x10], 1
jne 0x47569c
mov eax, dword [ebp - 0x3c]
cmp word [eax + 0x3c], 0xffff
je 0x47569c
mov eax, 0x475db0
call fcn.004585a0
mov eax, dword [ebp - 0x3c]
movsx eax, word [eax + 0x3c]
push eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov al, byte [ebp - 0x29]
call fcn.00475178
jmp 0x47569c
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 1
jne 0x47569c
push ebx
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov al, 1
call fcn.00470468
jmp 0x47569c
mov eax, dword [ebp - 0x3c]
cmp byte [eax + 0x3e], 0
je 0x47568d
mov eax, 0x475de8
call fcn.004585a0
push 0
push 3
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x28]
call fcn.00403738
mov ecx, eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov al, byte [ebp - 0x29]
call fcn.0042e2ac
mov ebx, eax
test ebx, ebx
je 0x47569c
cmp ebx, 2
je 0x47569c
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 1
jne 0x47569c
push ebx
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
mov al, 2
call fcn.00470468
jmp 0x47569c
mov eax, 0x475e04
call fcn.004585a0
mov ebx, 2
test ebx, ebx
jne 0x475a47
xor edx, edx
push ebp
push 0x475a40
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 0x80
je 0x4756d7
mov eax, 0x475d14
call fcn.004585a0
mov eax, dword [ebp - 0x14]
call fcn.00403738
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov eax, dword [ebp - 0x3c]
cmp byte [eax + 0x3e], 0
je 0x475a0a
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 1
je 0x475707
mov eax, dword [ebp - 0x14]
call fcn.00403738
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0042e1f4
test al, al
jne 0x475a0a
mov eax, 0x475e60
call fcn.004585a0
mov eax, dword [ebp - 0x3c]
mov al, byte [eax + 0x3e]
xor edx, edx
mov dl, al
cmp edx, 6
ja case.0x475724.0
jmp dword [edx*4 + 0x47572b]
mov ebx, 1
mov edx, eax
sub dl, 2
je 0x47575a
sub dl, 3
je 0x475761
jmp 0x475766
mov ebx, 2
jmp 0x475766
mov ebx, 7
cmp al, 5
je 0x475805
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 8]
mov eax, 0x475e88
call fcn.0040385c
test eax, eax
je 0x47579b
mov eax, dword [ebp - 0x14]
call fcn.00403738
mov edx, eax
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0042e1dc
test al, al
jne 0x4757a3
lea eax, [ebp - 0x1c]
call fcn.00403400
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 0x20
je 0x4757db
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push 0
mov eax, dword [ebp - 0x14]
call fcn.00403738
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x4757db
cmp dword [ebp - 0x20], 1
je 0x4757d8
cmp dword [ebp - 0x20], 2
jne 0x4757db
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
mov eax, 0x475e9c
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x54], eax
lea edx, [ebp - 0x58]
mov ecx, 1
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
call fcn.0047e4cc
jmp 0x475894
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 8]
mov eax, 0x475e88
call fcn.0040385c
test eax, eax
je 0x475832
mov eax, dword [ebp - 0x14]
call fcn.00403738
mov edx, eax
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0042e1e8
test al, al
jne 0x47583a
lea eax, [ebp - 0x1c]
call fcn.00403400
lea eax, [ebp - 0x18]
push eax
mov eax, 0x475e9c
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
mov eax, 0x475eac
mov dword [ebp - 0x44], eax
mov eax, 0x475ebc
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x4c]
mov ecx, 3
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
call fcn.0047e4cc
cmp dword [ebp - 0x18], 0
je 0x475894
mov eax, dword [ebp - 0x18]
call fcn.00403574
mov edx, dword [ebp - 0x18]
cmp byte [edx + eax - 1], 0
je 0x475894
lea eax, [ebp - 0x18]
mov edx, 0x475ebc
call fcn.0040357c
mov eax, dword [ebp - 0x18]
call fcn.00403574
inc eax
push eax
mov eax, dword [ebp - 0x18]
call fcn.00403738
push eax
push ebx
push 0
mov eax, dword [ebp - 0x14]
call fcn.00403738
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je case.0x475724.0
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 1
jne case.0x475724.0
push ebx
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
xor eax, eax
call fcn.00470468
jmp case.0x475724.0
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
call fcn.0047e4a8
mov eax, dword [ebp - 0x50]
call fcn.00407228
mov dword [ebp - 0x24], eax
push 4
lea eax, [ebp - 0x24]
push eax
push 4
push 0
mov eax, dword [ebp - 0x14]
call fcn.00403738
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je case.0x475724.0
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 1
jne case.0x475724.0
push ebx
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
xor eax, eax
call fcn.00470468
jmp case.0x475724.0
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
call fcn.0047e4a8
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 8]
call fcn.00431138
test al, al
jne 0x475972
mov eax, 0x475ec8
call fcn.00453b40
push 8
lea eax, [ebp - 8]
push eax
push 0xb
push 0
mov eax, dword [ebp - 0x14]
call fcn.00403738
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je case.0x475724.0
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 1
jne case.0x475724.0
push ebx
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
xor eax, eax
call fcn.00470468
jmp case.0x475724.0
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
call fcn.00403574
push eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
call fcn.00403738
push eax
push 3
push 0
mov eax, dword [ebp - 0x14]
call fcn.00403738
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je case.0x475724.0
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x40], 1
jne case.0x475724.0
push ebx
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x38]
xor eax, eax
call fcn.00470468
mov eax, 0x475ef0
call fcn.004585a0
jmp 0x475a29
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 0x80
je 0x475a1f
mov eax, 0x475d30
call fcn.004585a0
jmp 0x475a29
mov eax, 0x475f20
call fcn.004585a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475a47
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x475a83
cmp byte [ebp - 0x31], 0
jne 0x475473
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 8
je 0x475ac7
mov eax, dword [ebp - 0x28]
call fcn.00475154
test al, al
je 0x475ac7
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov cl, byte [ebp - 0x29]
mov dx, 0x86
call fcn.0045ac44
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 0x10
je 0x475b01
mov eax, dword [ebp - 0x28]
call fcn.00475154
test al, al
je 0x475b01
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov cl, byte [ebp - 0x29]
mov dx, 0x88
call fcn.0045ac44
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 2
je 0x475b35
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x58]
push eax
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov cl, byte [ebp - 0x29]
mov dx, 0x89
call fcn.0045ac44
mov eax, dword [ebp - 0x3c]
test byte [eax + 0x3f], 4
je 0x475b69
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x58]
push eax
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov cl, byte [ebp - 0x29]
mov dx, 0x87
call fcn.0045ac44
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x1c]
call fcn.0047b45c
inc dword [ebp - 0x30]
dec dword [ebp - 0x38]
jne 0x47534c
mov eax, 0x3e8
call fcn.0046fc04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475bbc
lea eax, [ebp - 0x50]
call fcn.00403400
lea eax, [ebp - 0x28]
call fcn.00403400
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00403420
ret