Function at 0x5b23c0
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 0x667238
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 connect
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.005b2320
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
test eax, eax
je 0x5b25ee
jmp 0x5b24c0
xor esi, esi
cmp word [ebp - 0xcd8], si
je 0x5b25c5
lea eax, [ebp - 0xcd8]
cmp word [eax], 0x3a
je 0x5b24f3
inc esi
cmp word [ebp + esi*2 - 0xcd8], 0
lea eax, [ebp + esi*2 - 0xcd8]
jne 0x5b24d5
jmp 0x5b25c5
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.006115b5
movzx esi, ax
push esi
lea eax, [ebp - 0xec]
push 0x66fb00
push eax
call ebx
xor eax, eax
add esp, 0x10
test si, si
setne al
test eax, eax
je 0x5b25c5
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 0x5b2585
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 0x5b259b
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.005b2320
add esp, 0x10
test eax, eax
jne 0x5b24c0
cmp dword [ebp - 0x14], eax
jne 0x5b262f
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 0x5b26e0
lea ecx, [ebp - 0x10]
call fcn.005bffc0
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 0x5b26d1
cmp dword [ebp - 0x204], 5
jne 0x5b26d1
cmp dword [ebp - 0x200], 1
jne 0x5b26d1
cmp word [ebp - 0xf4], 2
jne 0x5b26d1
lea ecx, [ebp - 0x10]
call fcn.005bffd0
cmp eax, esi
jne 0x5b26d1
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x10]
call fcn.005c0110
cmp dword [ebp - 0x20], esi
je 0x5b26c9
movzx eax, word [ebp + 0xc]
push 0x66f998
push 6
push eax
lea ecx, [ebp - 0x10]
call fcn.005c0690
lea ecx, [ebp - 0x10]
call fcn.005c00f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.005c09e0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret