Function at 0x421352
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x38
mov eax, 0x5b7245
call fcn.00580b4b
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.004262df
mov byte [ebp - 4], 1
push eax
mov ecx, str.hkey
call fcn.00409ce9
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040856e
test bl, bl
je 0x4215b2
lea eax, [ebp - 0x1c]
push eax
xor ebx, ebx
call fcn.004084d7
mov byte [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
call fcn.004084d7
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 0x681cb0
push eax
call fcn.0040852d
mov byte [ebp - 4], 5
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 4
call fcn.00421297
add esp, 0xc
cmp dword [ebp - 0x40], 1
jbe 0x42140b
mov eax, dword [ebp - 0x44]
add eax, 4
lea edi, [ebp - 0x18]
call fcn.00408591
cmp dword [ebp - 0x40], esi
je 0x421421
ja 0x42141c
push 0x80070057
call fcn.00402d73
mov eax, dword [ebp - 0x44]
jmp 0x421424
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004084fe
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
push 0x681cb4
push eax
call fcn.0040852d
mov byte [ebp - 4], 8
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 7
call fcn.00421297
add esp, 0xc
cmp dword [ebp - 0x30], 1
jbe 0x4214ef
cmp dword [ebp - 0x30], esi
jbe 0x421412
push dword [ebp - 0x34]
mov ecx, 0x681cb8
call fcn.00409ce9
test eax, eax
jne 0x42148e
mov ebx, reloc.WS2_32.dll_closesocket
jmp 0x4214ef
cmp dword [ebp - 0x30], esi
jbe 0x421412
push dword [ebp - 0x34]
mov ecx, str.hkey_current_user
call fcn.00409ce9
test eax, eax
jne 0x4214af
mov ebx, closesocket
jmp 0x4214ef
cmp dword [ebp - 0x30], esi
jbe 0x421412
push dword [ebp - 0x34]
mov ecx, str.hkey_classes_root
call fcn.00409ce9
test eax, eax
jne 0x4214d0
mov ebx, closesocket
jmp 0x4214ef
cmp dword [ebp - 0x30], esi
jbe 0x421412
push dword [ebp - 0x34]
mov ecx, str.hkey_local_machine
call fcn.00409ce9
test eax, eax
jne 0x4214ef
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push 0x681d40
xor ecx, ecx
lea esi, [ebp - 0x14]
call fcn.00426092
inc eax
mov ecx, esi
call fcn.00425ee5
xor eax, eax
cmp ebx, eax
je 0x421574
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
cmp dword [ecx - 0xc], eax
push eax
push ecx
mov eax, esp
je 0x42154e
mov dword [ebp - 0x20], esp
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.004084fe
mov byte [ebp - 4], 9
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
mov ecx, esi
push ecx
push eax
call fcn.004084fe
mov byte [ebp - 4], 0xa
push ebx
mov byte [ebp - 4], 7
call fcn.004208dc
add esp, 0x14
jmp 0x42156c
mov dword [ebp - 0x24], esp
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.004084fe
mov byte [ebp - 4], 0xb
push ebx
mov byte [ebp - 4], 7
call fcn.00421122
add esp, 0x10
test al, al
je 0x421574
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 6
lea esi, [ebp - 0x34]
call fcn.0042b6f6
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.0040856e
mov byte [ebp - 4], 3
lea esi, [ebp - 0x44]
call fcn.0042b6f6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.0040856e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0040856e
jmp 0x4215d1
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 0x4215d1
mov byte [ebp - 0xd], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040856e
mov al, byte [ebp - 0xd]
call fcn.00580c23
ret