Function at 0x420d20
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x47dcf8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a3e28]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
lea ecx, [esp + 0x3c]
call fcn.0044385a
xor ebx, ebx
mov dword [esp + 0x5c], ebx
cmp byte [0x4a55a8], bl
je 0x420d6b
push 0xffffffffffffffff
push ebx
mov ecx, 0x4a5940
call fcn.00441743
mov esi, dword [esp + 0x64]
mov ebp, dword [0x4a5948]
push ebx
push esi
lea ecx, [esp + 0x44]
call fcn.004438f2
lea ecx, [esp + 0x3c]
mov edi, eax
call fcn.00443456
cmp edi, ebx
jne 0x420e2c
cmp ebp, ebx
jne 0x420e05
lea ecx, [esp + 0x2c]
call fcn.00444a81
push ebx
push 0x1000
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], 1
call fcn.00444ef9
test eax, eax
je 0x420dcb
lea ecx, [esp + 0x2c]
call fcn.00444a1b
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x420df8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x420df8
call fcn.00403140
test eax, eax
je 0x420df8
cmp byte [0x4a55a8], bl
jne 0x420df8
mov eax, dword [0x4a5948]
push esi
push eax
mov ecx, 0x4a5940
call fcn.004419c4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5c], bl
call fcn.00444b89
lea ecx, [esp + 0x3c]
mov dword [esp + 0x5c], 0xffffffff
call fcn.00443883
mov al, 1
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
lea ecx, [esp + 0x1c]
call fcn.00444a81
push ebx
push 1
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 2
call fcn.00444ef9
test eax, eax
je 0x420e5a
lea ecx, [esp + 0x1c]
call fcn.00444a1b
lea ecx, [esp + 0x1c]
jmp 0x420dfc
push esi
lea ecx, [esp + 0x18]
call fcn.00401ab0
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 3
call fcn.00404540
push str.06
lea ecx, [esp + 0x18]
call fcn.00402c20
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], ebx
jl 0x420ecc
push str..exe06
push ecx
call fcn.0045bf66
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp eax, ebx
je 0x420eab
sub eax, ecx
sar eax, 1
cmp eax, ebx
jg 0x420f48
cmp dword [ecx - 0xc], ebx
jl 0x420ecc
push str..dll06
push ecx
call fcn.0045bf66
add esp, 8
cmp eax, ebx
je 0x420ecc
sub eax, dword [esp + 0x14]
sar eax, 1
cmp eax, ebx
jg 0x420f48
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push 1
push esi
lea ecx, [esp + 0x28]
call fcn.00444ef9
test eax, eax
je 0x420f04
lea ecx, [esp + 0x1c]
call fcn.00444a1b
lea ecx, [esp + 0x14]
call fcn.00401430
lea ecx, [esp + 0x1c]
jmp 0x420dfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x42102f
call fcn.00403140
test eax, eax
je 0x420f36
cmp byte [0x4a55a8], bl
jne 0x420f36
mov ecx, dword [0x4a5948]
push esi
push ecx
mov ecx, 0x4a5940
call fcn.004419c4
lea ecx, [esp + 0x14]
call fcn.00401430
lea ecx, [esp + 0x1c]
jmp 0x420dfc
push esi
lea ecx, [esp + 0x1c]
call fcn.00401ab0
push str..__test
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], 4
call fcn.00402c20
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
push eax
push esi
call edi
test eax, eax
je 0x420fdd
mov ecx, dword [esp + 0x18]
push esi
push ecx
call edi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x5c], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x420faf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x5c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420fd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
jmp 0x420dfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x421026
call fcn.00403140
test eax, eax
je 0x42100b
cmp byte [0x4a55a8], bl
jne 0x42100b
mov ecx, dword [0x4a5948]
push esi
push ecx
mov ecx, 0x4a5940
call fcn.004419c4
lea ecx, [esp + 0x18]
call fcn.00401430
lea ecx, [esp + 0x14]
call fcn.00401430
lea ecx, [esp + 0x1c]
jmp 0x420dfc
lea ecx, [esp + 0x18]
call fcn.00401430
lea ecx, [esp + 0x14]
call fcn.00401430
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], bl
call fcn.00444b89
lea ecx, [esp + 0x3c]
mov dword [esp + 0x5c], 0xffffffff
call fcn.00443883
xor al, al
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret