Function at 0x581940
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x581f86
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x581995
mov eax, dword [ebp - 8]
call fcn.00583488
mov eax, dword [ebp - 8]
add eax, 4
mov edx, dword [eax]
xor ecx, ecx
mov dword [eax], ecx
mov eax, edx
call fcn.00404700
mov eax, dword [ebp - 8]
mov byte [eax + 0x62], 0
xor ecx, ecx
mov dl, 1
mov eax, dword [0x57b1e4]
call fcn.0057b7cc
mov ebx, eax
mov eax, dword [ebp - 8]
mov dword [eax + 4], ebx
lea eax, [ebx + 0xe4]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x78]
call fcn.00406ddc
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 4]
mov eax, dword [ebp - 8]
mov dword [ebx + 0x10c], eax
mov dword [ebx + 0x108], fcn.0058215c
mov eax, dword [ebp - 8]
mov dword [ebx + 0x114], eax
mov dword [ebx + 0x110], 0x582224
mov eax, dword [ebp - 8]
mov dword [ebx + 0x12c], eax
mov dword [ebx + 0x128], 0x582c80
mov eax, dword [ebp - 8]
mov dword [ebx + 0x14c], eax
mov dword [ebx + 0x148], 0x582dc0
lea eax, [ebx + 0x64]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x38]
call fcn.00406ddc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x40]
mov dword [eax + 0x78], ecx
mov ecx, dword [edx + 0x44]
mov dword [eax + 0x7c], ecx
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x61]
mov edx, dword [ebp - 8]
mov ebx, dword [edx + 4]
mov byte [ebx + 0x60], al
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x7c]
mov byte [ebx + 0x150], al
lea eax, [ebx + 0xc8]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x48]
call fcn.00406ddc
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x58]
lea eax, [ebp - 0xc]
mov ecx, 0x581fa0
call fcn.004071b0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
call fcn.00580058
mov edx, dword [ebp - 8]
movzx edx, byte [edx + 0x63]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov byte [eax + 0x151], dl
cmp byte [eax + 0x150], 0
je 0x581aaf
mov dword [eax + 0x80], 2
jmp 0x581abb
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x30]
mov dword [eax + 0x80], edx
mov eax, dword [ebp - 8]
cmp byte [eax + 0x64], 2
jne 0x581af6
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 4]
mov dword [ebx + 0x80], 1
mov eax, dword [ebx + 0x100]
call fcn.00406e68
push eax
call sub.kernel32.dll_DeleteFileW
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x58]
call fcn.00406e68
push eax
call sub.kernel32.dll_DeleteFileW
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x100]
call fcn.00471b68
test al, al
je 0x581c4a
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x58]
call fcn.00471b68
test al, al
je 0x581c4a
xor eax, eax
push ebp
push 0x581b73
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x58]
call fcn.00406e68
push eax
call sub.kernel32.dll_SetFileAttributesW
push 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x58]
mov dl, 1
mov eax, dword [0x48b560]
call fcn.00492080
mov edx, dword [ebp - 8]
mov edx, dword [edx + 4]
mov dword [edx + 0x9c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x581d21
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x100]
call fcn.00471b68
test al, al
je 0x581c76
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x100]
call fcn.00406e68
push eax
call sub.kernel32.dll_DeleteFileW
xor eax, eax
push ebp
push 0x581cb1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffff
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x58]
mov dl, 1
mov eax, dword [0x48b560]
call fcn.00492080
mov edx, dword [ebp - 8]
mov edx, dword [edx + 4]
mov dword [edx + 0x9c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x581d21
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x64]
cmp al, 2
jne 0x581e4a
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 4]
mov byte [ebx + 0xf5], 2
lea eax, [ebx + 0xdc]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x70]
call fcn.00406ddc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
add eax, 0xe0
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x74]
call fcn.00406ddc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
add eax, 0xd4
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x68]
call fcn.00406ddc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
add eax, 0xd8
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x6c]
call fcn.00406ddc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
add eax, 0xe8
xor edx, edx
call fcn.00406ddc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
add eax, 0xf0
xor edx, edx
call fcn.00406ddc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
add eax, 0xec
xor edx, edx
call fcn.00406ddc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
add eax, 0xcc
xor edx, edx
call fcn.00406ddc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
add eax, 0xd0
xor edx, edx
call fcn.00406ddc
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 4]
mov eax, dword [ebx + 0xd4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0x11
mov eax, dword [ebx + 0xd8]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0x11
mov eax, dword [ebx + 0xdc]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0x11
mov eax, dword [ebx + 0xd0]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x3c]
mov ecx, 3
mov eax, 0x582044
call fcn.00473358
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.00583604
jmp 0x581f5b
cmp al, 1
jne 0x581f5b
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 4]
mov byte [ebx + 0xf5], 2
lea eax, [ebx + 0xcc]
xor edx, edx
call fcn.00406ddc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
add eax, 0xd0
xor edx, edx
call fcn.00406ddc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
add eax, 0xdc
xor edx, edx
call fcn.00406ddc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
add eax, 0xe0
xor edx, edx
call fcn.00406ddc
mov eax, dword [ebp - 8]
lea ecx, [eax + 0x6c]
mov eax, dword [ebp - 8]
lea edx, [eax + 0x68]
mov eax, 0x5820dc
call fcn.00581684
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
add eax, 0xd4
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x68]
call fcn.00406ddc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
add eax, 0xd8
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x6c]
call fcn.00406ddc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
add eax, 0xe8
xor edx, edx
call fcn.00406ddc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
add eax, 0xf0
xor edx, edx
call fcn.00406ddc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
add eax, 0xec
xor edx, edx
call fcn.00406ddc
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 4]
mov eax, dword [ebx + 0xd4]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0x11
mov eax, dword [ebx + 0xd8]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0x11
lea edx, [ebp - 0x50]
mov ecx, 1
mov eax, 0x5820f4
call fcn.00473358
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 8]
call fcn.00583604
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x581f8d
lea eax, [ebp - 0x40]
call fcn.00406dcc
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.00406dd4
lea eax, [ebp - 4]
call fcn.00406dcc
ret