Function at 0x4315a0
Capabilities:
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 0
push 0
push 0x80
push 4
push 0
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x4315e4
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
add edx, 1
push edx
call fcn.00466e66
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.00488f20
add esp, 0xc
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00466e66
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
lea edx, [ecx + ecx + 2]
push edx
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.00488f20
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0040ce80
add esp, 8
mov eax, dword [ebp - 4]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00488f20
add esp, 0xc
mov edx, dword [ebp - 4]
lea eax, [edx + edx + 1]
push eax
call fcn.00466e66
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 4]
lea eax, [edx + edx + 1]
push eax
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00488f20
add esp, 0xc
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0040cf20
add esp, 0xc
push 0x55e4a0
mov edx, dword [ebp + 0xc]
push edx
call fcn.0048e223
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x43176a
mov byte [ebp - 0x1d], 0xef
mov eax, dword [ebp - 8]
push eax
push 1
push 1
lea ecx, [ebp - 0x1d]
push ecx
call fcn.0048e0db
add esp, 0x10
mov byte [ebp - 0x1d], 0xbb
mov edx, dword [ebp - 8]
push edx
push 1
push 1
lea eax, [ebp - 0x1d]
push eax
call fcn.0048e0db
add esp, 0x10
mov byte [ebp - 0x1d], 0xbf
mov ecx, dword [ebp - 8]
push ecx
push 1
push 1
lea edx, [ebp - 0x1d]
push edx
call fcn.0048e0db
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
sub ecx, 1
push ecx
push 1
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0048e0db
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.0048defd
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.00466e71
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00466e71
add esp, 4
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.00466e71
add esp, 4
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esp, ebp
pop ebp
ret 8