Function at 0x416580
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46df8c
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
push ebx
push esi
push edi
mov eax, dword [0x495580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor bl, bl
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x60], 0x484fbc
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.00436896
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.00436896
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 2
call fcn.00436896
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 3
call fcn.00436896
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 4
call fcn.00436896
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 5
call fcn.00436896
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 6
call fcn.00436896
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x60]
mov ecx, esi
call fcn.00416010
add esp, 4
test al, al
je 0x416800
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push 0
push dword [0x58ec7c]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x416800
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x74]
push eax
call fcn.00413f70
mov bl, al
add esp, 4
test bl, bl
je 0x416800
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0xc4]
call fcn.004135e0
mov bl, al
mov byte [ebp - 0xd], bl
test bl, bl
je 0x416800
lea eax, [ebp - 0xb0]
push eax
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x30]
call fcn.00415640
lea eax, [ebp - 0x9c]
push eax
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x74]
call fcn.00415640
lea eax, [ebp - 0xd8]
push eax
lea edx, [ebp - 0xc4]
lea ecx, [ebp - 0x30]
call fcn.00415640
lea eax, [ebp - 0x88]
push eax
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0xc4]
call fcn.00415640
xor esi, esi
add esp, 0x10
cmp dword [ebp - 0x58], esi
jle 0x416773
nop
mov eax, dword [ebp - 0x5c]
movzx edi, word [eax + esi*2]
test esi, esi
js 0x4169e0
cmp esi, dword [ebp - 0x28]
jge 0x4169e0
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x18]
push ecx
push dword [eax + esi*4]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4167fd
mov eax, dword [ebp - 0x1c]
mov edx, edi
mov ecx, dword [ebp - 0x18]
mov eax, dword [eax + 4]
push dword [eax + esi*8 + 4]
call fcn.004158b0
add esp, 4
mov bl, al
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x4167fd
inc esi
cmp esi, dword [ebp - 0x58]
jl 0x416710
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x416879
mov ecx, eax
xor esi, esi
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jle 0x416879
or ebx, 0xffffffff
test esi, esi
js 0x4169e0
cmp esi, eax
jge 0x4169e0
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + esi*4]
sub eax, 0x10
push eax
call fcn.00403700
mov edi, eax
add esp, 4
lea ecx, [edi + 0x10]
push ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4167eb
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4167dc
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, dword [ebp - 0x1c]
jge 0x416879
mov eax, dword [ebp - 0x80]
jmp 0x416790
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4167fd
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov bl, byte [ebp - 0xd]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41680e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x88]
call fcn.004368ad
lea ecx, [ebp - 0xd8]
call fcn.004368ad
lea ecx, [ebp - 0x9c]
call fcn.004368ad
lea ecx, [ebp - 0xb0]
call fcn.004368ad
lea ecx, [ebp - 0xc4]
call fcn.004368ad
lea ecx, [ebp - 0x74]
call fcn.004368ad
lea ecx, [ebp - 0x30]
call fcn.004368ad
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x416865
push eax
call fcn.00437038
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0xa8], 0
je 0x4168bb
lea ecx, [ebp - 0x44]
call fcn.00436896
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 8
push eax
lea edx, [ebp - 0xb0]
lea ecx, [ebp - 0x74]
call fcn.004156b0
add esp, 4
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x74]
push eax
call fcn.00436a23
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 7
call fcn.004368ad
cmp dword [ebp - 0x94], 0
je 0x4168fd
lea ecx, [ebp - 0x44]
call fcn.00436896
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 9
push eax
lea edx, [ebp - 0x9c]
lea ecx, [ebp - 0x74]
call fcn.00415640
add esp, 4
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x74]
push eax
call fcn.00436a23
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 7
call fcn.004368ad
mov ebx, dword [ebp - 0x28]
xor edx, edx
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov dword [ebp - 0x4c], eax
test ebx, ebx
jle 0x416937
mov esi, dword [ebp - 0x2c]
test ecx, ecx
js 0x4169e0
cmp ecx, ebx
jge 0x4169e0
mov eax, dword [esi + ecx*4]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x4169cd
inc edx
inc ecx
add edx, eax
cmp ecx, ebx
jl 0x416911
lea esi, [edx*2 + 2]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x48], esi
call fcn.0043a4be
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xa
call fcn.0043a61f
mov eax, dword [ebp - 0x40]
xor edi, edi
mov dword [ebp - 0x1c], eax
mov ecx, eax
test ebx, ebx
jle 0x4169a9
mov dword [ebp - 0x18], eax
nop dword [eax]
test edi, edi
js 0x4169e0
cmp edi, dword [ebp - 0x28]
jge 0x4169e0
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + edi*4]
mov esi, dword [eax - 0xc]
push esi
push eax
push ecx
call fcn.00456495
mov eax, dword [ebp - 0x18]
xor ecx, ecx
lea eax, [eax + esi*2]
inc edi
mov word [eax], cx
add esp, 0xc
lea ecx, [eax + 2]
mov dword [ebp - 0x18], ecx
cmp edi, ebx
jl 0x416970
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x48]
push esi
push eax
push 7
xor edx, edx
push edx
push str.Languages
push dword [ebp - 0x4c]
mov word [ecx], dx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x44]
test eax, eax
je 0x4169d4
call fcn.0043a4d5
xor bl, bl
jmp 0x416800
call fcn.0043a4d5
mov bl, 1
jmp 0x416800
call fcn.00436600
int3