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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x1d8
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x1bc], eax
mov eax, dword [ecx + 8]
lea edi, [ebx - 4]
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x1c4], eax
xor eax, eax
mov word [ebp - 0x1ae], ax
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x194], 0
mov dword [ebp - 0x190], 0
test byte [0x6ad4c0a0], 8
jne 0x6ad465f8
mov eax, dword [ebp - 0x1bc]
test eax, eax
je 0x6ad466f0
mov dword [ebp - 0x1c0], 1
mov eax, dword [ebx - 4]
lea edx, [ebp - 0x194]
mov dword [esp], edi
mov dword [esp + 4], edx
call dword [eax + 0x4c]
mov eax, dword [ebp - 0x194]
sub esp, 8
test eax, eax
je 0x6ad46730
mov eax, dword [ebx - 4]
lea edx, [ebp - 0x198]
mov dword [esp], edi
mov dword [esp + 4], edx
call dword [eax + 0x54]
mov esi, dword [ebp - 0x198]
sub esp, 8
test esi, esi
je 0x6ad46718
mov eax, dword [ebx - 4]
lea edx, [ebp - 0x1a4]
mov dword [esp], edi
mov dword [esp + 4], edx
call dword [eax + 0x84]
mov eax, dword [ebx - 4]
lea edx, [ebp - 0x1a0]
sub esp, 8
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [eax + 0x8c]
mov eax, dword [ebx - 4]
lea edx, [ebp - 0x19c]
sub esp, 8
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [eax + 0x94]
mov eax, dword [ebx - 4]
lea edx, [ebp - 0x190]
sub esp, 8
mov dword [esp + 8], edx
lea edx, [ebp - 0x1ae]
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 - 0x1a4]
mov ecx, 1
mov dword [ebp - 0x174], 0x480046
rol ax, 8
mov word [ebp - 0x186], cx
mov word [ebp - 0x188], ax
mov eax, 0x4a
test edx, edx
je 0x6ad4634e
cmp word [edx], 0
je 0x6ad46c50
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x6ad46340
sub eax, edx
add eax, 0x4c
mov ecx, dword [ebp - 0x1a0]
mov word [ebp - 0x172], ax
test ecx, ecx
je 0x6ad46380
cmp word [ecx], 0
je 0x6ad46c60
mov edx, ecx
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x6ad46370
sub edx, ecx
add edx, 2
add eax, edx
mov ecx, dword [ebp - 0x19c]
add eax, 2
mov word [ebp - 0x172], ax
test ecx, ecx
je 0x6ad463b0
cmp word [ecx], 0
je 0x6ad46c30
mov edx, ecx
add edx, 2
cmp word [edx], 0
jne 0x6ad463a0
sub edx, ecx
add edx, 2
add eax, edx
mov ecx, dword [ebp - 0x198]
add eax, 2
mov word [ebp - 0x172], ax
test ecx, ecx
je 0x6ad463e0
cmp word [ecx], 0
je 0x6ad46c40
mov edx, ecx
add edx, 2
cmp word [edx], 0
jne 0x6ad463d0
sub edx, ecx
add edx, 2
add eax, edx
mov ecx, dword [ebp - 0x194]
add eax, 2
mov word [ebp - 0x172], ax
test ecx, ecx
je 0x6ad46410
cmp word [ecx], 0
je 0x6ad46c20
mov edx, ecx
add edx, 2
cmp word [edx], 0
jne 0x6ad46400
sub edx, ecx
add edx, 2
add eax, edx
add ax, word [ebp - 0x1ae]
mov dword [ebp - 0x170], 0
add eax, 0xc
mov word [ebp - 0x172], ax
movzx eax, word [ebx + 0x30]
mov word [ebp - 0x16a], ax
movzx eax, word [ebx + 0x32]
mov word [ebp - 0x16c], ax
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x168], eax
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x164], eax
mov eax, dword [ebx + 0x40]
mov dword [ebp - 0x160], eax
mov eax, dword [ebx + 0x2c]
cmp eax, 0x41305
je 0x6ad465d8
mov dword [ebp - 0x15c], eax
mov eax, dword [ebx + 0x34]
mov esi, 3
mov dword [ebp - 0x1c8], edi
mov edi, dword [ebp - 0x1c0]
mov dword [ebp - 0x158], eax
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x154], eax
mov eax, dword [ebx + 0x48]
mov dword [ebp - 0x150], eax
mov eax, dword [ebx + 0x4c]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x1bc]
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 0x6ad46898
dec esi
je 0x6ad46510
mov dword [esp], 0x64
call dword [sym.imp.kernel32.dll_Sleep]
sub esp, 4
jmp 0x6ad464ae
mov dword [ebp - 0x1c0], 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 - 0x1a4]
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x1a0]
sub esp, 4
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x19c]
sub esp, 4
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x198]
sub esp, 4
cmp eax, str.Wine
je 0x6ad46571
mov dword [esp], eax
call edi
sub esp, 4
mov eax, dword [ebp - 0x194]
cmp eax, str.Created_by_Wine
je 0x6ad46586
mov dword [esp], eax
call edi
sub esp, 4
mov eax, dword [ebp - 0x190]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x1c0]
sub esp, 4
cmp eax, 0xffffffff
je 0x6ad465c1
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
test esi, esi
jne 0x6ad46740
mov edi, dword [ebp - 0x1c4]
test edi, edi
jne 0x6ad46768
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov edx, dword [ebx + 0x58]
test edx, edx
je 0x6ad4646a
mov dword [ebx + 0x2c], 0x41303
mov eax, 0x41303
jmp 0x6ad4646a
mov eax, dword [ebp - 0x1bc]
test eax, eax
je 0x6ad46c87
shr eax, 0x10
je 0x6ad467a0
mov esi, dword [ebp - 0x1bc]
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, 0x6ad4e3a9
test ecx, ecx
jne 0x6ad467b7
movzx eax, word [esi]
test ax, ax
je 0x6ad46c91
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x6ad46648
mov ecx, 0x224c
mov dword [ebp - 0x1c0], edi
mov esi, dword [ebp - 0x1bc]
mov word [ebp - 0x144], cx
lea ecx, [ebp - 0x142]
mov dword [ebp - 0x1c8], ebx
jmp 0x6ad466bb
cmp ax, 9
je 0x6ad46810
cmp ax, 0xa
jne 0x6ad4682e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [ebp - 0x22]
lea edi, [edx - 1]
cmp ecx, eax
ja 0x6ad46bd0
test edx, edx
jle 0x6ad46bd0
movzx eax, word [esi]
mov edx, edi
add esi, 2
cmp ax, 0xd
je 0x6ad467f8
jbe 0x6ad46680
cmp ax, 0x22
je 0x6ad46880
cmp ax, 0x5c
jne 0x6ad46821
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x6ad466a0
mov dword [ebp - 0x1c0], 4
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1bc], eax
jmp 0x6ad46248
mov dword [ebp - 0x198], str.Wine
jmp 0x6ad46290
mov dword [ebp - 0x194], str.Created_by_Wine
jmp 0x6ad4626c
mov eax, dword [ebp - 0x1bc]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov eax, esi
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x1bc]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [ebx + 0x28], eax
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
movzx eax, word [ebp - 0x1bc]
mov dword [esp], 0x6ad4e3b3
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_2
mov esi, dword [ebp - 0x1c4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0xc], str.__p___s___d__n
mov dword [esp + 8], str.MSTASK_IPersistFile_Save
mov dword [esp + 4], 0x6ad4c0a0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x6ad46230
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6ad466a0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x6ad466a0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x6ad46c10
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 0x6ad466a0
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x6ad466a0
mov dword [ebp - 0x1c0], eax
mov edi, dword [ebp - 0x1c8]
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xb7
jne 0x6ad46c70
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x184], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x180], eax
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x17c], eax
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x178], eax
lea eax, [ebp - 0x1a8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x188]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c0]
mov dword [esp + 8], 0x44
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_WriteFile]
mov dword [ebp - 0x1c8], eax
call eax
sub esp, 0x14
test eax, eax
je 0x6ad46516
mov eax, dword [ebp - 0x1c0]
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 0x6ad46516
mov edx, dword [ebp - 0x1a4]
mov eax, dword [ebp - 0x1c0]
call sym._write_unicode_string
test eax, eax
je 0x6ad46516
mov edx, dword [ebp - 0x1a0]
mov eax, dword [ebp - 0x1c0]
call sym._write_unicode_string
test eax, eax
je 0x6ad46516
mov edx, dword [ebp - 0x19c]
mov eax, dword [ebp - 0x1c0]
call sym._write_unicode_string
test eax, eax
je 0x6ad46516
mov edx, dword [ebp - 0x198]
mov eax, dword [ebp - 0x1c0]
call sym._write_unicode_string
test eax, eax
je 0x6ad46516
mov edx, dword [ebp - 0x194]
mov eax, dword [ebp - 0x1c0]
call sym._write_unicode_string
test eax, eax
je 0x6ad46516
movzx eax, word [ebp - 0x1ae]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 2
mov esi, dword [ebp - 0x190]
mov word [ebp - 0x18c], ax
lea eax, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c8]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x18c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c0]
mov dword [esp], eax
call ecx
sub esp, 0x14
test eax, eax
je 0x6ad46cb2
movzx eax, word [ebp - 0x18c]
test ax, ax
je 0x6ad46a66
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c0]
lea edx, [ebp - 0x144]
mov dword [esp + 0x10], 0
mov ecx, dword [ebp - 0x1c8]
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call ecx
sub esp, 0x14
test eax, eax
je 0x6ad46cb2
lea eax, [ebp - 0x144]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c0]
mov dword [esp + 8], 0xa
mov dword [esp], eax
mov eax, dword [ebp - 0x1c8]
mov dword [esp + 4], 0x6ad4ee54
call eax
sub esp, 0x14
test eax, eax
je 0x6ad46cb2
mov word [ebp - 0x1aa], 0xffff
mov eax, dword [ebx + 0x58]
mov word [ebp - 0x1ac], ax
test ax, ax
jne 0x6ad46afe
mov eax, dword [ebx - 4]
lea esi, [ebp - 0x144]
lea edx, [ebp - 0x1aa]
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 0x6ad4652c
mov eax, dword [ebp - 0x144]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov word [ebp - 0x1ac], 1
push eax
lea eax, [ebp - 0x18c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x1ac]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c0]
mov dword [esp + 8], 2
mov dword [esp], eax
mov eax, dword [ebp - 0x1c8]
call eax
sub esp, 0x14
test eax, eax
je 0x6ad46b9c
cmp word [ebp - 0x1ac], 0
je 0x6ad46cd1
xor esi, esi
jmp 0x6ad46b5a
inc esi
cmp si, word [ebp - 0x1ac]
jae 0x6ad46cd1
lea eax, [ebp - 0x18c]
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 - 0x1c0]
mov dword [esp], eax
mov eax, dword [ebp - 0x1c8]
call eax
sub esp, 0x14
test eax, eax
jne 0x6ad46b4c
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x34]
test esi, esi
jle 0x6ad46d60
movzx eax, word [ebp - 0x1aa]
movzx esi, si
or esi, 0x80070000
cmp ax, 0xffff
jne 0x6ad46ce0
jmp 0x6ad4652c
mov eax, edi
mov byte [ecx], 0x22
mov edi, dword [ebp - 0x1c0]
mov ebx, dword [ebp - 0x1c8]
test eax, eax
jle 0x6ad46caa
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call sym.___wine_dbg_strdup
jmp 0x6ad467b7
mov byte [ecx], al
inc ecx
jmp 0x6ad466a0
mov edx, 2
jmp 0x6ad4640e
mov edx, 2
jmp 0x6ad463ae
mov edx, 2
jmp 0x6ad463de
mov eax, 0x4c
jmp 0x6ad4634e
mov edx, 2
jmp 0x6ad4637e
lea eax, [ebp - 0x184]
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
sub esp, 4
jmp 0x6ad468db
mov eax, 0x6ad4e330
jmp 0x6ad467b7
mov eax, 0x224c
mov byte [ebp - 0x142], 0x22
lea ecx, [ebp - 0x142]
mov word [ebp - 0x144], ax
lea eax, [ecx + 1]
jmp 0x6ad46bf9
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0x34]
test esi, esi
jle 0x6ad4652c
movzx esi, si
or esi, 0x80070000
jmp 0x6ad4652c
movzx eax, word [ebp - 0x1aa]
xor esi, esi
cmp ax, 0xffff
je 0x6ad46cf7
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 0x6ad4652c
lea edx, [ebp - 0x140]
xor eax, eax
mov ecx, 0x10
mov dword [ebp - 0x144], 0x10001
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x18c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x144]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c0]
mov dword [esp + 8], 0x44
mov dword [esp], eax
mov eax, dword [ebp - 0x1c8]
call eax
sub esp, 0x14
test eax, eax
je 0x6ad46cb2
mov dword [ebx + 0x60], 0
xor esi, esi
jmp 0x6ad4652c
movzx eax, word [ebp - 0x1aa]
cmp ax, 0xffff
jne 0x6ad46ce0
jmp 0x6ad46cef