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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437d3b
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x451008]
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, 0x453474
call fcn.0040d750
mov esi, eax
mov dword [ebp - 0x28c], esi
test esi, esi
je 0x41777e
xor edi, edi
mov ecx, esi
push 0x452260
mov dword [ebp - 0x27c], edi
call fcn.0040e1f0
cmp dword [0x453470], edi
jle 0x417075
push 0x45346c
push 0x452278
call fcn.0040d840
mov edi, eax
mov dword [ebp - 0x27c], edi
jmp 0x417091
cmp dword [ebx], edi
je 0x41709b
cmp dword [ebx + 4], edi
jbe 0x41709b
push ebx
push 0x452278
call fcn.0040d840
mov edi, eax
mov dword [ebp - 0x27c], eax
add esp, 8
test edi, edi
je 0x4170a7
push edi
jmp 0x4170a0
push 0x452288
mov ecx, esi
call fcn.0040e1f0
test byte [0x453448], 2
je 0x41717f
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.0041b26a
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.00426d70
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.0040d840
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add esp, 0x10
test eax, eax
je 0x41715a
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x28c]
push esi
mov dword [ebp - 0x14], 0
call fcn.0040e1f0
test esi, esi
je 0x417179
push ecx
mov ecx, esi
call fcn.00409b80
mov ebx, dword [ebp - 0x280]
push 0xa
mov dword [ebp - 0x278], 0
mov esi, 4
call fcn.0041b26a
add esp, 4
mov edi, eax
lea eax, [ebp - 0x278]
mov dword [ebp - 0x18], edi
push 0xffffffffffffffff
push 0x44c6ec
push 5
push edi
push eax
call fcn.00426d70
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.0040e1f0
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4171ee
push 2
push edi
call fcn.0041aef0
add esp, 8
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x417202
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx + 8], 0
mov dl, 1
mov ecx, esi
call fcn.004185b0
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x27c]
test eax, eax
je 0x417755
push eax
lea ecx, [ebp - 0x29c]
call fcn.0040d340
mov dword [ebp - 4], 2
mov esi, 5
push 0xc
mov dword [ebp - 0x278], 0
call fcn.0041b26a
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.00426d70
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.0040e1f0
mov byte [ebp - 4], 2
test edi, edi
je 0x417296
push 2
push edi
call fcn.0041aef0
add esp, 8
mov ecx, 0x453474
xor ebx, ebx
call fcn.00410fe0
test al, al
je 0x4174e3
push 8
call fcn.0041ab28
mov ebx, eax
lea ecx, [ebp - 0x18]
add esp, 4
mov dword [ebp - 0x278], ebx
mov dword [ebx], 0
push 0x453474
mov dword [ebx + 4], 0
call fcn.0040d340
push ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0040ec80
test al, al
jne 0x4172ee
push 0x5c
call fcn.0040dea0
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040e1f0
lea ecx, [ebp - 0x18]
call fcn.0040e6a0
mov edi, eax
test edi, edi
je 0x417375
lea eax, [ebp - 0x270]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41736a
push 8
call fcn.0041ab28
add esp, 4
mov dword [ebp - 0x278], eax
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 5
push ecx
mov ecx, eax
call fcn.0040d2b0
push ecx
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.0040ee70
lea eax, [ebp - 0x270]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x41736a
cmp dword [ebx + 4], 0x3e8
jb 0x417320
push 2
push edi
call fcn.0041aef0
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41738b
push 2
push eax
call fcn.0041aef0
add esp, 8
mov edx, dword [ebx + 4]
cmp edx, 0xb
jbe 0x4174e3
test edx, edx
je 0x4173b0
push 0x418240
push 4
push edx
push dword [ebx]
call fcn.00426dd0
mov edx, dword [ebx + 4]
add esp, 0x10
xor ecx, ecx
lea eax, [edx - 0xb]
mov dword [ebp - 0x280], ecx
test eax, eax
je 0x4174e3
cmp ecx, edx
jae 0x4174ce
mov eax, dword [ebx]
test eax, eax
je 0x4174ce
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x4174ce
push 0x453474
lea ecx, [ebp - 0x294]
call fcn.0040d340
push 0x452260
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 6
call fcn.0040e1f0
push esi
lea ecx, [ebp - 0x294]
call fcn.0040e1f0
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040d340
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.0040e6a0
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push esi
mov edi, eax
call fcn.0041aef0
add esp, 8
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x18]
cmp edi, 0xffffffff
setne byte [ebp - 0x271]
test eax, eax
je 0x417468
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [ebp - 0x18], 0
cmp byte [ebp - 0x271], 0
mov dword [ebp - 0x14], 0
je 0x41749b
lea ecx, [ebp - 0x294]
call fcn.0040e6a0
mov esi, eax
test esi, esi
je 0x41749b
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 2
push esi
call fcn.0041aef0
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x294]
test eax, eax
je 0x4174be
push 2
push eax
call fcn.0041aef0
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 0x4173c3
mov eax, dword [ebx + 4]
xor edi, edi
test eax, eax
je 0x41752e
cmp edi, eax
jae 0x417526
mov esi, dword [ebx]
test esi, esi
je 0x417526
mov esi, dword [esi + edi*4]
test esi, esi
je 0x417526
mov eax, dword [esi]
test eax, eax
je 0x417514
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0041aef0
add esp, 8
mov eax, dword [ebx + 4]
inc edi
cmp edi, eax
jb 0x4174f0
mov eax, dword [ebx]
test eax, eax
je 0x417545
push 4
push eax
call fcn.0041aef0
add esp, 8
mov dword [ebx], 0
push 8
push ebx
mov dword [ebx + 4], 0
call fcn.0041aef0
mov esi, dword [0x453478]
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.0041b26a
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 0x4175ae
cmp ecx, dword [0x453478]
jb 0x41759c
xor eax, eax
jmp 0x4175a5
mov eax, dword [0x453474]
movzx eax, word [eax + ecx*2]
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, esi
jb 0x417590
push 0x452260
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 8
call fcn.0040e1f0
push dword [ebp - 0x27c]
lea ecx, [ebp - 0x288]
call fcn.0040e1f0
push 0xa
mov dword [ebp - 0x278], 0
mov esi, 4
call fcn.0041b26a
add esp, 4
mov edi, eax
lea eax, [ebp - 0x278]
mov dword [ebp - 0x18], edi
push 0xffffffffffffffff
push 0x44c6ec
push 5
push edi
push eax
call fcn.00426d70
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.0040e1f0
mov byte [ebp - 4], 8
test edi, edi
je 0x41763a
push 2
push edi
call fcn.0041aef0
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.0041b26a
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 0x417688
mov edi, dword [ebp - 0x288]
mov ecx, ebx
sub edi, ebx
cmp edx, esi
jae 0x41767d
movzx eax, word [edi + ecx]
mov word [ecx], ax
inc edx
add ecx, 2
cmp edx, esi
jb 0x417679
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call fcn.0040e6a0
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push esi
mov edi, eax
call fcn.0041aef0
add esp, 8
mov byte [ebp - 4], 8
cmp edi, 0xffffffff
setne al
mov byte [ebp - 0x271], al
test ebx, ebx
je 0x4176cf
push 2
push ebx
call fcn.0041aef0
mov al, byte [ebp - 0x271]
add esp, 8
test al, al
je 0x4176f6
lea ecx, [ebp - 0x288]
call fcn.0040e6a0
mov esi, eax
test esi, esi
je 0x4176f6
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 2
push esi
call fcn.0041aef0
add esp, 8
mov eax, dword [ebp - 0x288]
test eax, eax
je 0x41770b
push 2
push eax
call fcn.0041aef0
add esp, 8
mov eax, dword [ebp - 0x29c]
test eax, eax
je 0x417720
push 2
push eax
call fcn.0041aef0
add esp, 8
mov ebx, dword [ebp - 0x27c]
mov eax, dword [ebx]
test eax, eax
je 0x41773d
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [ebx], 0
push 8
push ebx
mov dword [ebx + 4], 0
call fcn.0041aef0
mov esi, dword [ebp - 0x28c]
add esp, 8
mov eax, dword [esi]
test eax, eax
je 0x41776c
push 2
push eax
call fcn.0041aef0
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0041aef0
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.0041ab17
mov esp, ebp
pop ebp
ret