Function at 0x40be80
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4884fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x39c
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x29e]
push ecx
mov word [ebp - 0x2a0], ax
call fcn.00420c90
add esp, 0xc
mov ecx, 0x4b2db0
mov byte [ebp - 0xd], 0
mov esi, 0x4a094c
call fcn.0043133d
mov cx, word [eax]
or ebx, 0xffffffff
cmp cx, word [esi]
jne 0x40befb
test cx, cx
je 0x40bef7
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x40befb
add eax, 4
add esi, 4
test cx, cx
jne 0x40bed2
xor eax, eax
jmp 0x40beff
sbb eax, eax
sbb eax, ebx
test eax, eax
jne 0x40bfbe
jmp 0x40bf10
movzx ecx, word [eax + 0x4a1564]
mov word [ebp + eax - 0x2a0], cx
add eax, 2
test cx, cx
jne 0x40bf10
push str.x64
lea edx, [ebp - 0x98]
push edx
mov ecx, 0x4b36b8
call fcn.00431679
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0043133d
mov edx, eax
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bf50
lea edi, [ebp - 0x2a0]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40bf66
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x98]
mov dword [ebp - 4], ebx
call fcn.004311e9
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x2a0]
push ecx
push reloc.gdiplus.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40c06f
mov edx, dword [ebp - 0x14]
push edx
jmp 0x40c065
xor eax, eax
movzx ecx, word [eax + 0x4a1564]
mov word [ebp + eax - 0x2a0], cx
add eax, 2
test cx, cx
jne 0x40bfc0
push str.x86
lea eax, [ebp - 0x98]
push eax
mov ecx, 0x4b36b8
call fcn.00431679
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.0043133d
mov edx, eax
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c000
lea edi, [ebp - 0x2a0]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40c016
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x98]
mov dword [ebp - 4], ebx
call fcn.004311e9
lea ecx, [ebp - 0x14]
push ecx
push 0xf003f
push 0
lea edx, [ebp - 0x2a0]
push edx
push reloc.gdiplus.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40c06f
mov eax, dword [ebp - 0x14]
push eax
mov byte [ebp - 0xd], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x208
lea ecx, [ebp - 0x2a0]
push 0
push ecx
call fcn.00420c90
add esp, 0xc
xor eax, eax
jmp 0x40c090
movzx ecx, word [eax + 0x4a1564]
mov word [ebp + eax - 0x2a0], cx
add eax, 2
test cx, cx
jne 0x40c090
push 0x4a1578
lea edx, [ebp - 0x324]
push edx
mov ecx, 0x4b36b8
call fcn.00431679
push 0x4b2db0
lea ecx, [ebp - 0x3a8]
push ecx
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.00431650
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0043133d
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c0e4
lea edi, [ebp - 0x2a0]
sub eax, edx
add edi, 0xfffffffe
lea ebx, [ebx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40c100
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x3a8]
mov byte [ebp - 4], 2
call fcn.004311e9
lea ecx, [ebp - 0x324]
mov dword [ebp - 4], ebx
call fcn.004311e9
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea edx, [ebp - 0x2a0]
push edx
push reloc.gdiplus.dll_Ordinal_1
call ebx
cmp byte [ebp - 0xd], 0
je 0x40c1da
push 0x208
lea eax, [ebp - 0x2a0]
push 0
push eax
call fcn.00420c90
add esp, 0xc
xor eax, eax
nop
movzx ecx, word [eax + 0x4a1564]
mov word [ebp + eax - 0x2a0], cx
add eax, 2
test cx, cx
jne 0x40c170
mov ecx, 0x4b36b8
call fcn.0043133d
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c193
lea edi, [ebp - 0x2a0]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40c1b0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x2a0]
push ecx
push reloc.gdiplus.dll_Ordinal_1
call ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret