Function at 0x40645c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe30
mov eax, 0x4810bc
push ebx
push esi
push edi
mov edi, 0x47e1e2
lea ebx, [ebp - 0xc4]
call fcn.004734f8
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 + 0xa85]
push eax
call fcn.004732bc
pop ecx
mov edx, 5
mov ecx, eax
mov eax, dword [ebp + 0xc]
add eax, 4
call fcn.0047c464
mov word [ebx + 0x10], 8
mov dl, 1
mov eax, dword [0x41d964]
call fcn.0041da64
mov esi, eax
mov edx, Ordinal_5
mov eax, esi
call fcn.0047c18c
cmp byte [ebp + 0x10], 0
jne 0x40656a
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 + 0xa97]
call fcn.0047c548
lea edx, [ebp - 0x14]
mov eax, esi
mov edx, dword [edx]
call fcn.0041e3a0
test al, al
lea eax, [ebp - 0x14]
setne cl
and ecx, 1
mov edx, 2
push ecx
dec dword [ebx + 0x1c]
call fcn.0047c298
pop ecx
test ecx, ecx
je 0x40656a
mov edi, esi
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x406548
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.0047c298
pop eax
mov edx, dword [ebx]
mov dword fs:[0], edx
jmp 0x406e21
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 + 0xaa7]
call fcn.0047c548
lea edx, [ebp - 0x20]
mov eax, esi
mov edx, dword [edx]
call fcn.0041e3a0
push eax
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0047c298
pop ecx
test cl, cl
je 0x4065e6
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 + 0xab7]
call fcn.0047c548
lea edx, [ebp - 0x24]
mov eax, esi
mov edx, dword [edx]
call fcn.0041dc90
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0047c298
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 + 0xac7]
call fcn.0047c548
lea edx, [ebp - 0x28]
mov edx, dword [edx]
mov cl, 1
mov eax, esi
call fcn.0041db6c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0047c298
mov word [ebx + 0x10], 0x68
lea edx, [edi + 0xad7]
lea eax, [ebp - 0x2c]
call fcn.0047c1c8
inc dword [ebx + 0x1c]
mov edx, dword [eax]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
mov eax, esi
call fcn.0041dfb0
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.0047c298
mov eax, esi
call fcn.0041dad4
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 + 0xadf]
inc dword [ebx + 0x1c]
mov edx, dword [ebp + 0xc]
add edx, 4
call fcn.0047c548
lea edx, [ebp - 0x30]
lea eax, [ebp - 8]
call fcn.0047c2c8
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.0047c298
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 + 0xafe]
call fcn.0047c548
lea eax, [ebp - 0x34]
push eax
lea edx, [edi + 0xb0e]
lea eax, [ebp - 0x38]
call fcn.0047c1c8
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.0047c2dc
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0xc]
call fcn.0047c2c8
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.0047c298
push 1
cmp dword [ebp - 0xc], 0
je 0x406755
mov ecx, dword [ebp - 0xc]
jmp 0x40675b
lea ecx, [edi + 0xb18]
push ecx
cmp dword [ebp - 8], 0
je 0x406767
mov eax, dword [ebp - 8]
jmp 0x40676d
lea eax, [edi + 0xb17]
push eax
push Ordinal_5
push Ordinal_5
call fcn.0040c274
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 + 0xb19]
mov edx, dword [ebp + 0xc]
add edx, 8
call fcn.0047c548
lea edx, [ebp - 0x40]
lea eax, [ebp - 8]
call fcn.0047c2c8
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.0047c298
mov word [ebx + 0x10], 0xb0
lea edx, [edi + 0xb41]
lea eax, [ebp - 0x44]
call fcn.0047c1c8
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.0047c2dc
lea edx, [ebp - 0x48]
mov edx, dword [edx]
xor ecx, ecx
mov eax, esi
call fcn.0041db6c
push eax
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0047c298
pop ecx
test cl, cl
je 0x406971
push 0x100
lea edx, [edi + 0xb4a]
mov word [ebx + 0x10], 0xbc
lea eax, [ebp - 0x4c]
call fcn.0047c1c8
inc dword [ebx + 0x1c]
mov edx, dword [eax]
lea ecx, [ebp - 0x1d0]
mov eax, esi
call fcn.0041e0bc
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.0047c298
mov eax, esi
call fcn.0041dad4
lea eax, [ebp - 0x1d0]
lea edx, [edi + 0xb54]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x406971
test cl, cl
je 0x406894
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x406971
add eax, 2
add edx, 2
test cl, cl
jne 0x406870
jne 0x406971
push 0x10
lea eax, [edi + 0xb5b]
push eax
lea edx, [ebp - 0x1d0]
push edx
call fcn.0047316c
mov dword [ebp - 0xcc], 0x10
mov word [ebx + 0x10], 8
add esp, 0xc
lea ecx, [ebp - 0xc8]
lea edx, [edi + 0xb6c]
lea eax, [ebp - 0x50]
push ecx
mov word [ebx + 0x10], 0xc8
call fcn.0047c1c8
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.0047c2dc
cmp dword [ebp - 0x54], 0
je 0x406901
mov edx, dword [ebp - 0x54]
jmp 0x406907
lea edx, [edi + 0xb75]
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.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.0047c298
pop ecx
test cl, cl
je 0x406971
mov eax, dword [ebp - 0xcc]
lea edx, [ebp - 0x1d0]
push eax
push edx
push 7
lea ecx, [edi + 0xb76]
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 + 0xb80]
call fcn.0047c548
lea eax, [ebp - 0x58]
push eax
lea edx, [edi + 0xb90]
lea eax, [ebp - 0x5c]
call fcn.0047c1c8
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.0047c2dc
lea edx, [ebp - 0x60]
lea eax, [ebp - 0xc]
call fcn.0047c2c8
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.0047c298
push 1
cmp dword [ebp - 0xc], 0
je 0x406a01
mov ecx, dword [ebp - 0xc]
jmp 0x406a07
lea ecx, [edi + 0xb99]
push ecx
cmp dword [ebp - 8], 0
je 0x406a13
mov eax, dword [ebp - 8]
jmp 0x406a19
lea eax, [edi + 0xb98]
push eax
push Ordinal_5
push Ordinal_5
call fcn.0040c274
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 + 0xb9a]
mov edx, dword [ebp + 0xc]
add edx, 0x10
call fcn.0047c548
lea edx, [ebp - 0x64]
lea eax, [ebp - 8]
call fcn.0047c2c8
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.0047c298
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 + 0xbbd]
call fcn.0047c548
lea eax, [ebp - 0x68]
push eax
lea edx, [edi + 0xbcd]
lea eax, [ebp - 0x6c]
call fcn.0047c1c8
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.0047c2dc
lea edx, [ebp - 0x70]
lea eax, [ebp - 0xc]
call fcn.0047c2c8
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x70]
mov edx, 2
call fcn.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.0047c298
push 1
cmp dword [ebp - 0xc], 0
je 0x406af9
mov ecx, dword [ebp - 0xc]
jmp 0x406aff
lea ecx, [edi + 0xbd7]
push ecx
cmp dword [ebp - 8], 0
je 0x406b0b
mov eax, dword [ebp - 8]
jmp 0x406b11
lea eax, [edi + 0xbd6]
push eax
push Ordinal_5
push Ordinal_5
call fcn.0040c274
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 + 0xbd8]
call fcn.0047c548
lea ecx, [ebp - 0x74]
push ecx
lea edx, [edi + 0xbe8]
lea eax, [ebp - 0x78]
call fcn.0047c1c8
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.0047c2dc
lea edx, [ebp - 0x7c]
mov edx, dword [edx]
xor ecx, ecx
mov eax, esi
call fcn.0041db6c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x78]
mov edx, 2
call fcn.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.0047c298
mov word [ebx + 0x10], 0x104
lea edx, [edi + 0xbf1]
lea eax, [ebp - 0x80]
call fcn.0047c1c8
inc dword [ebx + 0x1c]
mov edx, dword [eax]
xor ecx, ecx
mov eax, esi
call fcn.0041e054
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x80]
mov edx, 2
call fcn.0047c298
mov eax, esi
call fcn.0041dad4
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 + 0xbf7]
call fcn.0047c548
lea ecx, [ebp - 0x84]
push ecx
lea edx, [edi + 0xc07]
lea eax, [ebp - 0x88]
call fcn.0047c1c8
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.0047c2dc
lea edx, [ebp - 0x8c]
mov edx, dword [edx]
xor ecx, ecx
mov eax, esi
call fcn.0041db6c
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x8c]
mov edx, 2
call fcn.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x88]
mov edx, 2
call fcn.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x84]
mov edx, 2
call fcn.0047c298
mov word [ebx + 0x10], 0x11c
lea edx, [edi + 0xc10]
lea eax, [ebp - 0x90]
call fcn.0047c1c8
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.0041dfdc
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x90]
mov edx, 2
call fcn.0047c298
mov word [ebx + 0x10], 8
cmp dword [ebp - 0x10], 0
je 0x406cdf
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx - 4]
jmp 0x406ce1
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.0047c464
lea eax, [ebp - 0x94]
push eax
lea edx, [edi + 0xc17]
lea eax, [ebp - 0x98]
call fcn.0047c1c8
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.0047c2dc
lea edx, [ebp - 0x9c]
lea eax, [ebp - 0x10]
call fcn.0047c2c8
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x9c]
mov edx, 2
call fcn.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x98]
mov edx, 2
call fcn.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x94]
mov edx, 2
call fcn.0047c298
mov word [ebx + 0x10], 0x134
lea edx, [edi + 0xc1c]
lea eax, [ebp - 0xa0]
call fcn.0047c1c8
inc dword [ebx + 0x1c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x10]
mov eax, esi
call fcn.0041dfb0
dec dword [ebx + 0x1c]
lea eax, [ebp - 0xa0]
mov edx, 2
call fcn.0047c298
mov eax, esi
call fcn.0041dad4
mov al, 1
mov edx, 2
push eax
lea eax, [ebp - 0x10]
dec dword [ebx + 0x1c]
call fcn.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0047c298
dec dword [ebx + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0047c298
pop eax
mov edx, dword [ebx]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret