Function at 0x42a2f0
Capabilities:
Check if file exists
Delete file
Get file attributes
Read file on windows
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d459
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x178
mov eax, dword [0x5afb3c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x13c], edi
sub esp, 0x18
xor esi, esi
mov ecx, esp
mov dword [ebp - 0x114], esi
mov dword [ebp - 4], esi
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], esi
cmp dword [ecx + 0x14], 0x10
jb 0x42a361
mov eax, dword [ecx]
jmp 0x42a363
mov eax, ecx
push 0xffffffffffffffff
push 0
push edi
mov byte [eax], 0
call fcn.00427790
call fcn.0042c7a0
add esp, 0x18
test eax, eax
je 0x42a9ec
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x118], 0
jb 0x42a394
mov eax, dword [edi]
jmp 0x42a396
mov eax, edi
push 0x59f4b4
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0052d562
add esp, 0xc
push 2
push 0
push dword [ebp - 0x118]
call fcn.0052f3b4
add esp, 0xc
push dword [ebp - 0x118]
call fcn.0052f0d4
add esp, 4
mov dword [ebp - 0x120], eax
inc eax
mov dword [ebp - 0x140], eax
push eax
call fcn.00527036
add esp, 4
mov edi, eax
push dword [ebp - 0x140]
push 0
push edi
call fcn.00529cc0
add esp, 0xc
push 0
push 0
push dword [ebp - 0x118]
call fcn.0052f3b4
add esp, 0xc
push dword [ebp - 0x118]
push dword [ebp - 0x120]
push 1
push edi
call fcn.0052f59b
push dword [ebp - 0x118]
call fcn.0052d097
mov ecx, edi
add esp, 0x14
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42a430
sub ecx, edx
mov dword [ebp - 0x38], 0xf
push ecx
push edi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], al
call fcn.004276d0
push edi
mov byte [ebp - 4], 1
call fcn.00526ba7
add esp, 4
lea ecx, [ebp - 0x98]
xorps xmm0, xmm0
movups xmmword [ebp - 0x98], xmm0
push 0
movq qword [ebp - 0x88], xmm0
call fcn.0043f8e0
xorps xmm0, xmm0
mov byte [ebp - 4], 2
push 0
lea ecx, [ebp - 0x80]
movq qword [ebp - 0x70], xmm0
movups xmmword [ebp - 0x80], xmm0
call fcn.0043f8e0
push 0x74
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 3
push 0
push eax
call fcn.00529cc0
add esp, 0xc
lea ecx, [ebp - 0x110]
call fcn.004391f0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x4c]
cmp dword [ebp - 0x38], 0x10
mov dword [ebp - 0x174], 0xf
cmovae edx, dword [ebp - 0x4c]
mov dword [ebp - 0x178], 0
mov byte [ebp - 0x188], 0
cmp byte [edx], 0
jne 0x42a4ef
xor ecx, ecx
jmp 0x42a4fd
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42a4f4
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x188]
call fcn.004276d0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x188]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0xe8]
call fcn.00427790
cmp dword [ebp - 0xd4], 0x10
lea ecx, [ebp - 0xe8]
mov eax, dword [ebp - 0xd8]
lea edx, [ebp - 0x98]
cmovae ecx, dword [ebp - 0xe8]
push ecx
add eax, ecx
push edx
push eax
push ecx
lea ecx, [ebp - 0x110]
call fcn.00439320
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x174]
mov byte [ebp - 0x119], al
cmp ecx, 0x10
jb 0x42a583
inc ecx
push ecx
push dword [ebp - 0x188]
lea ecx, [ebp - 0x188]
call fcn.004279e0
mov al, byte [ebp - 0x119]
test al, al
je 0x42a9f0
xor edi, edi
nop dword [eax]
push 0x59f4c3
push str.DelFilePath
lea ecx, [ebp - 0x98]
call fcn.00440a40
mov ecx, eax
call fcn.00440570
push 0x59f4c3
push str.DelFilePath
cmp edi, eax
jae 0x42a8d9
xorps xmm0, xmm0
lea ecx, [ebp - 0x98]
movups xmmword [ebp - 0x68], xmm0
movq qword [ebp - 0x58], xmm0
call fcn.00440a40
push edi
mov ecx, eax
call fcn.004407f0
push eax
lea ecx, [ebp - 0x68]
call fcn.0043fac0
mov byte [ebp - 4], 6
cmp byte [ebp - 0x60], 0
je 0x42a8c7
push 0x59f4c8
push str.Path
lea ecx, [ebp - 0x68]
call fcn.00440a40
cmp byte [eax + 8], 0
jne 0x42a644
push 0
push 0x59f2d0
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x144], 0xf
mov dword [ebp - 0x148], 0
mov byte [ebp - 0x158], 0
call fcn.004276d0
lea eax, [ebp - 0x158]
or esi, 1
jmp 0x42a667
push 0x59f4c8
push str.Path
lea ecx, [ebp - 0x68]
call fcn.00440a40
lea ecx, [ebp - 0x170]
push ecx
mov ecx, eax
call fcn.0043fe60
or esi, 2
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x114], esi
call fcn.004273c0
mov eax, esi
mov dword [ebp - 4], 8
test al, 2
je 0x42a6cd
mov ecx, dword [ebp - 0x15c]
and eax, 0xfffffffd
mov dword [ebp - 0x114], eax
cmp ecx, 0x10
jb 0x42a6b2
lea eax, [ecx + 1]
push eax
push dword [ebp - 0x170]
lea ecx, [ebp - 0x170]
call fcn.004279e0
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x15c], 0xf
mov dword [ebp - 0x160], 0
mov byte [ebp - 0x170], 0
mov byte [ebp - 4], 9
test al, 1
je 0x42a717
and eax, 0xfffffffe
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x144]
cmp eax, 0x10
jb 0x42a6fc
inc eax
lea ecx, [ebp - 0x158]
push eax
push dword [ebp - 0x158]
call fcn.004279e0
mov dword [ebp - 0x144], 0xf
mov dword [ebp - 0x148], 0
mov byte [ebp - 0x158], 0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x124], 0xf
push eax
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x128], 0
mov byte [ebp - 0x138], 0
call fcn.00427790
cmp dword [ebp - 0x124], 0x10
lea eax, [ebp - 0x138]
cmovae eax, dword [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42a770
test al, 0x10
je 0x42a770
mov esi, 1
jmp 0x42a772
xor esi, esi
mov eax, dword [ebp - 0x124]
cmp eax, 0x10
jb 0x42a790
inc eax
lea ecx, [ebp - 0x138]
push eax
push dword [ebp - 0x138]
call fcn.004279e0
test esi, esi
je 0x42a8ac
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x42a7b5
mov eax, dword [ecx]
jmp 0x42a7b7
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.00427790
call fcn.0042c410
add esp, 0x18
mov dword [ebp - 0x124], 0xf
lea eax, [ebp - 0x34]
mov dword [ebp - 0x128], 0
lea ecx, [ebp - 0x138]
mov byte [ebp - 0x138], 0
push 0xffffffffffffffff
push 0
push eax
call fcn.00427790
cmp dword [ebp - 0x124], 0x10
lea eax, [ebp - 0x138]
cmovae eax, dword [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42a828
test al, 0x10
je 0x42a828
mov esi, 1
jmp 0x42a82a
xor esi, esi
mov eax, dword [ebp - 0x124]
cmp eax, 0x10
jb 0x42a848
inc eax
lea ecx, [ebp - 0x138]
push eax
push dword [ebp - 0x138]
call fcn.004279e0
test esi, esi
je 0x42a8ac
push 0x59f4d4
lea ecx, [ebp - 0x138]
call fcn.0043fa40
push 0x59f4d2
push str.Status
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xa
call fcn.00440a40
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 9
push ecx
mov ecx, eax
call fcn.0043fd80
lea ecx, [ebp - 0x138]
call fcn.0043fc60
push 0x59f4c3
push str.DelFilePath
lea ecx, [ebp - 0x80]
call fcn.00440a40
lea ecx, [ebp - 0x68]
push ecx
mov ecx, eax
call fcn.00440d60
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x42a8c1
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.004279e0
mov esi, dword [ebp - 0x114]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 4
call fcn.0043fc60
inc edi
jmp 0x42a590
lea ecx, [ebp - 0x80]
call fcn.00440a40
cmp byte [eax + 8], 0
mov eax, dword [ebp - 0x13c]
je 0x42a9aa
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0x114], 0
jb 0x42a903
mov eax, dword [eax]
push 0x59f4d8
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0052d562
add esp, 0xc
lea eax, [ebp - 0x170]
lea ecx, [ebp - 0x80]
push eax
call fcn.00441250
mov esi, eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x80]
call fcn.00441250
cmp dword [eax + 0x14], 0x10
jb 0x42a941
mov eax, dword [eax]
push dword [ebp - 0x114]
push dword [esi + 0x10]
push 1
push eax
call fcn.0052d34f
mov eax, dword [ebp - 0x20]
add esp, 0x10
cmp eax, 0x10
jb 0x42a96a
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.004279e0
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
cmp eax, 0x10
jb 0x42a99a
inc eax
lea ecx, [ebp - 0x170]
push eax
push dword [ebp - 0x170]
call fcn.004279e0
push dword [ebp - 0x114]
call fcn.0052d097
add esp, 4
jmp 0x42a9b9
cmp dword [eax + 0x14], 0x10
jb 0x42a9b2
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x110]
call fcn.0042aa60
lea ecx, [ebp - 0x80]
call fcn.0043fc60
lea ecx, [ebp - 0x98]
call fcn.0043fc60
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jb 0x42a9ec
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.004279e0
mov al, 1
jmp 0x42aa33
lea ecx, [ebp - 0x110]
call fcn.0042aa60
lea ecx, [ebp - 0x80]
call fcn.0043fc60
lea ecx, [ebp - 0x98]
call fcn.0043fc60
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jb 0x42aa31
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.004279e0
jmp 0x42aa31
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00526b2d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret