Function at 0x4083a0
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ad7b
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x426008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x280], ebx
mov ecx, 0x427824
call fcn.00405df0
mov esi, eax
mov dword [ebp - 0x28c], esi
test esi, esi
je 0x408b3e
xor edi, edi
mov ecx, esi
push 0x426b48
mov dword [ebp - 0x27c], edi
call fcn.00406660
cmp dword [0x427820], edi
jle 0x408425
push 0x42781c
push 0x426b60
call fcn.00405e70
mov edi, eax
mov dword [ebp - 0x27c], edi
jmp 0x408441
cmp dword [ebx], edi
je 0x40844b
cmp dword [ebx + 4], edi
jbe 0x40844b
push ebx
push 0x426b60
call fcn.00405e70
mov edi, eax
mov dword [ebp - 0x27c], eax
add esp, 8
test edi, edi
je 0x408457
push edi
jmp 0x408450
push 0x426b70
mov ecx, esi
call fcn.00406660
test byte [0x427810], 2
je 0x40852f
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x20]
push eax
call esi
movzx ebx, word [ebp - 0x20]
lea eax, [ebp - 0x20]
push eax
call esi
movzx edi, word [ebp - 0x1e]
lea eax, [ebp - 0x20]
push eax
call esi
movzx esi, word [ebp - 0x1a]
push 0x1e
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x14], 0xe
call fcn.00409fe4
mov ecx, dword [ebp - 0x14]
add esp, 4
inc ecx
mov dword [ebp - 0x18], eax
push 0xffffffffffffffff
push str.___4d__2d__2d_
push ecx
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.0040f0b2
mov ecx, dword [ebp - 0x14]
xor edx, edx
add esp, 0x14
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x14], ecx
push esi
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], edx
push ebx
push eax
call fcn.00405e70
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add esp, 0x10
test eax, eax
je 0x40850a
push 2
push eax
call fcn.00409c3a
add esp, 8
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x28c]
push esi
mov dword [ebp - 0x14], 0
call fcn.00406660
test esi, esi
je 0x408529
push ecx
mov ecx, esi
call fcn.004058d0
mov ebx, dword [ebp - 0x280]
push 0xa
mov dword [ebp - 0x278], 0
mov esi, 4
call fcn.00409fe4
add esp, 4
mov edi, eax
lea eax, [ebp - 0x278]
mov dword [ebp - 0x18], edi
push 0xffffffffffffffff
push 0x423558
push 5
push edi
push eax
call fcn.0040f0b2
xor ecx, ecx
add esp, 0x14
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x28c]
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.00406660
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x40859e
push 2
push edi
call fcn.00409c3a
add esp, 8
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x4085b2
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx + 8], 0
mov dl, 1
mov ecx, esi
call fcn.00409510
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x27c]
test eax, eax
je 0x408b15
push eax
lea ecx, [ebp - 0x29c]
call fcn.00405ad0
mov dword [ebp - 4], 2
mov esi, 5
push 0xc
mov dword [ebp - 0x278], 0
call fcn.00409fe4
add esp, 4
mov edi, eax
lea eax, [ebp - 0x278]
mov dword [ebp - 0x18], edi
push 0xffffffffffffffff
push str..log
push 6
push edi
push eax
call fcn.0040f0b2
xor ecx, ecx
add esp, 0x14
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x29c]
call fcn.00406660
mov byte [ebp - 4], 2
test edi, edi
je 0x408646
push 2
push edi
call fcn.00409c3a
add esp, 8
mov ecx, 0x427824
xor ebx, ebx
call fcn.004078a0
test al, al
je 0x4088a3
push 8
call fcn.00409e93
mov ebx, eax
lea ecx, [ebp - 0x18]
add esp, 4
mov dword [ebp - 0x278], ebx
mov dword [ebx], 0
push 0x427824
mov dword [ebx + 4], 0
call fcn.00405ad0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
lea ecx, [eax - 1]
cmp ecx, eax
jae 0x40869e
mov eax, dword [ebp - 0x18]
cmp word [eax + ecx*2], 0x5c
je 0x4086a8
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.004064d0
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00406660
lea ecx, [ebp - 0x18]
call fcn.00406990
mov edi, eax
test edi, edi
je 0x408735
lea eax, [ebp - 0x270]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40872a
nop word [eax + eax]
push 8
call fcn.00409e93
add esp, 4
mov dword [ebp - 0x278], eax
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 5
push ecx
mov ecx, eax
call fcn.00405a40
push ecx
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.00406e90
lea eax, [ebp - 0x270]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40872a
cmp dword [ebx + 4], 0x3e8
jb 0x4086e0
push 2
push edi
call fcn.00409c3a
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40874b
push 2
push eax
call fcn.00409c3a
add esp, 8
mov edx, dword [ebx + 4]
cmp edx, 0xb
jbe 0x4088a3
test edx, edx
je 0x408770
push 0x409450
push 4
push edx
push dword [ebx]
call fcn.0040f120
mov edx, dword [ebx + 4]
add esp, 0x10
xor ecx, ecx
lea eax, [edx - 0xb]
mov dword [ebp - 0x280], ecx
test eax, eax
je 0x4088a3
cmp ecx, edx
jae 0x40888e
mov eax, dword [ebx]
test eax, eax
je 0x40888e
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x40888e
push 0x427824
lea ecx, [ebp - 0x294]
call fcn.00405ad0
push 0x426b48
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 6
call fcn.00406660
push esi
lea ecx, [ebp - 0x294]
call fcn.00406660
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x18]
call fcn.00405ad0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.00406990
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push esi
mov edi, eax
call fcn.00409c3a
add esp, 8
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x18]
cmp edi, 0xffffffff
setne byte [ebp - 0x271]
test eax, eax
je 0x408828
push 2
push eax
call fcn.00409c3a
add esp, 8
mov dword [ebp - 0x18], 0
cmp byte [ebp - 0x271], 0
mov dword [ebp - 0x14], 0
je 0x40885b
lea ecx, [ebp - 0x294]
call fcn.00406990
mov esi, eax
test esi, esi
je 0x40885b
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 2
push esi
call fcn.00409c3a
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x294]
test eax, eax
je 0x40887e
push 2
push eax
call fcn.00409c3a
add esp, 8
mov dword [ebp - 0x294], 0
mov ecx, dword [ebp - 0x280]
mov dword [ebp - 0x290], 0
mov edx, dword [ebx + 4]
inc ecx
mov dword [ebp - 0x280], ecx
lea eax, [edx - 0xb]
cmp ecx, eax
jb 0x408783
mov eax, dword [ebx + 4]
xor edi, edi
test eax, eax
je 0x4088ee
cmp edi, eax
jae 0x4088e6
mov esi, dword [ebx]
test esi, esi
je 0x4088e6
mov esi, dword [esi + edi*4]
test esi, esi
je 0x4088e6
mov eax, dword [esi]
test eax, eax
je 0x4088d4
push 2
push eax
call fcn.00409c3a
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.00409c3a
add esp, 8
mov eax, dword [ebx + 4]
inc edi
cmp edi, eax
jb 0x4088b0
mov eax, dword [ebx]
test eax, eax
je 0x408905
push 4
push eax
call fcn.00409c3a
add esp, 8
mov dword [ebx], 0
push 8
push ebx
mov dword [ebx + 4], 0
call fcn.00409c3a
mov esi, dword [0x427828]
xor ecx, ecx
mov ebx, 2
mov dword [ebp - 0x284], esi
lea eax, [esi + 1]
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00409fe4
mov edx, eax
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x288], edx
xor ecx, ecx
mov word [edx + esi*2], ax
test esi, esi
je 0x40896e
cmp ecx, dword [0x427828]
jb 0x40895c
xor eax, eax
jmp 0x408965
mov eax, dword [0x427824]
movzx eax, word [eax + ecx*2]
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, esi
jb 0x408950
push 0x426b48
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 8
call fcn.00406660
push dword [ebp - 0x27c]
lea ecx, [ebp - 0x288]
call fcn.00406660
push 0xa
mov dword [ebp - 0x278], 0
mov esi, 4
call fcn.00409fe4
add esp, 4
mov edi, eax
lea eax, [ebp - 0x278]
mov dword [ebp - 0x18], edi
push 0xffffffffffffffff
push 0x423558
push 5
push edi
push eax
call fcn.0040f0b2
xor ecx, ecx
add esp, 0x14
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x288]
call fcn.00406660
mov byte [ebp - 4], 8
test edi, edi
je 0x4089fa
push 2
push edi
call fcn.00409c3a
add esp, 8
mov esi, dword [ebp - 0x284]
xor ecx, ecx
mov dword [ebp - 0x14], esi
lea eax, [esi + 1]
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00409fe4
mov ebx, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], ebx
xor edx, edx
mov word [ebx + esi*2], ax
test esi, esi
je 0x408a48
mov edi, dword [ebp - 0x288]
mov ecx, ebx
sub edi, ebx
cmp edx, esi
jae 0x408a3d
movzx eax, word [edi + ecx]
mov word [ecx], ax
inc edx
add ecx, 2
cmp edx, esi
jb 0x408a39
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call fcn.00406990
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push esi
mov edi, eax
call fcn.00409c3a
add esp, 8
mov byte [ebp - 4], 8
cmp edi, 0xffffffff
setne al
mov byte [ebp - 0x271], al
test ebx, ebx
je 0x408a8f
push 2
push ebx
call fcn.00409c3a
mov al, byte [ebp - 0x271]
add esp, 8
test al, al
je 0x408ab6
lea ecx, [ebp - 0x288]
call fcn.00406990
mov esi, eax
test esi, esi
je 0x408ab6
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 2
push esi
call fcn.00409c3a
add esp, 8
mov eax, dword [ebp - 0x288]
test eax, eax
je 0x408acb
push 2
push eax
call fcn.00409c3a
add esp, 8
mov eax, dword [ebp - 0x29c]
test eax, eax
je 0x408ae0
push 2
push eax
call fcn.00409c3a
add esp, 8
mov ebx, dword [ebp - 0x27c]
mov eax, dword [ebx]
test eax, eax
je 0x408afd
push 2
push eax
call fcn.00409c3a
add esp, 8
mov dword [ebx], 0
push 8
push ebx
mov dword [ebx + 4], 0
call fcn.00409c3a
mov esi, dword [ebp - 0x28c]
add esp, 8
mov eax, dword [esi]
test eax, eax
je 0x408b2c
push 2
push eax
call fcn.00409c3a
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.00409c3a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409891
mov esp, ebp
pop ebp
ret