Function at 0x40df70
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4507bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
mov eax, dword [0x46aa78]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x140], eax
push edi
mov dword [esi + 0x94], 2
mov eax, dword [esi + 0x1a4]
xor edi, edi
cmp eax, edi
je 0x40dfd7
mov ecx, dword [esi + 0x1a8]
sub ecx, eax
mov eax, 0x30c30c31
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
jne 0x40e052
mov ecx, dword [esi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push edi
push 0x64
push 0x5403
push ecx
call ebx
call fcn.004472e0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
push 0x29
mov dword [esp + 0x158], edi
call fcn.004069d0
mov edi, eax
add esp, 4
test edi, edi
je 0x40e01e
push edi
call fcn.0043124b
add esp, 4
push eax
push edi
lea ecx, [esp + 0x2c]
call fcn.00402510
mov edi, dword [esp + 0x24]
mov eax, dword [esi + 0x1c]
push 0
push edi
push 0x5400
push eax
call ebx
mov ecx, dword [esi + 0x1c]
push 0
push 0x453e50
push 0x5402
push ecx
call ebx
jmp 0x40e81c
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
lea ebx, [ebx]
mov eax, dword [esi + 0x1a4]
test eax, eax
je 0x40e083
mov ecx, dword [esi + 0x1a8]
sub ecx, eax
mov eax, 0x30c30c31
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x28], eax
jge 0x40e799
mov edi, dword [esi + 0x1a4]
call fcn.004472e0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x154], 1
call fcn.004472e0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
lea ebx, [eax + edi + 0x38]
mov dword [esp + 0x34], 3
cmp dword [ebx + 0x18], 0x10
mov byte [esp + 0x154], 2
jb 0x40e0e7
mov eax, dword [ebx + 4]
jmp 0x40e0ea
lea eax, [ebx + 4]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x40]
push edx
push eax
call fcn.0044b8f0
test eax, eax
je 0x40e425
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea ecx, [esp + 0x14]
call fcn.004031c0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
mov byte [esp + 0x15c], 4
call fcn.00431dec
add esp, 8
test eax, eax
je 0x40e482
call fcn.004472e0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x158], 6
call fcn.00407c40
mov eax, dword [eax]
push eax
push 0x1e
mov byte [esp + 0x15c], 7
call fcn.004069d0
add esp, 4
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00404b10
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x154], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e1b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x1c]
push 0
push eax
push 0x5400
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
mov byte [esp + 0x38], 0
mov ecx, 0x40
lea edi, [esp + 0x39]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [esi + 0x18], 0x10
jb 0x40e1eb
mov eax, dword [esi + 4]
jmp 0x40e1ee
lea eax, [esi + 4]
push 0x104
push eax
lea edx, [esp + 0x40]
push edx
call fcn.00430cf0
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea edx, [esp + 0x38]
push edx
call edi
test eax, eax
je 0x40e275
lea eax, [esp + 0x38]
push eax
call fcn.00411980
add esp, 4
cmp eax, 4
jb 0x40e247
mov ecx, dword [esi + 0x250]
mov edx, dword [ecx]
lea eax, [esp + 0x38]
push eax
call dword [edx]
test al, al
jne 0x40e275
push 0x80
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40e4d8
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x38]
push eax
call edi
test eax, eax
jne 0x40e359
cmp dword [ebx + 0x18], 0x10
jb 0x40e28f
mov ebx, dword [ebx + 4]
jmp 0x40e292
add ebx, 4
push 1
push 1
push 1
push 1
lea ecx, [esp + 0x48]
push ecx
push ebx
mov ecx, esi
call fcn.0040cfb0
test al, al
je 0x40e54d
call fcn.004472e0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x158], 0xb
call fcn.00407c40
mov eax, dword [eax]
push eax
push 0x28
mov byte [esp + 0x15c], 0xc
call fcn.004069d0
add esp, 4
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00404b10
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x154], 0xb
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e321
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 0x1c]
push 0
push edi
push 0x5400
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [edi - 0x10]
mov byte [esp + 0x154], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e359
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esi + 0x250]
mov eax, dword [ecx]
lea edx, [esp + 0x38]
push edx
call dword [eax + 4]
test al, al
je 0x40e605
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x154], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e397
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x154], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e3bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x154], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e3e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x154], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e40c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
inc ecx
add eax, 0x54
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
jmp 0x40e060
call fcn.004472e0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
push 0xb
mov byte [esp + 0x158], 3
call fcn.004069d0
mov edi, eax
add esp, 4
test edi, edi
je 0x40e459
push edi
call fcn.0043124b
add esp, 4
push eax
push edi
lea ecx, [esp + 0x14]
call fcn.00402510
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 0x1c]
push 0
push edi
push 0x5405
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [edi - 0x10]
jmp 0x40e724
call fcn.004472e0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
push 0xb
mov byte [esp + 0x158], 5
call fcn.004069d0
mov edi, eax
add esp, 4
test edi, edi
jne 0x40e4be
push eax
push edi
lea ecx, [esp + 0x14]
call fcn.00402510
mov edi, dword [esp + 0xc]
jmp 0x40e533
push edi
call fcn.0043124b
add esp, 4
push eax
push edi
lea ecx, [esp + 0x14]
call fcn.00402510
mov edi, dword [esp + 0xc]
jmp 0x40e533
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
call fcn.00407c40
mov eax, dword [eax]
push eax
push 0x39
mov byte [esp + 0x15c], 8
call fcn.004069d0
add esp, 4
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00404b10
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x154], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e52f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x1c]
mov eax, dword [esi + 0x1c]
push 0
push edi
push 0x5405
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [edi - 0x10]
jmp 0x40e6fe
call fcn.004472e0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
mov bl, 9
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x158], bl
call fcn.00407c40
mov eax, dword [eax]
push eax
push 0xc
mov byte [esp + 0x15c], 0xa
call fcn.004069d0
add esp, 4
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00404b10
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x154], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e5bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 0x1c]
push 0
push edi
push 0x5405
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x5409
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [edi - 0x10]
mov byte [esp + 0x154], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40e6ed
call fcn.004472e0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov byte [esp + 0x154], 0xd
call fcn.0041d260
push eax
lea ecx, [esp + 0x30]
call fcn.00407c40
mov edi, eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x158], 0xe
call fcn.00407c40
mov edi, dword [edi]
mov ebx, dword [eax]
push edi
mov byte [esp + 0x158], 0xf
call fcn.0041d250
push eax
push ebx
push 0x3a
call fcn.004069d0
add esp, 4
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00404b10
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x14
mov byte [esp + 0x154], 0xe
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e699
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x154], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e6bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 0x1c]
push 0
push edi
push 0x5405
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [edi - 0x10]
mov byte [esp + 0x154], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e6f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x154], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e71d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x154], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e743
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x154], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e769
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x154], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e792
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor al, al
jmp 0x40e843
mov eax, dword [esi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0x64
push 0x5403
push eax
call ebx
call fcn.004472e0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
push 0x29
mov dword [esp + 0x158], 0x10
call fcn.004069d0
mov edi, eax
add esp, 4
test edi, edi
je 0x40e7e5
push edi
call fcn.0043124b
add esp, 4
push eax
push edi
lea ecx, [esp + 0x14]
call fcn.00402510
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 0x1c]
push 0
push edi
push 0x5400
push eax
call ebx
mov ecx, dword [esi + 0x1c]
push 0
push 0x453e50
push 0x5402
push ecx
call ebx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [edi - 0x10]
mov dword [esp + 0x154], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e841
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, 1
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x144]
call fcn.00430cd9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret