Function at 0x42fe80
Capabilities:
Check os version
Get file size
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x99c]
sub esp, 0x99c
push 0xfffffffffffffffe
push 0x670090
push 0x5dfbd0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x6aae14]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x998], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov byte [ebp + 0x94], bl
push 0x3ff
push ebx
lea eax, [ebp + 0x95]
push eax
call fcn.005dfd60
mov byte [ebp + 0x494], bl
push 0x3ff
push ebx
lea ecx, [ebp + 0x495]
push ecx
call fcn.005dfd60
mov byte [ebp + 0x894], bl
push 0x103
push ebx
lea edx, [ebp + 0x895]
push edx
call fcn.005dfd60
add esp, 0x24
mov dword [ebp - 0x20], ebx
or esi, 0xffffffff
mov dword [ebp - 0x1c], esi
cmp dword [0x67f33c], esi
jne 0x42ff54
push 0x94
push ebx
lea eax, [ebp]
push eax
call fcn.005dfd60
add esp, 0xc
mov dword [ebp], 0x94
lea ecx, [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor edx, edx
cmp dword [ebp + 0x10], 2
sete dl
mov dword [0x67f33c], edx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], esi
jne 0x42ff8c
push ebx
push 0x80
push 4
push ebx
push 3
push 0xc0000000
push 0x6b3240
call fcn.004e0400
add esp, 0x1c
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x43014f
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
lea eax, [ebp + 0x894]
push eax
call fcn.004f00d0
add esp, 8
cmp dword [0x67f33c], ebx
je 0x42ffcf
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [ebp + 0x894]
push ecx
push str._s__0x_04x__0x_04x___
lea edx, [ebp + 0x494]
push edx
call fcn.005dfb23
add esp, 0x14
jmp 0x42fff6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor eax, 0xff000000
push eax
lea eax, [ebp + 0x894]
push eax
push str._s__0x_08x___
lea ecx, [ebp + 0x494]
push ecx
call fcn.005dfb23
add esp, 0x10
lea edx, [ebp + 0x9a8]
push edx
mov eax, dword [ebp + 0x9a4]
push eax
lea ecx, [ebp + 0x94]
push ecx
call fcn.005e2cf9
add esp, 0xc
cmp byte [ebp + 0x94], 0xa
jne 0x430024
mov byte [ebp + 0x494], bl
jmp 0x43005c
lea eax, [ebp + 0x94]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x430030
sub eax, edx
lea edi, [ebp + 0x494]
add edi, esi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x430041
mov ecx, eax
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or esi, 0xffffffff
push 0xd
lea edx, [ebp + 0x494]
push edx
call fcn.005e0940
add esp, 8
test eax, eax
jne 0x430091
lea edi, [ebp + 0x494]
add edi, esi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x430080
mov ax, word [0x61c5e0]
mov word [edi], ax
push 0xa
lea ecx, [ebp + 0x494]
push ecx
call fcn.005e0940
add esp, 8
test eax, eax
jne 0x4300c2
lea edi, [ebp + 0x494]
add edi, esi
mov edi, edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4300b0
mov dx, word [0x60cc70]
mov word [edi], dx
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x43014f
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 0x494]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4300e1
sub eax, edx
mov esi, eax
push ebx
lea eax, [ebp - 0x20]
push eax
push esi
lea ecx, [ebp + 0x494]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x430119
lea eax, [ebp - 0x1c]
push eax
call fcn.004dca10
mov dword [ebp - 0x1c], 0xffffffff
jmp 0x43014f
cmp esi, dword [ebp - 0x20]
je 0x430130
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004dca10
mov dword [ebp - 0x1c], 0xffffffff
jmp 0x43014f
or esi, 0xffffffff
cmp dword [ebp - 0x1c], esi
je 0x43014f
lea edx, [ebp - 0x1c]
push edx
call fcn.004dca10
mov dword [ebp - 0x1c], esi
jmp 0x43014f
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x998]
xor ecx, ebp
call fcn.005dfbbe
add ebp, 0x99c
mov esp, ebp
pop ebp
ret