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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46dc47
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
push ebx
push esi
push edi
mov eax, dword [0x495574]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
xor bh, bh
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x5c], 0x485d5c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00438075
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.00438075
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 2
call fcn.00438075
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 3
call fcn.00438075
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 4
call fcn.00438075
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 5
call fcn.00438075
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 6
call fcn.00438075
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x5c]
mov ecx, esi
call fcn.00418140
add esp, 4
test al, al
je 0x418d88
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push dword [0x58ea2c]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x418d88
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x70]
push eax
call fcn.004158c0
mov bh, al
add esp, 4
test bh, bh
je 0x418d88
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0xc0]
call fcn.00414de0
mov bh, al
test bh, bh
je 0x418d88
lea eax, [ebp - 0xac]
push eax
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x2c]
call fcn.00417570
lea eax, [ebp - 0x98]
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x70]
call fcn.00417570
lea eax, [ebp - 0xd4]
push eax
lea edx, [ebp - 0xc0]
lea ecx, [ebp - 0x2c]
call fcn.00417570
lea eax, [ebp - 0x84]
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0xc0]
call fcn.00417570
xor esi, esi
add esp, 0x10
cmp dword [ebp - 0x54], esi
jle 0x418b43
nop dword [eax]
mov eax, dword [ebp - 0x58]
movzx edi, word [eax + esi*2]
test esi, esi
js 0x418e01
cmp esi, dword [ebp - 0x24]
jge 0x418e01
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x14]
push ecx
push dword [eax + esi*4]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x418d88
mov eax, dword [ebp - 0x18]
mov edx, edi
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + 4]
push dword [eax + esi*8 + 4]
call fcn.00417a50
add esp, 4
mov bl, al
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x418d88
inc esi
cmp esi, dword [ebp - 0x54]
jl 0x418ae0
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x418c26
mov ecx, eax
xor edi, edi
mov dword [ebp - 0x18], ecx
test ecx, ecx
jle 0x418c26
nop dword [eax]
test edi, edi
js 0x418e01
cmp edi, eax
jge 0x418e01
mov eax, dword [ebp - 0x80]
mov eax, dword [eax + edi*4]
sub eax, 0x10
push eax
call fcn.00403cc0
add esp, 4
lea esi, [eax + 0x10]
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add esi, 0xfffffff0
test eax, eax
jne 0x418bdf
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x418bd4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x471758
jne 0x418e06
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x418e06
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
inc edi
cmp edi, dword [ebp - 0x18]
jge 0x418c26
mov eax, dword [ebp - 0x7c]
jmp 0x418b60
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x418d88
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x471758
jne 0x418e0d
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x418e0d
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x418d88
cmp dword [ebp - 0xa4], 0
je 0x418c68
lea ecx, [ebp - 0x40]
call fcn.00438075
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 8
push eax
lea edx, [ebp - 0xac]
lea ecx, [ebp - 0x70]
call fcn.004175e0
add esp, 4
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x70]
push eax
call fcn.00438207
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.0043808c
cmp dword [ebp - 0x90], 0
je 0x418caa
lea ecx, [ebp - 0x40]
call fcn.00438075
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 9
push eax
lea edx, [ebp - 0x98]
lea ecx, [ebp - 0x70]
call fcn.00417570
add esp, 4
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x70]
push eax
call fcn.00438207
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.0043808c
mov ebx, dword [ebp - 0x24]
xor edx, edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov dword [ebp - 0x48], eax
test ebx, ebx
jle 0x418ce6
mov esi, dword [ebp - 0x28]
nop
test ecx, ecx
js 0x418e01
cmp ecx, ebx
jge 0x418e01
mov eax, dword [esi + ecx*4]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x418d7d
inc edx
inc ecx
add edx, eax
cmp ecx, ebx
jl 0x418cc0
lea esi, [edx*2 + 2]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], esi
call fcn.0043bb76
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
call fcn.0043bcf7
mov eax, dword [ebp - 0x3c]
xor edi, edi
mov dword [ebp - 0x18], eax
mov ecx, eax
test ebx, ebx
jle 0x418d59
mov dword [ebp - 0x14], eax
test edi, edi
js 0x418e01
cmp edi, dword [ebp - 0x24]
jge 0x418e01
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + edi*4]
mov esi, dword [eax - 0xc]
push esi
push eax
push ecx
call fcn.00455f0d
mov eax, dword [ebp - 0x14]
xor ecx, ecx
lea eax, [eax + esi*2]
inc edi
mov word [eax], cx
add esp, 0xc
lea ecx, [eax + 2]
mov dword [ebp - 0x14], ecx
cmp edi, ebx
jl 0x418d18
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x44]
push esi
push eax
push 7
xor edx, edx
push edx
push str.Languages
push dword [ebp - 0x48]
mov word [ecx], dx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x40]
test eax, eax
je 0x418d81
call fcn.0043bb8d
xor bh, bh
jmp 0x418d88
call fcn.0043bb8d
mov bh, 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x418d96
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x84]
call fcn.0043808c
lea ecx, [ebp - 0xd4]
call fcn.0043808c
lea ecx, [ebp - 0x98]
call fcn.0043808c
lea ecx, [ebp - 0xac]
call fcn.0043808c
lea ecx, [ebp - 0xc0]
call fcn.0043808c
lea ecx, [ebp - 0x70]
call fcn.0043808c
lea ecx, [ebp - 0x2c]
call fcn.0043808c
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x418ded
push eax
call fcn.00436734
add esp, 4
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00437e01
call edx
jmp 0x418bd4
call edx
jmp 0x418d88