Function at 0x421310
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x38
mov eax, 0x5bdbc5
call fcn.0058705b
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.004262f6
mov byte [ebp - 4], 1
push eax
mov ecx, str.hkey
call fcn.00409d1b
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00408559
test bl, bl
je 0x421570
lea eax, [ebp - 0x1c]
push eax
xor ebx, ebx
call fcn.004084c2
mov byte [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
call fcn.004084c2
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 0x6895e8
push eax
call fcn.00408518
mov byte [ebp - 4], 5
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 4
call fcn.00421255
add esp, 0xc
cmp dword [ebp - 0x40], 1
jbe 0x4213c9
mov eax, dword [ebp - 0x44]
add eax, 4
lea edi, [ebp - 0x18]
call fcn.0040857c
cmp dword [ebp - 0x40], esi
je 0x4213df
ja 0x4213da
push 0x80070057
call fcn.00402d79
mov eax, dword [ebp - 0x44]
jmp 0x4213e2
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004084e9
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 0x6895ec
push eax
call fcn.00408518
mov byte [ebp - 4], 8
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 7
call fcn.00421255
add esp, 0xc
cmp dword [ebp - 0x30], 1
jbe 0x4214ad
cmp dword [ebp - 0x30], esi
jbe 0x4213d0
push dword [ebp - 0x34]
mov ecx, 0x6895f0
call fcn.00409d1b
test eax, eax
jne 0x42144c
mov ebx, reloc.WS2_32.dll_closesocket
jmp 0x4214ad
cmp dword [ebp - 0x30], esi
jbe 0x4213d0
push dword [ebp - 0x34]
mov ecx, str.hkey_current_user
call fcn.00409d1b
test eax, eax
jne 0x42146d
mov ebx, connect
jmp 0x4214ad
cmp dword [ebp - 0x30], esi
jbe 0x4213d0
push dword [ebp - 0x34]
mov ecx, str.hkey_classes_root
call fcn.00409d1b
test eax, eax
jne 0x42148e
mov ebx, connect
jmp 0x4214ad
cmp dword [ebp - 0x30], esi
jbe 0x4213d0
push dword [ebp - 0x34]
mov ecx, str.hkey_local_machine
call fcn.00409d1b
test eax, eax
jne 0x4214ad
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push 0x689678
xor ecx, ecx
lea esi, [ebp - 0x14]
call fcn.004260a9
inc eax
mov ecx, esi
call fcn.00425efc
xor eax, eax
cmp ebx, eax
je 0x421532
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
cmp dword [ecx - 0xc], eax
push eax
push ecx
mov eax, esp
je 0x42150c
mov dword [ebp - 0x20], esp
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.004084e9
mov byte [ebp - 4], 9
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
mov ecx, esi
push ecx
push eax
call fcn.004084e9
mov byte [ebp - 4], 0xa
push ebx
mov byte [ebp - 4], 7
call fcn.00420784
add esp, 0x14
jmp 0x42152a
mov dword [ebp - 0x24], esp
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.004084e9
mov byte [ebp - 4], 0xb
push ebx
mov byte [ebp - 4], 7
call fcn.004210e0
add esp, 0x10
test al, al
je 0x421532
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 6
lea esi, [ebp - 0x34]
call fcn.0042c230
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.00408559
mov byte [ebp - 4], 3
lea esi, [ebp - 0x44]
call fcn.0042c230
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00408559
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00408559
jmp 0x42158f
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 0x42158f
mov byte [ebp - 0xd], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408559
mov al, byte [ebp - 0xd]
call fcn.00587133
ret