Function at 0x421655
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x38
mov eax, 0x5b753c
call fcn.00580e6b
xor esi, esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
push 4
pop ecx
mov byte [ebp - 0xd], 0
call fcn.004265d2
mov byte [ebp - 4], 1
push eax
mov ecx, str.hkey
call fcn.00409d39
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004085a2
test bl, bl
je 0x4218b2
lea eax, [ebp - 0x1c]
push eax
xor ebx, ebx
call fcn.0040850b
mov byte [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
call fcn.0040850b
mov byte [ebp - 4], 3
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 4
push ecx
mov eax, esp
mov dword [ebp - 0x20], esp
push 0x6774a4
push eax
call fcn.00408561
mov byte [ebp - 4], 5
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 4
call fcn.0042159a
add esp, 0xc
cmp dword [ebp - 0x40], 1
jbe 0x42170e
mov eax, dword [ebp - 0x44]
add eax, 4
lea edi, [ebp - 0x18]
call fcn.004085c5
cmp dword [ebp - 0x40], esi
je 0x421724
ja 0x42171f
push 0x80070057
call fcn.00402d79
mov eax, dword [ebp - 0x44]
jmp 0x421727
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00408532
mov byte [ebp - 4], 6
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 7
push ecx
mov eax, esp
mov dword [ebp - 0x20], esp
mov edi, 0x670fe8
push edi
push eax
call fcn.00408561
mov byte [ebp - 4], 8
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 7
call fcn.0042159a
add esp, 0xc
cmp dword [ebp - 0x30], 1
jbe 0x4217f3
cmp dword [ebp - 0x30], esi
jbe 0x421715
push dword [ebp - 0x34]
mov ecx, str.hkey_users
call fcn.00409d39
test eax, eax
jne 0x421792
mov ebx, reloc.WS2_32.dll_closesocket
jmp 0x4217f3
cmp dword [ebp - 0x30], esi
jbe 0x421715
push dword [ebp - 0x34]
mov ecx, str.hkey_current_user
call fcn.00409d39
test eax, eax
jne 0x4217b3
mov ebx, closesocket
jmp 0x4217f3
cmp dword [ebp - 0x30], esi
jbe 0x421715
push dword [ebp - 0x34]
mov ecx, str.hkey_classes_root
call fcn.00409d39
test eax, eax
jne 0x4217d4
mov ebx, closesocket
jmp 0x4217f3
cmp dword [ebp - 0x30], esi
jbe 0x421715
push dword [ebp - 0x34]
mov ecx, str.hkey_local_machine
call fcn.00409d39
test eax, eax
jne 0x4217f3
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push edi
xor ecx, ecx
lea esi, [ebp - 0x14]
call fcn.00426385
inc eax
mov ecx, esi
call fcn.004261d8
xor eax, eax
cmp ebx, eax
je 0x421874
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
cmp dword [ecx - 0xc], eax
push eax
push ecx
mov eax, esp
je 0x42184e
mov dword [ebp - 0x20], esp
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.00408532
mov byte [ebp - 4], 9
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
mov ecx, esi
push ecx
push eax
call fcn.00408532
mov byte [ebp - 4], 0xa
push ebx
mov byte [ebp - 4], 7
call fcn.00420b9e
add esp, 0x14
jmp 0x42186c
mov dword [ebp - 0x24], esp
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00408532
mov byte [ebp - 4], 0xb
push ebx
mov byte [ebp - 4], 7
call fcn.00421425
add esp, 0x10
test al, al
je 0x421874
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 6
lea esi, [ebp - 0x34]
call fcn.0042b3b2
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.004085a2
mov byte [ebp - 4], 3
lea esi, [ebp - 0x44]
call fcn.0042b3b2
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.004085a2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004085a2
jmp 0x4218d1
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4218d1
mov byte [ebp - 0xd], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004085a2
mov al, byte [ebp - 0xd]
call fcn.00580f43
ret