Function at 0x412a44
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x20], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x412d47
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x4197e8], 1
mov eax, 0x419824
call fcn.00401a50
mov eax, dword [0x41864c]
mov eax, dword [eax]
mov edx, dword [eax + 0xcc]
mov eax, dword [ebx + 0x5c]
call fcn.0040a7e0
mov eax, dword [0x41868c]
mov eax, dword [eax]
call fcn.0040ad48
lea edx, [ebp - 0x2c]
xor eax, eax
call fcn.00403c84
mov eax, dword [ebp - 0x2c]
call fcn.00409480
mov dword [0x4197e4], eax
mov eax, dword [0x4186ac]
cmp byte [eax], 0
je 0x412b6e
xor eax, eax
mov dword [0x4197e0], eax
mov dword [0x41981c], 0
mov dword [0x419820], 0
lea ecx, [ebp - 0x30]
mov dl, 1
xor eax, eax
call fcn.00415484
mov eax, dword [ebp - 0x30]
call fcn.0041237c
mov dword [0x4197e0], 1
mov dl, 1
mov eax, dword [0x40c934]
call fcn.0040cd04
mov esi, eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], 0x412888
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], fcn.00412968
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], 0x412458
lea ecx, [ebp - 0x34]
mov dl, 1
xor eax, eax
call fcn.00415484
mov edx, dword [ebp - 0x34]
mov ecx, dword [0x419808]
mov eax, esi
call fcn.0040d190
mov eax, esi
call fcn.00401464
push dword [0x419820]
push dword [0x41981c]
mov eax, ebx
call fcn.00410990
jmp 0x412cfe
mov byte [ebp - 0x26], 0
mov edx, dword [0x418678]
mov edx, dword [edx]
mov eax, dword [0x4197e4]
xor ecx, ecx
call fcn.00409384
mov eax, 0x43
call fcn.00415474
mov edi, eax
dec edi
test edi, edi
jl 0x412cfe
inc edi
lea edx, [ebp - 4]
mov eax, dword [0x4197e4]
mov ecx, 4
call fcn.0040937c
lea edx, [ebp - 0x10]
mov eax, dword [0x4197e4]
mov ecx, 8
call fcn.0040937c
lea edx, [ebp - 0x18]
mov eax, dword [0x4197e4]
mov ecx, 8
call fcn.0040937c
lea edx, [ebp - 0x1c]
mov eax, dword [0x4197e4]
mov ecx, 4
call fcn.0040937c
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004126b8
test al, al
je 0x412cea
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x20]
call fcn.00409304
mov ecx, dword [ebp - 0x3c]
mov eax, dword [0x41864c]
mov eax, dword [eax]
mov edx, dword [eax + 0x8c]
lea eax, [ebp - 0x38]
call fcn.00401c28
mov edx, dword [ebp - 0x38]
mov eax, dword [ebx + 0x5c]
call fcn.0040a7e0
mov eax, dword [0x41868c]
mov eax, dword [eax]
call fcn.0040ad48
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x20]
call fcn.004040bc
mov eax, dword [ebp - 0x40]
call fcn.00404138
mov byte [ebp - 0x25], 0
mov eax, dword [ebp - 0x20]
call fcn.004094a8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
call fcn.004052f8
test eax, eax
je 0x412ccc
push dword [ebp - 0xc]
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
call fcn.00412178
mov eax, dword [ebp - 0x24]
call fcn.00408680
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 0x20]
call fcn.00401dd4
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
call sub.kernel32.dll_SetFileTime
push esi
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00401dd4
push eax
call sub.kernel32.dll_SetFileAttributesA
jmp 0x412ce0
lea eax, [ebp - 0x25]
push eax
lea eax, [ebp - 0x26]
push eax
mov eax, ebx
mov ecx, dword [ebp - 0x20]
xor edx, edx
call fcn.00412968
cmp byte [ebp - 0x25], 0
jne 0x412c4d
push dword [ebp - 0xc]
push dword [ebp - 0x10]
mov eax, ebx
call fcn.00410990
dec edi
jne 0x412b9c
mov eax, dword [0x4197e4]
call fcn.00408680
mov eax, dword [0x4197ec]
call fcn.00401dd4
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [0x41868c]
mov eax, dword [eax]
call fcn.0040ad48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412d4e
lea eax, [ebp - 0x40]
mov edx, 6
call fcn.00401a74
lea eax, [ebp - 0x20]
call fcn.00401a50
ret