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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce326
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x4fbf60]
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 esi, ecx
xor ebx, ebx
cmp esi, ebx
je 0x41d4d6
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call edi
cmp eax, 0xffffffff
je 0x41cf7c
test al, 0x10
jne 0x41cf97
push esi
call edi
cmp eax, 0xffffffff
je 0x41d4d6
test al, 0x10
jne 0x41d4d6
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [0x4ded68]
mov ecx, dword [0x4ded6c]
mov dx, word [0x4ded70]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x14], dx
mov dword [ebp - 0x2d4], ebx
mov dword [ebp - 0x2d0], ebx
mov dword [ebp - 0x2cc], ebx
mov dword [ebp - 4], ebx
xor eax, eax
mov word [ebp - 0x54], ax
mov eax, esi
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41cfe0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x54]
call fcn.004028fc
lea ecx, [ebp - 0x54]
lea edi, [ebp - 0x2d4]
mov byte [ebp - 4], 1
call fcn.004134b0
cmp dword [ebp - 0x40], 8
jb 0x41d01d
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.0047f3b4
add esp, 4
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x2e8], ebx
mov dword [ebp - 0x2e4], edi
mov dword [ebp - 0x2e0], edi
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2d0]
mov esi, dword [ebp - 0x2d4]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x2c4], edi
je 0x41d2d3
mov dword [ebp - 0x2d8], ebx
lea ebx, [ebx]
mov eax, dword [ebp - 0x2d8]
push 0xffffffffffffffff
add eax, esi
push ebx
xor edx, edx
push eax
lea ecx, [ebp - 0x70]
mov edi, 8
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], ebx
mov word [ebp - 0x70], dx
call fcn.0040238a
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
xor eax, eax
push ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x38], ax
call fcn.0040238a
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41d0c6
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x38]
call fcn.0040285b
push 0x24c
lea eax, [ebp - 0x2bc]
push ebx
push eax
mov dword [ebp - 0x2c0], ebx
call fcn.00483200
mov eax, dword [ebp - 0x38]
add esp, 0xc
cmp dword [ebp - 0x24], edi
jae 0x41d108
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x2c0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41d2f1
lea ecx, [ebp - 0x294]
mov eax, 0x4debb8
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41d156
cmp dx, bx
je 0x41d152
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41d156
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x41d130
xor eax, eax
jmp 0x41d15b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x41d232
lea ecx, [ebp - 0x294]
mov eax, 0x4ded74
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41d196
cmp dx, bx
je 0x41d192
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41d196
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x41d170
xor eax, eax
jmp 0x41d19b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x41d232
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x70]
xor edx, edx
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], ebx
mov word [ebp - 0x54], dx
call fcn.0040238a
push 1
push 0x4db064
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 5
call fcn.0040285b
lea eax, [ebp - 0x294]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41d1e0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x294]
push ecx
lea ecx, [ebp - 0x54]
call fcn.0040285b
test byte [ebp - 0x2c0], 0x10
lea ecx, [ebp - 0x54]
lea edi, [ebp - 0x2d4]
jne 0x41d217
lea edi, [ebp - 0x2e8]
call fcn.004134b0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x40], 8
jb 0x41d232
mov edx, dword [ebp - 0x54]
push edx
call fcn.0047f3b4
add esp, 4
lea eax, [ebp - 0x2c0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41d121
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 8
cmp dword [ebp - 0x24], esi
jb 0x41d265
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.0047f3b4
add esp, 4
xor edx, edx
mov byte [ebp - 4], 2
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x38], dx
cmp dword [ebp - 0x5c], esi
jb 0x41d28a
mov eax, dword [ebp - 0x70]
push eax
call fcn.0047f3b4
add esp, 4
mov ecx, dword [ebp - 0x2d0]
mov esi, dword [ebp - 0x2d4]
mov edi, dword [ebp - 0x2c4]
add dword [ebp - 0x2d8], 0x1c
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
inc edi
add ecx, edx
mov dword [ebp - 0x2c4], edi
cmp edi, ecx
jb 0x41d070
mov edi, dword [ebp - 0x2e4]
mov ebx, dword [ebp - 0x2e8]
mov esi, ebx
cmp ebx, edi
je 0x41d3b4
lea ecx, [ecx]
cmp dword [esi + 0x14], 8
jb 0x41d39a
mov eax, dword [esi]
jmp 0x41d39c
cmp dword [ebp - 0x24], edi
jb 0x41d302
mov edx, dword [ebp - 0x38]
push edx
call fcn.0047f3b4
add esp, 4
xor eax, eax
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x38], ax
cmp dword [ebp - 0x5c], edi
jb 0x41d323
mov ecx, dword [ebp - 0x70]
push ecx
call fcn.0047f3b4
add esp, 4
mov esi, dword [ebp - 0x2e8]
xor edx, edx
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], dx
test esi, esi
je 0x41d365
mov eax, dword [ebp - 0x2c4]
mov edx, dword [ebp - 0x2e4]
push eax
lea ecx, [ebp - 0x2dc]
push ecx
push edx
push esi
call fcn.004140c0
push esi
call fcn.0047f3b4
add esp, 0x14
mov esi, dword [ebp - 0x2d4]
test esi, esi
je 0x41d393
mov eax, dword [ebp - 0x2c4]
mov edx, dword [ebp - 0x2d0]
push eax
lea ecx, [ebp - 0x2c8]
push ecx
push edx
push esi
call fcn.004140c0
push esi
call fcn.0047f3b4
add esp, 0x14
xor al, al
jmp 0x41d4d8
mov eax, esi
push eax
call fcn.00480ea0
add esp, 4
test eax, eax
jne 0x41d3d1
add esi, 0x1c
cmp esi, edi
jne 0x41d2e0
mov esi, dword [ebp - 0x2d0]
mov eax, dword [ebp - 0x2d4]
cmp esi, eax
je 0x41d443
add esi, 0xffffffe4
cmp dword [esi + 0x14], 8
jb 0x41d420
mov eax, dword [esi]
jmp 0x41d422
cmp esi, edi
je 0x41d3b4
test ebx, ebx
je 0x41d3f7
mov eax, dword [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x2dc]
push ecx
push edi
push ebx
call fcn.004140c0
push ebx
call fcn.0047f3b4
add esp, 0x14
cmp dword [ebp - 0x2d4], 0
je 0x41d393
mov edx, dword [ebp - 0x2c4]
mov ecx, dword [ebp - 0x2d0]
mov esi, dword [ebp - 0x2d4]
push edx
lea eax, [ebp - 0x2c8]
push eax
push ecx
jmp 0x41d384
mov eax, esi
push eax
call fcn.0048083e
add esp, 4
test eax, eax
jne 0x41d4f4
mov eax, dword [ebp - 0x2d4]
sub esi, 0x1c
lea edx, [esi + 0x1c]
cmp edx, eax
jne 0x41d3c7
test ebx, ebx
je 0x41d48a
mov esi, ebx
cmp ebx, edi
je 0x41d47b
lea ecx, [ecx]
cmp dword [esi + 0x14], 8
jb 0x41d461
mov edx, dword [esi]
push edx
call fcn.0047f3b4
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
add esi, 0x1c
cmp esi, edi
jne 0x41d450
push ebx
call fcn.0047f3b4
mov eax, dword [ebp - 0x2d4]
add esp, 4
test eax, eax
je 0x41d4d6
mov esi, eax
cmp eax, dword [ebp - 0x2d0]
je 0x41d4c7
cmp dword [esi + 0x14], 8
jb 0x41d4a9
mov ecx, dword [esi]
push ecx
call fcn.0047f3b4
add esp, 4
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], dx
add esi, 0x1c
cmp esi, dword [ebp - 0x2d0]
jne 0x41d498
mov eax, dword [ebp - 0x2d4]
push eax
call fcn.0047f3b4
add esp, 4
mov al, 1
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.0047f164
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x41d534
mov esi, ebx
cmp ebx, edi
je 0x41d52b
mov edi, edi
cmp dword [esi + 0x14], 8
jb 0x41d511
mov eax, dword [esi]
push eax
call fcn.0047f3b4
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
add esi, 0x1c
cmp esi, edi
jne 0x41d500
push ebx
call fcn.0047f3b4
add esp, 4
mov esi, dword [ebp - 0x2d4]
test esi, esi
je 0x41d393
cmp dword [esi + 0x14], 8
jb 0x41d553
mov edx, dword [esi]
push edx
call fcn.0047f3b4
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
add esi, 0x1c
cmp esi, dword [ebp - 0x2d0]
jne 0x41d542
mov ecx, dword [ebp - 0x2d4]
push ecx
call fcn.0047f3b4
add esp, 4
xor al, al
jmp 0x41d4d8