Function at 0x4250d0
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 0x5326e4
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x178
mov eax, dword [0x5949f0]
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 0x425141
mov eax, dword [ecx]
jmp 0x425143
mov eax, ecx
push 0xffffffffffffffff
push 0
push edi
mov byte [eax], 0
call fcn.004230b0
call fcn.00427750
add esp, 0x18
test eax, eax
je 0x425855
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x118], 0
jb 0x425174
mov eax, dword [edi]
jmp 0x425176
mov eax, edi
push 0x586120
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00511048
add esp, 0xc
push 2
push 0
push dword [ebp - 0x118]
call fcn.00512df8
add esp, 0xc
push dword [ebp - 0x118]
call fcn.00512b33
add esp, 4
mov dword [ebp - 0x120], eax
inc eax
mov dword [ebp - 0x140], eax
push eax
call fcn.0050adb3
add esp, 4
mov edi, eax
push dword [ebp - 0x140]
push 0
push edi
call fcn.0050da00
add esp, 0xc
push 0
push 0
push dword [ebp - 0x118]
call fcn.00512df8
add esp, 0xc
push dword [ebp - 0x118]
push dword [ebp - 0x120]
push 1
push edi
call fcn.00512fdf
push dword [ebp - 0x118]
call fcn.00510b88
mov ecx, edi
add esp, 0x14
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x425210
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.00422fb0
push edi
call fcn.0050a8f1
xorps xmm0, xmm0
add esp, 4
movups xmmword [ebp - 0x80], xmm0
mov dword [ebp - 0x74], 0
movq qword [ebp - 0x70], xmm0
psrldq xmm0, 8
movd eax, xmm0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
and eax, 0xfffffe00
mov dword [ebp - 0x78], eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x5c], 0
movq qword [ebp - 0x58], xmm0
psrldq xmm0, 8
movd eax, xmm0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
and eax, 0xfffffe00
mov dword [ebp - 0x60], eax
push 0x74
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 5
push 0
push eax
call fcn.0050da00
add esp, 0xc
lea ecx, [ebp - 0x110]
call fcn.00430e20
mov byte [ebp - 4], 6
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 0x4252f6
xor ecx, ecx
jmp 0x425309
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x425300
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x188]
call fcn.00422fb0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x188]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0xe8]
call fcn.004230b0
cmp dword [ebp - 0xd4], 0x10
lea ecx, [ebp - 0xe8]
mov eax, dword [ebp - 0xd8]
lea edx, [ebp - 0x80]
cmovae ecx, dword [ebp - 0xe8]
push ecx
add eax, ecx
push edx
push eax
push ecx
lea ecx, [ebp - 0x110]
call fcn.00430f50
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x174]
mov byte [ebp - 0x119], al
cmp ecx, 0x10
jb 0x42538c
inc ecx
push ecx
push dword [ebp - 0x188]
lea ecx, [ebp - 0x188]
call fcn.00423360
mov al, byte [ebp - 0x119]
test al, al
je 0x425859
xor edi, edi
nop word [eax + eax]
push 0x58612f
push str.DelFilePath
lea ecx, [ebp - 0x80]
call fcn.004386a0
mov ecx, eax
call fcn.004381a0
push 0x58612f
push str.DelFilePath
cmp edi, eax
jae 0x425745
xorps xmm0, xmm0
lea ecx, [ebp - 0x80]
movups xmmword [ebp - 0x98], xmm0
movq qword [ebp - 0x88], xmm0
call fcn.004386a0
push edi
mov ecx, eax
call fcn.00438450
push eax
lea ecx, [ebp - 0x98]
call fcn.00437720
mov byte [ebp - 4], 8
cmp byte [ebp - 0x90], 0
je 0x425730
push 0x586134
push str.Path
lea ecx, [ebp - 0x98]
call fcn.004386a0
cmp byte [eax + 8], 0
jne 0x42545d
push 0
push 0x585fa0
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x144], 0xf
mov dword [ebp - 0x148], 0
mov byte [ebp - 0x158], 0
call fcn.00422fb0
lea eax, [ebp - 0x158]
or esi, 1
jmp 0x425483
push 0x586134
push str.Path
lea ecx, [ebp - 0x98]
call fcn.004386a0
lea ecx, [ebp - 0x170]
push ecx
mov ecx, eax
call fcn.00437ab0
or esi, 2
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x114], esi
call fcn.00422c20
mov eax, esi
mov dword [ebp - 4], 0xa
test al, 2
je 0x4254e9
mov ecx, dword [ebp - 0x15c]
and eax, 0xfffffffd
mov dword [ebp - 0x114], eax
cmp ecx, 0x10
jb 0x4254ce
lea eax, [ecx + 1]
push eax
push dword [ebp - 0x170]
lea ecx, [ebp - 0x170]
call fcn.00423360
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x15c], 0xf
mov dword [ebp - 0x160], 0
mov byte [ebp - 0x170], 0
mov byte [ebp - 4], 0xb
test al, 1
je 0x425533
and eax, 0xfffffffe
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x144]
cmp eax, 0x10
jb 0x425518
inc eax
lea ecx, [ebp - 0x158]
push eax
push dword [ebp - 0x158]
call fcn.00423360
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.004230b0
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 0x42558c
test al, 0x10
je 0x42558c
mov esi, 1
jmp 0x42558e
xor esi, esi
mov eax, dword [ebp - 0x124]
cmp eax, 0x10
jb 0x4255ac
inc eax
lea ecx, [ebp - 0x138]
push eax
push dword [ebp - 0x138]
call fcn.00423360
test esi, esi
je 0x425715
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x4255d1
mov eax, dword [ecx]
jmp 0x4255d3
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.004230b0
call fcn.004273c0
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.004230b0
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 0x425644
test al, 0x10
je 0x425644
mov esi, 1
jmp 0x425646
xor esi, esi
mov eax, dword [ebp - 0x124]
cmp eax, 0x10
jb 0x425664
inc eax
lea ecx, [ebp - 0x138]
push eax
push dword [ebp - 0x138]
call fcn.00423360
test esi, esi
je 0x425715
sub esp, 0x18
mov edx, 3
mov esi, esp
mov dword [ebp - 0x120], esp
mov ecx, 0x586140
mov byte [esi + 8], 4
or dword [esi + 8], 0x100
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00436ed0
mov dword [esi], eax
push 0x58613e
push str.Status
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0xc
call fcn.004386a0
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.00437980
push 0x58612f
push str.DelFilePath
lea ecx, [ebp - 0x68]
call fcn.004386a0
sub esp, 0x18
mov esi, eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x120], esp
mov ecx, esp
push eax
call fcn.00437720
mov ecx, esi
mov byte [ebp - 4], 0xd
call fcn.004381a0
push eax
mov ecx, esi
call fcn.00438230
mov ecx, eax
mov byte [ebp - 4], 0xb
call fcn.00437980
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x42572a
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.00423360
mov esi, dword [ebp - 0x114]
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 6
call fcn.004378c0
inc edi
jmp 0x4253a0
lea ecx, [ebp - 0x68]
call fcn.004386a0
cmp byte [eax + 8], 0
mov eax, dword [ebp - 0x13c]
je 0x425816
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0x114], 0
jb 0x42576f
mov eax, dword [eax]
push 0x586144
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00511048
add esp, 0xc
lea eax, [ebp - 0x170]
lea ecx, [ebp - 0x68]
push eax
call fcn.00438ee0
mov esi, eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x68]
call fcn.00438ee0
cmp dword [eax + 0x14], 0x10
jb 0x4257ad
mov eax, dword [eax]
push dword [ebp - 0x114]
push dword [esi + 0x10]
push 1
push eax
call fcn.00510e40
mov eax, dword [ebp - 0x20]
add esp, 0x10
cmp eax, 0x10
jb 0x4257d6
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.00423360
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
cmp eax, 0x10
jb 0x425806
inc eax
lea ecx, [ebp - 0x170]
push eax
push dword [ebp - 0x170]
call fcn.00423360
push dword [ebp - 0x114]
call fcn.00510b88
add esp, 4
jmp 0x425825
cmp dword [eax + 0x14], 0x10
jb 0x42581e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x110]
call fcn.004258c0
lea ecx, [ebp - 0x68]
call fcn.004378c0
lea ecx, [ebp - 0x80]
call fcn.004378c0
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jb 0x425855
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.00423360
mov al, 1
jmp 0x425899
lea ecx, [ebp - 0x110]
call fcn.004258c0
lea ecx, [ebp - 0x68]
call fcn.004378c0
lea ecx, [ebp - 0x80]
call fcn.004378c0
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jb 0x425897
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.00423360
jmp 0x425897
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.0050a877
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret