Function at 0x414684
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 0x414987
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x41b7cc], 1
mov eax, 0x41b808
call fcn.004036a8
mov eax, dword [0x41a688]
mov eax, dword [eax]
mov edx, dword [eax + 0xcc]
mov eax, dword [ebx + 0x5c]
call fcn.0040ca04
mov eax, dword [0x41a6c8]
mov eax, dword [eax]
call fcn.0040cf1c
lea edx, [ebp - 0x2c]
xor eax, eax
call fcn.00405c48
mov eax, dword [ebp - 0x2c]
call fcn.0040bd4c
mov dword [0x41b7c8], eax
mov eax, dword [0x41a6e8]
cmp byte [eax], 0
je 0x4147ae
xor eax, eax
mov dword [0x41b7c4], eax
mov dword [0x41b800], 0
mov dword [0x41b804], 0
lea ecx, [ebp - 0x30]
mov dl, 1
xor eax, eax
call fcn.00417378
mov eax, dword [ebp - 0x30]
call fcn.00413fbc
mov dword [0x41b7c4], 1
mov dl, 1
mov eax, dword [0x40e7d4]
call fcn.0040eba4
mov esi, eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], 0x4144c8
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], fcn.004145a8
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], 0x414098
lea ecx, [ebp - 0x34]
mov dl, 1
xor eax, eax
call fcn.00417378
mov edx, dword [ebp - 0x34]
mov ecx, dword [0x41b7ec]
mov eax, esi
call fcn.0040f030
mov eax, esi
call fcn.00402d78
push dword [0x41b804]
push dword [0x41b800]
mov eax, ebx
call fcn.00412770
jmp 0x41493e
mov byte [ebp - 0x26], 0
mov edx, dword [0x41a6b4]
mov edx, dword [edx]
mov eax, dword [0x41b7c8]
xor ecx, ecx
call fcn.00407484
mov eax, 0x43
call fcn.00417368
mov edi, eax
dec edi
test edi, edi
jl 0x41493e
inc edi
lea edx, [ebp - 4]
mov eax, dword [0x41b7c8]
mov ecx, 4
call fcn.00407394
lea edx, [ebp - 0x10]
mov eax, dword [0x41b7c8]
mov ecx, 8
call fcn.00407394
lea edx, [ebp - 0x18]
mov eax, dword [0x41b7c8]
mov ecx, 8
call fcn.00407394
lea edx, [ebp - 0x1c]
mov eax, dword [0x41b7c8]
mov ecx, 4
call fcn.00407394
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004142f8
test al, al
je 0x41492a
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x20]
call fcn.00406170
mov ecx, dword [ebp - 0x3c]
mov eax, dword [0x41a688]
mov eax, dword [eax]
mov edx, dword [eax + 0x8c]
lea eax, [ebp - 0x38]
call fcn.00403954
mov edx, dword [ebp - 0x38]
mov eax, dword [ebx + 0x5c]
call fcn.0040ca04
mov eax, dword [0x41a6c8]
mov eax, dword [eax]
call fcn.0040cf1c
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x20]
call fcn.00406114
mov eax, dword [ebp - 0x40]
call fcn.004061ac
mov byte [ebp - 0x25], 0
mov eax, dword [ebp - 0x20]
call fcn.0040bd74
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
call fcn.00407390
test eax, eax
je 0x41490c
push dword [ebp - 0xc]
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
call fcn.00413db8
mov eax, dword [ebp - 0x24]
call fcn.0040b304
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 0x20]
call fcn.00403b08
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.00403b08
push eax
call sub.kernel32.dll_SetFileAttributesA
jmp 0x414920
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.004145a8
cmp byte [ebp - 0x25], 0
jne 0x41488d
push dword [ebp - 0xc]
push dword [ebp - 0x10]
mov eax, ebx
call fcn.00412770
dec edi
jne 0x4147dc
mov eax, dword [0x41b7c8]
call fcn.0040b304
mov eax, dword [0x41b7d0]
call fcn.00403b08
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [0x41a6c8]
mov eax, dword [eax]
call fcn.0040cf1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41498e
lea eax, [ebp - 0x40]
mov edx, 6
call fcn.004036cc
lea eax, [ebp - 0x20]
call fcn.004036a8
ret