Function at 0x406bea
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x78
mov eax, 0x67859d
call fcn.005b852e
mov esi, ecx
lea ecx, [ebp - 0x3c]
call fcn.004c5481
xor edi, edi
mov dword [ebp - 4], edi
call fcn.004b8afa
push eax
lea ecx, [ebp - 0x1c]
call fcn.004015a6
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
call fcn.004b8afa
push eax
lea ecx, [ebp - 0x18]
call fcn.004015a6
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], edi
call fcn.00401b65
mov byte [ebp - 4], 3
cmp dword [esi + 8], edi
je 0x406caa
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.00406a54
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0040191c
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.0040124d
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], edi
jne 0x406cad
lea ecx, [eax - 0x10]
call fcn.0040124d
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040124d
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040124d
mov esi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004c55b1
mov eax, esi
call fcn.005b8606
ret 4
mov eax, dword [ebp - 0x10]
push edi
push 0x8000
push eax
lea ecx, [ebp - 0x3c]
call fcn.004c5909
test eax, eax
je 0x407058
push edi
push 0x1000
push ebx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x84]
call fcn.004b93fe
mov byte [ebp - 4], 5
cmp dword [esi + 8], edi
jne 0x406eb2
lea ecx, [esi + 0x680]
mov eax, dword [ecx]
lea edx, [ebp - 0x84]
push edx
call dword [eax + 8]
mov eax, dword [esi + 0x684]
cmp eax, edi
je 0x406d96
mov ebx, dword [eax + 8]
cmp ebx, edi
je 0x406d96
call fcn.004b8afa
push eax
lea ecx, [ebp + 8]
call fcn.004015a6
lea eax, [ebp + 8]
push str.Constants
push eax
mov byte [ebp - 4], 6
call fcn.0040255b
pop ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x69c5b8
call fcn.00401b65
mov edi, dword [ebp + 8]
push ecx
add edi, 0xfffffff0
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x20], esp
push edi
mov byte [ebp - 4], 7
call fcn.0040149c
mov ecx, dword [ebp - 0x20]
add eax, 0x10
mov dword [ecx], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x20], esp
sub eax, 0x10
mov dword [ebp - 0x20], esp
push eax
mov byte [ebp - 4], 8
call fcn.0040149c
pop ecx
mov ecx, dword [ebp - 0x20]
add eax, 0x10
mov dword [ecx], eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00405d72
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.0040124d
lea ecx, [esi + 0x1a4]
mov eax, dword [ecx]
lea edx, [ebp - 0x84]
push edx
call dword [eax + 8]
lea ecx, [esi + 0x1c0]
mov eax, dword [ecx]
lea edx, [ebp - 0x84]
push edx
call dword [eax + 8]
lea ecx, [esi + 0x608]
mov eax, dword [ecx]
lea edx, [ebp - 0x84]
push edx
call dword [eax + 8]
lea ecx, [esi + 0x624]
mov eax, dword [ecx]
lea edx, [ebp - 0x84]
push edx
call dword [eax + 8]
lea ecx, [esi + 0x648]
mov eax, dword [ecx]
lea edx, [ebp - 0x84]
push edx
call dword [eax + 8]
lea eax, [ebp - 0x84]
push eax
lea ecx, [esi + 0x70c]
call fcn.0041e424
lea ecx, [esi + 0x664]
mov eax, dword [ecx]
lea edx, [ebp - 0x84]
push edx
call dword [eax + 8]
lea ecx, [esi + 0x1dc]
mov eax, dword [ecx]
lea edx, [ebp - 0x84]
push edx
call dword [eax + 8]
lea ecx, [esi + 0x1f8]
mov eax, dword [ecx]
lea edx, [ebp - 0x84]
push edx
call dword [eax + 8]
lea ecx, [esi + 0x3cc]
mov eax, dword [ecx]
lea edx, [ebp - 0x84]
push edx
call dword [eax + 8]
lea ecx, [esi + 0x6f0]
mov eax, dword [ecx]
lea edx, [ebp - 0x84]
push edx
call dword [eax + 8]
lea eax, [ebp - 0x84]
push eax
lea ecx, [esi + 0x69c]
call fcn.00455999
lea ecx, [esi + 0x5ec]
mov eax, dword [ecx]
lea edx, [ebp - 0x84]
push edx
call dword [eax + 8]
lea ecx, [esi + 0x70c]
call fcn.0041acbd
mov eax, dword [esi + 0x70c]
lea ecx, [esi + 0x70c]
call dword [eax + 4]
lea eax, [esi + 0x118]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004c5df4
jmp 0x40700b
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x84]
mov dword [ebp + 8], edi
call fcn.0040366e
cmp dword [ebp + 8], 0xb132
jne 0x407008
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x84]
call fcn.0040366e
lea ecx, [esi + 0x680]
mov eax, dword [ecx]
lea edx, [ebp - 0x84]
push edx
call dword [eax + 8]
mov eax, dword [esi + 0x684]
cmp eax, edi
je 0x406f8f
mov ebx, dword [eax + 8]
cmp ebx, edi
je 0x406f8f
call fcn.004b8afa
push eax
lea ecx, [ebp + 8]
call fcn.004015a6
lea eax, [ebp + 8]
push str.Constants
push eax
mov byte [ebp - 4], 9
call fcn.0040255b
pop ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x69c5b8
call fcn.00401b65
mov edi, dword [ebp + 8]
push ecx
add edi, 0xfffffff0
mov dword [ebp - 0x24], esp
mov dword [ebp - 0x20], esp
push edi
mov byte [ebp - 4], 0xa
call fcn.0040149c
mov ecx, dword [ebp - 0x20]
add eax, 0x10
mov dword [ecx], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x20], esp
sub eax, 0x10
mov dword [ebp - 0x20], esp
push eax
mov byte [ebp - 4], 0xb
call fcn.0040149c
pop ecx
mov ecx, dword [ebp - 0x20]
add eax, 0x10
mov dword [ecx], eax
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.00405d72
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.0040124d
lea ecx, [esi + 0x1f8]
mov eax, dword [ecx]
lea edx, [ebp - 0x84]
push edx
call dword [eax + 8]
lea ecx, [esi + 0x3cc]
mov eax, dword [ecx]
lea edx, [ebp - 0x84]
push edx
call dword [eax + 8]
lea ecx, [esi + 0x6f0]
mov eax, dword [ecx]
lea edx, [ebp - 0x84]
push edx
call dword [eax + 8]
lea eax, [ebp - 0x84]
push eax
lea ecx, [esi + 0x69c]
call fcn.00455999
lea ecx, [esi + 0x5ec]
mov eax, dword [ecx]
lea edx, [ebp - 0x84]
push edx
call dword [eax + 8]
lea ecx, [esi + 0x664]
mov eax, dword [ecx]
lea edx, [ebp - 0x84]
push edx
call dword [eax + 8]
lea ecx, [esi + 0x70c]
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40700b
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x84]
call fcn.004b9246
lea ecx, [ebp - 0x3c]
call fcn.004c541c
lea ecx, [esi + 0x104]
add esi, 0xfc
push esi
call fcn.0040191c
push 0x80
push dword [ebp - 0x10]
call dword [0x69b35c]
push dword [ebp - 0x10]
call dword [0x69b358]
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.004b93bc
jmp 0x40705b
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040124d
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040124d
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040124d
mov esi, dword [ebp - 0x14]
jmp 0x406c94