Function at 0x406992
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c80a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa6c
lea ecx, [ebp - 0x238]
call fcn.0040b0f8
mov dword [ebp - 4], 0
mov dword [ebp - 0x218], 0
push 0x104
push 0
lea eax, [ebp - 0x214]
push eax
call fcn.0040be20
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x648]
push ecx
call fcn.0040be20
add esp, 0xc
push 0x104
push 0
lea edx, [ebp - 0x440]
push edx
call fcn.0040be20
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x214]
push ecx
call fcn.0040c8aa
add esp, 8
lea edx, [ebp - 0x214]
push edx
call fcn.0040be00
add esp, 4
xor ecx, ecx
mov cx, word [ebp + eax*2 - 0x216]
cmp ecx, 0x5c
je 0x406a53
push 0x422bd0
lea edx, [ebp - 0x214]
push edx
call fcn.0040c880
add esp, 8
push 0x422bd4
lea eax, [ebp - 0x214]
push eax
call fcn.0040c880
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x440]
push edx
call fcn.0040c8aa
add esp, 8
lea eax, [ebp - 0x440]
push eax
call fcn.0040be00
add esp, 4
xor ecx, ecx
mov cx, word [ebp + eax*2 - 0x442]
cmp ecx, 0x5c
je 0x406aac
push 0x422bdc
lea edx, [ebp - 0x440]
push edx
call fcn.0040c880
add esp, 8
push 0
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x238]
call fcn.0040b1bd
mov dword [ebp - 0x64c], eax
cmp dword [ebp - 0x64c], 0
je 0x406c4d
lea ecx, [ebp - 0x238]
call fcn.0040b3e3
mov dword [ebp - 0x64c], eax
lea ecx, [ebp - 0x238]
call fcn.0040b3a6
test eax, eax
jne 0x406c48
push 0x104
lea ecx, [ebp - 0xa6c]
push ecx
lea ecx, [ebp - 0x238]
call fcn.0040b5de
mov dword [ebp - 0xa74], eax
mov edx, dword [ebp - 0xa74]
mov dword [ebp - 0xa78], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xa78]
call fcn.00417d62
push eax
lea eax, [ebp - 0x854]
push eax
call fcn.0040c8aa
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa6c]
call fcn.00417bc1
lea ecx, [ebp - 0x238]
call fcn.0040b0b0
test eax, eax
je 0x406b62
jmp 0x406c48
push 0x104
push 0
lea ecx, [ebp - 0xa60]
push ecx
call fcn.0040be20
add esp, 0xc
push 0x2e
lea edx, [ebp - 0x854]
push edx
call fcn.0040b070
add esp, 8
mov dword [ebp - 0x858], eax
mov eax, dword [ebp - 0x858]
add eax, 2
push eax
lea ecx, [ebp - 0xa60]
push ecx
call fcn.0040c8aa
add esp, 8
lea edx, [ebp - 0xa60]
push edx
call fcn.0040c9bb
add esp, 4
push 0x422be0
lea eax, [ebp - 0xa60]
push eax
call fcn.0040c1a0
add esp, 8
test eax, eax
je 0x406be7
push 0x422be8
lea ecx, [ebp - 0xa60]
push ecx
call fcn.0040c1a0
add esp, 8
test eax, eax
jne 0x406c48
lea edx, [ebp - 0xa68]
push edx
lea ecx, [ebp - 0x238]
call fcn.0040b2dd
mov eax, dword [ebp - 0x218]
cmp eax, dword [ebp - 0xa64]
ja 0x406c10
cmp dword [ebp - 0x218], 0
jne 0x406c48
mov ecx, dword [ebp - 0xa64]
mov dword [ebp - 0x218], ecx
push 0x104
push 0
lea edx, [ebp - 0x648]
push edx
call fcn.0040be20
add esp, 0xc
lea eax, [ebp - 0x854]
push eax
lea ecx, [ebp - 0x648]
push ecx
call fcn.0040c8aa
add esp, 8
jmp 0x406ac6
lea ecx, [ebp - 0x238]
call fcn.0040b173
lea edx, [ebp - 0x648]
push edx
lea eax, [ebp - 0x440]
push eax
call fcn.0040c880
add esp, 8
lea ecx, [ebp - 0x440]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x406c9e
push 0x80
lea edx, [ebp - 0x440]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0xa70], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.0040b137
mov eax, dword [ebp - 0xa70]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret