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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0xb10b50
push 0xa847a0
mov eax, dword fs:[0]
push eax
sub esp, 0x9bc
mov eax, dword [0xb196ec]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], 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 - 0x92c], bl
push 0x3ff
push ebx
lea eax, [ebp - 0x92b]
push eax
call fcn.00a7ffb0
add esp, 0xc
mov byte [ebp - 0x52c], bl
push 0x3ff
push ebx
lea ecx, [ebp - 0x52b]
push ecx
call fcn.00a7ffb0
add esp, 0xc
mov byte [ebp - 0x12c], bl
push 0x103
push ebx
lea edx, [ebp - 0x12b]
push edx
call fcn.00a7ffb0
add esp, 0xc
mov dword [ebp - 0x9cc], ebx
cmp dword [0xb47b24], 0xffffffff
jne 0x8803a9
push 0x94
push ebx
lea eax, [ebp - 0x9c4]
push eax
call fcn.00a7ffb0
add esp, 0xc
mov dword [ebp - 0x9c4], 0x94
lea ecx, [ebp - 0x9c4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor edx, edx
cmp dword [ebp - 0x9b4], 2
sete dl
mov dword [0xb47b24], edx
mov dword [ebp - 4], ebx
push 0x80
push 4
push 3
push 0xc0000000
mov edi, 0xb586c8
call fcn.0094db00
add esp, 0x10
mov edi, eax
mov dword [ebp - 0x9c8], edi
cmp edi, 0xffffffff
je 0x8805a7
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ebx, ebx
lea esi, [ebp - 0x12c]
call fcn.00985ed0
cmp dword [0xb47b24], ebx
je 0x88041c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov eax, esi
push eax
push str._s__0x_04x__0x_04x___
lea ecx, [ebp - 0x52c]
push ecx
call fcn.00a78f30
add esp, 0x14
jmp 0x880443
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor eax, 0xff000000
push eax
lea edx, [ebp - 0x12c]
push edx
push str._s__0x_08x___
lea eax, [ebp - 0x52c]
push eax
call fcn.00a78f30
add esp, 0x10
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x92c]
push eax
call fcn.00a7b631
add esp, 0xc
cmp byte [ebp - 0x92c], 0xa
jne 0x88046e
mov byte [ebp - 0x52c], bl
or ebx, 0xffffffff
jmp 0x8804ae
lea eax, [ebp - 0x92c]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x880476
sub eax, edx
lea edi, [ebp - 0x52c]
or ebx, 0xffffffff
add edi, ebx
lea ebx, [ebx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x880490
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]
mov edi, dword [ebp - 0x9c8]
push 0xd
lea ecx, [ebp - 0x52c]
push ecx
call fcn.00a7a2c0
add esp, 8
test eax, eax
jne 0x8804e8
lea edi, [ebp - 0x52c]
add edi, ebx
jmp 0x8804d0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x8804d0
mov dx, word [0xab76dc]
mov word [edi], dx
mov edi, dword [ebp - 0x9c8]
push 0xa
lea eax, [ebp - 0x52c]
push eax
call fcn.00a7a2c0
add esp, 8
test eax, eax
jne 0x88051d
lea edi, [ebp - 0x52c]
add edi, ebx
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x880505
mov cx, word [0xaa17f8]
mov word [edi], cx
mov edi, dword [ebp - 0x9c8]
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x52c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x880533
sub eax, edx
mov esi, eax
push 0
lea edx, [ebp - 0x9cc]
push edx
push esi
lea eax, [ebp - 0x52c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x88056e
lea ecx, [ebp - 0x9c8]
push ecx
call fcn.00985290
mov dword [ebp - 0x9c8], ebx
jmp 0x8805a7
cmp esi, dword [ebp - 0x9cc]
je 0x88058a
lea edx, [ebp - 0x9c8]
push edx
call fcn.00985290
mov dword [ebp - 0x9c8], ebx
jmp 0x8805a7
lea eax, [ebp - 0x9c8]
push eax
call fcn.00985290
mov dword [ebp - 0x9c8], ebx
jmp 0x8805a7
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 - 0x20]
xor ecx, ebp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret