Function at 0x4fb300
Capabilities:
Check os version
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594e28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xccc
push ebx
push esi
push edi
push 1
push 0x1a
lea eax, [ebp - 0x4d8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.StaffCopports.dat
lea ecx, [ebp - 0x4d8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 4
push 0
push 0
push bind
lea edx, [ebp - 0x4d8]
push edx
call ebx
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 2]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
lea ecx, [ebp - 0x24]
push ecx
push edi
push eax
push esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x4d8]
push edx
call ebx
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
push 0x400
lea ecx, [ebp - 0xcd8]
push ecx
push edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0
call fcn.004fb260
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
test eax, eax
je 0x4fb52e
jmp 0x4fb400
xor esi, esi
cmp word [ebp - 0xcd8], si
je 0x4fb505
lea eax, [ebp - 0xcd8]
cmp word [eax], 0x3a
je 0x4fb433
inc esi
cmp word [ebp + esi*2 - 0xcd8], 0
lea eax, [ebp + esi*2 - 0xcd8]
jne 0x4fb415
jmp 0x4fb505
lea eax, [ebp - 0xcd8]
push eax
lea ecx, [ebp - 0x2d0]
xor edx, edx
push ecx
mov word [ebp + esi*2 - 0xcd8], dx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp + esi*2 - 0xcd6]
push edx
lea eax, [ebp - 0xec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0xec]
push ecx
call fcn.005553b5
movzx esi, ax
push esi
lea eax, [ebp - 0xec]
push 0x5a3824
push eax
call ebx
xor eax, eax
add esp, 0x10
test si, si
setne al
test eax, eax
je 0x4fb505
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0xcd8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
lea eax, [ebp - 0xcd8]
jne 0x4fb4c5
movzx edx, word [ebp + 0xc]
push edx
push esi
push str._s:_d_r_n
push eax
call ebx
mov dword [ebp - 0x14], 1
jmp 0x4fb4db
lea ecx, [ebp - 0xec]
push ecx
lea edx, [ebp - 0x2d0]
push edx
push str._s:_s_r_n
push eax
call ebx
add esp, 0x10
push 0
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0xcd8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x1c]
add eax, eax
push eax
lea eax, [ebp - 0xcd8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x18]
push edx
push 0x400
lea eax, [ebp - 0xcd8]
push eax
push ecx
call fcn.004fb260
add esp, 0x10
test eax, eax
jne 0x4fb400
cmp dword [ebp - 0x14], eax
jne 0x4fb56f
movzx edx, word [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push eax
lea ecx, [ebp - 0xcd8]
push str._s:_d_r_n
push ecx
call ebx
add esp, 0x10
push 0
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0xcd8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 0x1c]
add eax, eax
push eax
lea ecx, [ebp - 0xcd8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0x10], esi
je 0x4fb620
lea ecx, [ebp - 0x10]
call fcn.00513a70
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x208]
push ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x208], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4fb611
cmp dword [ebp - 0x204], 5
jne 0x4fb611
cmp dword [ebp - 0x200], 1
jne 0x4fb611
cmp word [ebp - 0xf4], 2
jne 0x4fb611
lea ecx, [ebp - 0x10]
call fcn.00513a80
cmp eax, esi
jne 0x4fb611
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x10]
call fcn.00513bc0
cmp dword [ebp - 0x20], esi
je 0x4fb609
movzx eax, word [ebp + 0xc]
push 0x5a00a4
push 6
push eax
lea ecx, [ebp - 0x10]
call fcn.00514140
lea ecx, [ebp - 0x10]
call fcn.00513ba0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00514490
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret