Function at 0x412938
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 0x412c3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x4197ec], 1
mov eax, 0x419828
call fcn.00401a48
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0xcc]
mov eax, dword [ebx + 0x5c]
call fcn.0040a7e0
mov eax, dword [0x4186ac]
mov eax, dword [eax]
call fcn.0040ad48
lea edx, [ebp - 0x2c]
xor eax, eax
call fcn.00403bec
mov eax, dword [ebp - 0x2c]
call fcn.00409484
mov dword [0x4197e8], eax
mov eax, dword [0x4186cc]
cmp byte [eax], 0
je 0x412a62
xor eax, eax
mov dword [0x4197e4], eax
mov dword [0x419820], 0
mov dword [0x419824], 0
lea ecx, [ebp - 0x30]
mov dl, 1
xor eax, eax
call fcn.004155f4
mov eax, dword [ebp - 0x30]
call fcn.00412270
mov dword [0x4197e4], 1
mov dl, 1
mov eax, dword [0x40c964]
call fcn.0040cd34
mov esi, eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], 0x41277c
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], fcn.0041285c
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], 0x41234c
lea ecx, [ebp - 0x34]
mov dl, 1
xor eax, eax
call fcn.004155f4
mov edx, dword [ebp - 0x34]
mov ecx, dword [0x41980c]
mov eax, esi
call fcn.0040d1c0
mov eax, esi
call fcn.0040145c
push dword [0x419824]
push dword [0x419820]
mov eax, ebx
call fcn.00410a24
jmp 0x412bf2
mov byte [ebp - 0x26], 0
mov edx, dword [0x418698]
mov edx, dword [edx]
mov eax, dword [0x4197e8]
xor ecx, ecx
call fcn.00409380
mov eax, 0x43
call fcn.004155e4
mov edi, eax
dec edi
test edi, edi
jl 0x412bf2
inc edi
lea edx, [ebp - 4]
mov eax, dword [0x4197e8]
mov ecx, 4
call fcn.00409378
lea edx, [ebp - 0x10]
mov eax, dword [0x4197e8]
mov ecx, 8
call fcn.00409378
lea edx, [ebp - 0x18]
mov eax, dword [0x4197e8]
mov ecx, 8
call fcn.00409378
lea edx, [ebp - 0x1c]
mov eax, dword [0x4197e8]
mov ecx, 4
call fcn.00409378
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004125ac
test al, al
je 0x412bde
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x20]
call fcn.00409300
mov ecx, dword [ebp - 0x3c]
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0x8c]
lea eax, [ebp - 0x38]
call fcn.00401cec
mov edx, dword [ebp - 0x38]
mov eax, dword [ebx + 0x5c]
call fcn.0040a7e0
mov eax, dword [0x4186ac]
mov eax, dword [eax]
call fcn.0040ad48
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x20]
call fcn.00404024
mov eax, dword [ebp - 0x40]
call fcn.004040a0
mov byte [ebp - 0x25], 0
mov eax, dword [ebp - 0x20]
call fcn.004094ac
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
call fcn.00405260
test eax, eax
je 0x412bc0
push dword [ebp - 0xc]
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
call fcn.0041206c
mov eax, dword [ebp - 0x24]
call fcn.0040867c
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 0x20]
call fcn.00401e98
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.00401e98
push eax
call sub.kernel32.dll_SetFileAttributesA
jmp 0x412bd4
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.0041285c
cmp byte [ebp - 0x25], 0
jne 0x412b41
push dword [ebp - 0xc]
push dword [ebp - 0x10]
mov eax, ebx
call fcn.00410a24
dec edi
jne 0x412a90
mov eax, dword [0x4197e8]
call fcn.0040867c
mov eax, dword [0x4197f0]
call fcn.00401e98
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [0x4186ac]
mov eax, dword [eax]
call fcn.0040ad48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412c42
lea eax, [ebp - 0x40]
mov edx, 6
call fcn.00401a6c
lea eax, [ebp - 0x20]
call fcn.00401a48
ret