Function at 0x10005b00
Capabilities:
Check os version
Delete file
Write file on windows

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1bc
mov ebx, dword [ebp + 8]
mov word [ebp - 0x1a2], ax
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x194], 0
lea edi, [ebx - 4]
mov dword [ebp - 0x190], 0
mov dword [ebp - 0x18c], 0
mov dword [ebp - 0x188], 0
mov dword [ebp - 0x184], 0
test byte [0x1000c0a0], 8
jne 0x10005f20
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10006010
mov dword [ebp - 0x1a8], 1
mov eax, dword [ebx - 4]
lea edx, [ebp - 0x188]
mov dword [esp], edi
mov dword [esp + 4], edx
call dword [eax + 0x4c]
mov eax, dword [ebp - 0x188]
sub esp, 8
test eax, eax
je 0x10006040
mov eax, dword [ebx - 4]
lea edx, [ebp - 0x18c]
mov dword [esp], edi
mov dword [esp + 4], edx
call dword [eax + 0x54]
mov esi, dword [ebp - 0x18c]
sub esp, 8
test esi, esi
je 0x10006030
mov eax, dword [ebx - 4]
lea edx, [ebp - 0x198]
mov dword [esp], edi
mov dword [esp + 4], edx
call dword [eax + 0x84]
mov eax, dword [ebx - 4]
lea edx, [ebp - 0x194]
sub esp, 8
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [eax + 0x8c]
mov eax, dword [ebx - 4]
lea edx, [ebp - 0x190]
sub esp, 8
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [eax + 0x94]
mov eax, dword [ebx - 4]
lea edx, [ebp - 0x184]
sub esp, 8
mov dword [esp + 8], edx
lea edx, [ebp - 0x1a2]
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [eax + 0x5c]
sub esp, 0xc
call dword [sym.imp.kernel32.dll_GetVersion]
mov edx, dword [ebp - 0x198]
mov ecx, 1
mov dword [ebp - 0x168], 0x480046
rol ax, 8
mov word [ebp - 0x17a], cx
mov word [ebp - 0x17c], ax
mov eax, 0x4a
test edx, edx
je 0x10005c7e
cmp word [edx], 0
je 0x10006550
mov eax, edx
nop
add eax, 2
cmp word [eax], 0
jne 0x10005c70
sub eax, edx
add eax, 0x4c
mov ecx, dword [ebp - 0x194]
mov word [ebp - 0x166], ax
test ecx, ecx
je 0x10005cb0
cmp word [ecx], 0
je 0x10006560
mov edx, ecx
nop
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x10005ca0
sub edx, ecx
add edx, 2
add eax, edx
mov ecx, dword [ebp - 0x190]
add eax, 2
mov word [ebp - 0x166], ax
test ecx, ecx
je 0x10005ce0
cmp word [ecx], 0
je 0x10006530
mov edx, ecx
add edx, 2
cmp word [edx], 0
jne 0x10005cd0
sub edx, ecx
add edx, 2
add eax, edx
mov ecx, dword [ebp - 0x18c]
add eax, 2
mov word [ebp - 0x166], ax
test ecx, ecx
je 0x10005d10
cmp word [ecx], 0
je 0x10006540
mov edx, ecx
add edx, 2
cmp word [edx], 0
jne 0x10005d00
sub edx, ecx
add edx, 2
add eax, edx
mov ecx, dword [ebp - 0x188]
add eax, 2
mov word [ebp - 0x166], ax
test ecx, ecx
je 0x10005d40
cmp word [ecx], 0
je 0x10006520
mov edx, ecx
add edx, 2
cmp word [edx], 0
jne 0x10005d30
sub edx, ecx
add edx, 2
add eax, edx
movzx edx, word [ebp - 0x1a2]
mov dword [ebp - 0x164], 0
lea eax, [eax + edx + 0xc]
mov word [ebp - 0x166], ax
movzx eax, word [ebx + 0x30]
mov word [ebp - 0x15e], ax
movzx eax, word [ebx + 0x32]
mov word [ebp - 0x160], ax
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x15c], eax
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x158], eax
mov eax, dword [ebx + 0x40]
mov dword [ebp - 0x154], eax
mov eax, dword [ebx + 0x2c]
cmp eax, 0x41305
je 0x10005f00
mov dword [ebp - 0x150], eax
mov eax, dword [ebx + 0x34]
mov esi, 3
mov dword [ebp - 0x1ac], edi
mov edi, dword [ebp - 0x1a8]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x148], eax
mov eax, dword [ebx + 0x48]
mov dword [ebp - 0x144], eax
mov eax, dword [ebx + 0x4c]
mov dword [ebp - 0x140], eax
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
jne 0x10006198
sub esi, 1
je 0x10005e40
mov dword [esp], 0x64
call dword [sym.imp.kernel32.dll_Sleep]
sub esp, 4
jmp 0x10005ddf
mov dword [ebp - 0x1a8], eax
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x34]
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovg esi, eax
mov eax, dword [ebp - 0x198]
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x194]
sub esp, 4
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x190]
sub esp, 4
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x18c]
sub esp, 4
cmp eax, str.Wine
je 0x10005ea1
mov dword [esp], eax
call edi
sub esp, 4
mov eax, dword [ebp - 0x188]
cmp eax, str.Created_by_Wine
je 0x10005eb6
mov dword [esp], eax
call edi
sub esp, 4
mov eax, dword [ebp - 0x184]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x1a8]
sub esp, 4
cmp eax, 0xffffffff
je 0x10005eee
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
test esi, esi
jne 0x10006050
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x10006070
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov edx, dword [ebx + 0x58]
test edx, edx
je 0x10005d9b
mov dword [ebx + 0x2c], 0x41303
mov eax, 0x41303
jmp 0x10005d9b
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10006587
mov eax, dword [ebp + 0xc]
shr eax, 0x10
je 0x100060a0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x1000e207
sub esp, 8
test eax, eax
jne 0x100060b6
mov esi, dword [ebp + 0xc]
cmp word [esi], 0
je 0x10006591
mov ecx, esi
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ecx + edx*2 + 2], 0
jne 0x10005f70
mov ecx, 0x224c
mov dword [ebp - 0x1a8], edi
mov esi, dword [ebp + 0xc]
mov word [ebp - 0x138], cx
lea ecx, [ebp - 0x136]
mov dword [ebp + 8], ebx
jmp 0x10005fd8
cmp ax, 9
je 0x10006108
cmp ax, 0xa
jne 0x10006126
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [ebp - 0x16]
lea eax, [edx - 1]
cmp ecx, edi
ja 0x100064d0
test edx, edx
jle 0x100064d0
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x100060f0
jbe 0x10005fa0
cmp ax, 0x22
je 0x10006180
cmp ax, 0x5c
jne 0x10006119
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x10005fc0
mov eax, dword [ebx + 0x28]
mov dword [ebp + 0x10], 0
mov dword [ebp - 0x1a8], 4
mov dword [ebp + 0xc], eax
jmp 0x10005b79
mov dword [ebp - 0x18c], str.Wine
jmp 0x10005bc1
mov dword [ebp - 0x188], str.Created_by_Wine
jmp 0x10005b9d
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov eax, esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [ebx + 0x28], eax
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
movzx eax, word [ebp + 0xc]
mov dword [esp], 0x1000e211
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_2
mov edx, eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], str.__p___s___d__n
mov dword [esp + 8], str.MSTASK_IPersistFile_Save
mov dword [esp + 4], 0x1000c0a0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x10005b64
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10005fc0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10005fc0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x10006510
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefload_unicode_strings]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefload_unicode_strings]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefload_unicode_strings]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefload_unicode_strings]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x10005fc0
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x10005fc0
mov dword [ebp - 0x1a8], eax
mov edi, dword [ebp - 0x1ac]
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xb7
jne 0x10006570
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x178], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x174], eax
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x170], eax
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x16c], eax
lea eax, [ebp - 0x19c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x17c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1a8]
mov dword [esp + 8], 0x44
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_WriteFile]
mov dword [ebp - 0x1ac], eax
call eax
sub esp, 0x14
test eax, eax
je 0x10005e46
mov eax, dword [ebp - 0x1a8]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
sub esp, 0x10
cmp eax, 0xffffffff
je 0x10005e46
mov edx, dword [ebp - 0x198]
mov eax, dword [ebp - 0x1a8]
call sym._write_unicode_string
test eax, eax
je 0x10005e46
mov edx, dword [ebp - 0x194]
mov eax, dword [ebp - 0x1a8]
call sym._write_unicode_string
test eax, eax
je 0x10005e46
mov edx, dword [ebp - 0x190]
mov eax, dword [ebp - 0x1a8]
call sym._write_unicode_string
test eax, eax
je 0x10005e46
mov edx, dword [ebp - 0x18c]
mov eax, dword [ebp - 0x1a8]
call sym._write_unicode_string
test eax, eax
je 0x10005e46
mov edx, dword [ebp - 0x188]
mov eax, dword [ebp - 0x1a8]
call sym._write_unicode_string
test eax, eax
je 0x10005e46
movzx eax, word [ebp - 0x1a2]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 2
mov esi, dword [ebp - 0x184]
mov word [ebp - 0x180], ax
lea eax, [ebp - 0x138]
mov ecx, dword [ebp - 0x1ac]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x180]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1a8]
mov dword [esp], eax
call ecx
sub esp, 0x14
test eax, eax
je 0x100065b2
movzx eax, word [ebp - 0x180]
test ax, ax
je 0x10006366
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1a8]
lea edx, [ebp - 0x138]
mov dword [esp + 0x10], 0
mov ecx, dword [ebp - 0x1ac]
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call ecx
sub esp, 0x14
test eax, eax
je 0x100065b2
lea eax, [ebp - 0x138]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1a8]
mov dword [esp + 8], 0xa
mov dword [esp], eax
mov eax, dword [ebp - 0x1ac]
mov dword [esp + 4], 0x1000ee54
call eax
sub esp, 0x14
test eax, eax
je 0x100065b2
mov word [ebp - 0x19e], 0xffff
mov eax, dword [ebx + 0x58]
mov word [ebp - 0x1a0], ax
test ax, ax
jne 0x100063fe
mov eax, dword [ebx - 4]
lea esi, [ebp - 0x138]
lea edx, [ebp - 0x19e]
mov dword [esp], edi
mov dword [esp + 8], esi
mov dword [esp + 4], edx
call dword [eax + 0xc]
sub esp, 0xc
mov esi, eax
test eax, eax
jne 0x10005e5c
mov eax, dword [ebp - 0x138]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov word [ebp - 0x1a0], 1
push eax
lea eax, [ebp - 0x180]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x1a0]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1a8]
mov dword [esp + 8], 2
mov dword [esp], eax
mov eax, dword [ebp - 0x1ac]
call eax
sub esp, 0x14
test eax, eax
je 0x1000649e
cmp word [ebp - 0x1a0], 0
je 0x100065d1
xor esi, esi
jmp 0x1000645c
add esi, 1
cmp si, word [ebp - 0x1a0]
jae 0x100065d1
lea eax, [ebp - 0x180]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
movzx eax, si
lea eax, [eax + eax*2]
mov dword [esp + 8], 0x30
shl eax, 4
add eax, dword [ebx + 0x5c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1a8]
mov dword [esp], eax
mov eax, dword [ebp - 0x1ac]
call eax
sub esp, 0x14
test eax, eax
jne 0x1000644c
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x34]
test esi, esi
jle 0x10006660
movzx eax, word [ebp - 0x19e]
movzx esi, si
or esi, 0x80070000
cmp ax, 0xffff
jne 0x100065e0
jmp 0x10005e5c
mov edi, dword [ebp - 0x1a8]
mov ebx, dword [ebp + 8]
mov byte [ecx], 0x22
test eax, eax
jle 0x100065aa
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
jmp 0x100060b6
mov byte [ecx], al
add ecx, 1
jmp 0x10005fc0
mov edx, 2
jmp 0x10005d3e
mov edx, 2
jmp 0x10005cde
mov edx, 2
jmp 0x10005d0e
mov eax, 0x4c
jmp 0x10005c7e
mov edx, 2
jmp 0x10005cae
lea eax, [ebp - 0x178]
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
sub esp, 4
jmp 0x100061db
mov edx, 0x1000e200
jmp 0x100060b6
mov eax, 0x224c
mov byte [ebp - 0x136], 0x22
lea ecx, [ebp - 0x136]
mov word [ebp - 0x138], ax
lea eax, [ecx + 1]
jmp 0x100064f4
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x34]
test esi, esi
jle 0x10005e5c
movzx esi, si
or esi, 0x80070000
jmp 0x10005e5c
movzx eax, word [ebp - 0x19e]
xor esi, esi
cmp ax, 0xffff
je 0x100065f7
mov edx, dword [ebx - 4]
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [edx + 0x10]
push eax
push eax
test esi, esi
jne 0x10005e5c
lea edx, [ebp - 0x134]
xor eax, eax
mov ecx, 0x10
mov dword [ebp - 0x138], 0x10001
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x180]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x138]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1a8]
mov dword [esp + 8], 0x44
mov dword [esp], eax
mov eax, dword [ebp - 0x1ac]
call eax
sub esp, 0x14
test eax, eax
je 0x100065b2
mov dword [ebx + 0x60], 0
xor esi, esi
jmp 0x10005e5c
movzx eax, word [ebp - 0x19e]
cmp ax, 0xffff
jne 0x100065e0
jmp 0x100065ef