Function at 0x406340
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe30
mov eax, 0x480048
push ebx
push esi
push edi
mov edi, 0x47d1e2
lea ebx, [ebp - 0xc4]
call fcn.00472bac
mov word [ebx + 0x10], 0x14
xor edx, edx
lea ecx, [ebp - 4]
mov dword [ebp - 4], edx
push ecx
inc dword [ebx + 0x1c]
lea eax, [edi + 0xa32]
push eax
call fcn.00472970
pop ecx
mov edx, 5
mov ecx, eax
mov eax, dword [ebp + 0xc]
add eax, 4
call fcn.0047bb18
mov word [ebx + 0x10], 8
mov dl, 1
mov eax, dword [0x41d020]
call fcn.0041d120
mov esi, eax
mov edx, Ordinal_5
mov eax, esi
call fcn.0047b840
cmp byte [ebp + 0x10], 0
jne 0x40644e
mov word [ebx + 0x10], 0x20
xor ecx, ecx
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x14]
inc dword [ebx + 0x1c]
lea edx, [ebp - 4]
lea eax, [edi + 0xa44]
call fcn.0047bbfc
lea edx, [ebp - 0x14]
mov eax, esi
mov edx, dword [edx]
call fcn.0041da6c
test al, al
lea eax, [ebp - 0x14]
setne cl
and ecx, 1
mov edx, 2
push ecx
dec dword [ebx + 0x1c]
call fcn.0047b94c
pop ecx
test ecx, ecx
je 0x40644e
mov edi, esi
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x40642c
mov eax, dword [edi]
mov dword [ebp - 0x18], eax
mov word [ebx + 0x10], 0x38
mov edx, 3
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebx + 0x10], 0x2c
mov al, 1
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebx + 0x1c]
call fcn.0047b94c
pop eax
mov edx, dword [ebx]
mov dword fs:[0], edx
jmp 0x406d05
mov word [ebx + 0x10], 0x44
xor ecx, ecx
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x20]
inc dword [ebx + 0x1c]
lea edx, [ebp - 4]
lea eax, [edi + 0xa54]
call fcn.0047bbfc
lea edx, [ebp - 0x20]
mov eax, esi
mov edx, dword [edx]
call fcn.0041da6c
push eax
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0047b94c
pop ecx
test cl, cl
je 0x4064ca
mov word [ebx + 0x10], 0x50
xor eax, eax
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
inc dword [ebx + 0x1c]
lea edx, [ebp - 4]
lea eax, [edi + 0xa64]
call fcn.0047bbfc
lea edx, [ebp - 0x24]
mov eax, esi
mov edx, dword [edx]
call fcn.0041d34c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0047b94c
mov word [ebx + 0x10], 0x5c
xor ecx, ecx
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x28]
inc dword [ebx + 0x1c]
lea edx, [ebp - 4]
lea eax, [edi + 0xa74]
call fcn.0047bbfc
lea edx, [ebp - 0x28]
mov edx, dword [edx]
mov cl, 1
mov eax, esi
call fcn.0041d228
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0047b94c
mov word [ebx + 0x10], 0x68
lea edx, [edi + 0xa84]
lea eax, [ebp - 0x2c]
call fcn.0047b87c
inc dword [ebx + 0x1c]
mov edx, dword [eax]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
mov eax, esi
call fcn.0041d66c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.0047b94c
mov eax, esi
call fcn.0041d190
mov word [ebx + 0x10], 0x74
xor edx, edx
xor ecx, ecx
mov dword [ebp - 8], edx
xor eax, eax
inc dword [ebx + 0x1c]
mov word [ebx + 0x10], 8
mov word [ebx + 0x10], 0x80
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x30]
inc dword [ebx + 0x1c]
mov word [ebx + 0x10], 8
mov word [ebx + 0x10], 0x8c
mov dword [ebp - 0x30], eax
lea eax, [edi + 0xa8c]
inc dword [ebx + 0x1c]
mov edx, dword [ebp + 0xc]
add edx, 4
call fcn.0047bbfc
lea edx, [ebp - 0x30]
lea eax, [ebp - 8]
call fcn.0047b97c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.0047b94c
mov word [ebx + 0x10], 0x98
xor ecx, ecx
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x34]
inc dword [ebx + 0x1c]
lea edx, [ebp - 4]
lea eax, [edi + 0xaab]
call fcn.0047bbfc
lea eax, [ebp - 0x34]
push eax
lea edx, [edi + 0xabb]
lea eax, [ebp - 0x38]
call fcn.0047b87c
inc dword [ebx + 0x1c]
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x3c]
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x38]
pop eax
call fcn.0047b990
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0xc]
call fcn.0047b97c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.0047b94c
push 1
cmp dword [ebp - 0xc], 0
je 0x406639
mov ecx, dword [ebp - 0xc]
jmp 0x40663f
lea ecx, [edi + 0xac5]
push ecx
cmp dword [ebp - 8], 0
je 0x40664b
mov eax, dword [ebp - 8]
jmp 0x406651
lea eax, [edi + 0xac4]
push eax
push Ordinal_5
push Ordinal_5
call fcn.0040bbfc
mov word [ebx + 0x10], 0xa4
xor edx, edx
add esp, 0x14
mov dword [ebp - 0x40], edx
lea ecx, [ebp - 0x40]
inc dword [ebx + 0x1c]
lea eax, [edi + 0xac6]
mov edx, dword [ebp + 0xc]
add edx, 8
call fcn.0047bbfc
lea edx, [ebp - 0x40]
lea eax, [ebp - 8]
call fcn.0047b97c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.0047b94c
mov word [ebx + 0x10], 0xb0
lea edx, [edi + 0xaee]
lea eax, [ebp - 0x44]
call fcn.0047b87c
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 8]
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x48]
call fcn.0047b990
lea edx, [ebp - 0x48]
mov edx, dword [edx]
xor ecx, ecx
mov eax, esi
call fcn.0041d228
push eax
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0047b94c
pop ecx
test cl, cl
je 0x406855
push 0x100
lea edx, [edi + 0xaf7]
mov word [ebx + 0x10], 0xbc
lea eax, [ebp - 0x4c]
call fcn.0047b87c
inc dword [ebx + 0x1c]
mov edx, dword [eax]
lea ecx, [ebp - 0x1d0]
mov eax, esi
call fcn.0041d778
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.0047b94c
mov eax, esi
call fcn.0041d190
lea eax, [ebp - 0x1d0]
lea edx, [edi + 0xb01]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x406855
test cl, cl
je 0x406778
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x406855
add eax, 2
add edx, 2
test cl, cl
jne 0x406754
jne 0x406855
push 0x10
lea eax, [edi + 0xb08]
push eax
lea edx, [ebp - 0x1d0]
push edx
call fcn.00472820
mov dword [ebp - 0xcc], 0x10
mov word [ebx + 0x10], 8
add esp, 0xc
lea ecx, [ebp - 0xc8]
lea edx, [edi + 0xb19]
lea eax, [ebp - 0x50]
push ecx
mov word [ebx + 0x10], 0xc8
call fcn.0047b87c
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x54], eax
lea eax, [ebp - 8]
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x54]
call fcn.0047b990
cmp dword [ebp - 0x54], 0
je 0x4067e5
mov edx, dword [ebp - 0x54]
jmp 0x4067eb
lea edx, [edi + 0xb22]
push edx
push Ordinal_5
call sub.ADVAPI32.DLL_RegCreateKeyA
test eax, eax
mov edx, 2
sete al
and eax, 1
push eax
lea eax, [ebp - 0x54]
dec dword [ebx + 0x1c]
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.0047b94c
pop ecx
test cl, cl
je 0x406855
mov eax, dword [ebp - 0xcc]
lea edx, [ebp - 0x1d0]
push eax
push edx
push 7
lea ecx, [edi + 0xb23]
push 0
push ecx
mov eax, dword [ebp - 0xc8]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
mov edx, dword [ebp - 0xc8]
push edx
call sub.ADVAPI32.DLL_RegCloseKey
mov word [ebx + 0x10], 0xd4
xor ecx, ecx
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x58]
inc dword [ebx + 0x1c]
lea edx, [ebp - 4]
lea eax, [edi + 0xb2d]
call fcn.0047bbfc
lea eax, [ebp - 0x58]
push eax
lea edx, [edi + 0xb3d]
lea eax, [ebp - 0x5c]
call fcn.0047b87c
inc dword [ebx + 0x1c]
xor ecx, ecx
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x60]
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x5c]
pop eax
call fcn.0047b990
lea edx, [ebp - 0x60]
lea eax, [ebp - 0xc]
call fcn.0047b97c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.0047b94c
push 1
cmp dword [ebp - 0xc], 0
je 0x4068e5
mov ecx, dword [ebp - 0xc]
jmp 0x4068eb
lea ecx, [edi + 0xb46]
push ecx
cmp dword [ebp - 8], 0
je 0x4068f7
mov eax, dword [ebp - 8]
jmp 0x4068fd
lea eax, [edi + 0xb45]
push eax
push Ordinal_5
push Ordinal_5
call fcn.0040bbfc
mov word [ebx + 0x10], 0xe0
xor edx, edx
add esp, 0x14
mov dword [ebp - 0x64], edx
lea ecx, [ebp - 0x64]
inc dword [ebx + 0x1c]
lea eax, [edi + 0xb47]
mov edx, dword [ebp + 0xc]
add edx, 0x10
call fcn.0047bbfc
lea edx, [ebp - 0x64]
lea eax, [ebp - 8]
call fcn.0047b97c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.0047b94c
mov word [ebx + 0x10], 0xec
xor ecx, ecx
mov dword [ebp - 0x68], ecx
lea ecx, [ebp - 0x68]
inc dword [ebx + 0x1c]
lea edx, [ebp - 4]
lea eax, [edi + 0xb6a]
call fcn.0047bbfc
lea eax, [ebp - 0x68]
push eax
lea edx, [edi + 0xb7a]
lea eax, [ebp - 0x6c]
call fcn.0047b87c
inc dword [ebx + 0x1c]
xor ecx, ecx
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0x70]
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x6c]
pop eax
call fcn.0047b990
lea edx, [ebp - 0x70]
lea eax, [ebp - 0xc]
call fcn.0047b97c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x70]
mov edx, 2
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.0047b94c
push 1
cmp dword [ebp - 0xc], 0
je 0x4069dd
mov ecx, dword [ebp - 0xc]
jmp 0x4069e3
lea ecx, [edi + 0xb84]
push ecx
cmp dword [ebp - 8], 0
je 0x4069ef
mov eax, dword [ebp - 8]
jmp 0x4069f5
lea eax, [edi + 0xb83]
push eax
push Ordinal_5
push Ordinal_5
call fcn.0040bbfc
mov word [ebx + 0x10], 0xf8
xor edx, edx
add esp, 0x14
mov dword [ebp - 0x74], edx
lea edx, [ebp - 4]
inc dword [ebx + 0x1c]
lea ecx, [ebp - 0x74]
lea eax, [edi + 0xb85]
call fcn.0047bbfc
lea ecx, [ebp - 0x74]
push ecx
lea edx, [edi + 0xb95]
lea eax, [ebp - 0x78]
call fcn.0047b87c
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x7c], eax
lea edx, [ebp - 0x78]
inc dword [ebx + 0x1c]
lea ecx, [ebp - 0x7c]
pop eax
call fcn.0047b990
lea edx, [ebp - 0x7c]
mov edx, dword [edx]
xor ecx, ecx
mov eax, esi
call fcn.0041d228
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x78]
mov edx, 2
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.0047b94c
mov word [ebx + 0x10], 0x104
lea edx, [edi + 0xb9e]
lea eax, [ebp - 0x80]
call fcn.0047b87c
inc dword [ebx + 0x1c]
mov edx, dword [eax]
xor ecx, ecx
mov eax, esi
call fcn.0041d710
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x80]
mov edx, 2
call fcn.0047b94c
mov eax, esi
call fcn.0041d190
mov word [ebx + 0x10], 0x110
xor edx, edx
mov dword [ebp - 0x84], edx
lea ecx, [ebp - 0x84]
inc dword [ebx + 0x1c]
lea edx, [ebp - 4]
lea eax, [edi + 0xba4]
call fcn.0047bbfc
lea ecx, [ebp - 0x84]
push ecx
lea edx, [edi + 0xbb4]
lea eax, [ebp - 0x88]
call fcn.0047b87c
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x8c], eax
lea edx, [ebp - 0x88]
inc dword [ebx + 0x1c]
lea ecx, [ebp - 0x8c]
pop eax
call fcn.0047b990
lea edx, [ebp - 0x8c]
mov edx, dword [edx]
xor ecx, ecx
mov eax, esi
call fcn.0041d228
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x8c]
mov edx, 2
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x88]
mov edx, 2
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x84]
mov edx, 2
call fcn.0047b94c
mov word [ebx + 0x10], 0x11c
lea edx, [edi + 0xbbd]
lea eax, [ebp - 0x90]
call fcn.0047b87c
inc dword [ebx + 0x1c]
lea ecx, [ebp - 0x10]
mov edx, dword [eax]
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, esi
inc dword [ebx + 0x1c]
call fcn.0041d698
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x90]
mov edx, 2
call fcn.0047b94c
mov word [ebx + 0x10], 8
cmp dword [ebp - 0x10], 0
je 0x406bc3
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx - 4]
jmp 0x406bc5
xor eax, eax
mov dword [ebp - 0xd0], eax
xor edx, edx
mov word [ebx + 0x10], 0x128
mov dword [ebp - 0x94], edx
lea ecx, [ebp - 0x94]
push ecx
mov edx, 1
inc dword [ebx + 0x1c]
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0xd0]
add ecx, 0xfffffffc
call fcn.0047bb18
lea eax, [ebp - 0x94]
push eax
lea edx, [edi + 0xbc4]
lea eax, [ebp - 0x98]
call fcn.0047b87c
inc dword [ebx + 0x1c]
xor ecx, ecx
mov dword [ebp - 0x9c], ecx
lea ecx, [ebp - 0x9c]
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x98]
pop eax
call fcn.0047b990
lea edx, [ebp - 0x9c]
lea eax, [ebp - 0x10]
call fcn.0047b97c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x9c]
mov edx, 2
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x98]
mov edx, 2
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x94]
mov edx, 2
call fcn.0047b94c
mov word [ebx + 0x10], 0x134
lea edx, [edi + 0xbc9]
lea eax, [ebp - 0xa0]
call fcn.0047b87c
inc dword [ebx + 0x1c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x10]
mov eax, esi
call fcn.0041d66c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0xa0]
mov edx, 2
call fcn.0047b94c
mov eax, esi
call fcn.0041d190
mov al, 1
mov edx, 2
push eax
lea eax, [ebp - 0x10]
dec dword [ebx + 0x1c]
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0047b94c
dec dword [ebx + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0047b94c
pop eax
mov edx, dword [ebx]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret