Function at 0x692c63b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x19c
mov ebx, dword [ebp + 0x14]
test byte [0x692d10c0], 8
jne 0x692c6618
mov eax, dword [ebp + 0x24]
xor edi, edi
mov dword [eax], 0
mov eax, dword [ebp + 0x28]
mov dword [eax], 0
test byte [ebp + 0x10], 1
jne 0x692c660a
mov eax, dword [ebp + 8]
test eax, eax
je 0x692c6738
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x158]
call sym._get_full_name
mov ebx, eax
test eax, eax
je 0x692c6f7a
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x5c
mov esi, dword [sym.imp.ucrtbase.dll_wcschr]
mov dword [esp], eax
call esi
test eax, eax
je 0x692c6d68
mov dword [esp + 4], 0x2f
mov edi, dword [sym.imp.ucrtbase.dll_wcsrchr]
mov dword [esp], ebx
call edi
mov esi, eax
test eax, eax
je 0x692c6e30
xor eax, eax
mov word [esi], ax
mov eax, ebx
call sym._create_directory
mov edi, eax
test eax, eax
je 0x692c6465
cmp eax, 0x800700b7
jne 0x692c69a8
mov eax, 0x5c
mov word [esi], ax
mov edx, dword [ebp + 0x10]
mov eax, 3
and edx, 6
cmp edx, 4
je 0x692c6489
xor eax, eax
cmp edx, 6
sete al
lea eax, [eax + eax*2 + 1]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov esi, eax
cmp eax, 0xffffffff
je 0x692c6700
mov edx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [ebp - 0x160], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
sub esp, 0x20
mov dword [ebp - 0x144], eax
mov edi, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x160]
test eax, eax
mov dword [ebp - 0x15c], eax
je 0x692c6f94
mov eax, dword [ebp - 0x15c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
lea eax, [ebp - 0x144]
sub esp, 0x20
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.kernel32.dll_WriteFile]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x692d3d95
mov dword [esp], esi
mov dword [ebp - 0x160], eax
call eax
sub esp, 0x14
test eax, eax
jne 0x692c6790
mov eax, dword fs:[0x18]
mov edi, dword [eax + 0x34]
mov edx, dword [sym.imp.ucrtbase.dll_free]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovg edi, eax
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x15c], edx
mov dword [esp], eax
call edx
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [ebp - 0x15c]
sub esp, 4
test edi, edi
je 0x692c686b
mov dword [esp], ebx
call edx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
test ebx, ebx
je 0x692c6e58
mov eax, ebx
shr eax, 0x10
je 0x692c68a0
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x164], 0x692d38a7
sub esp, 8
test eax, eax
jne 0x692c68b9
cmp word [ebx], 0
je 0x692c6e80
nop
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x692c6660
mov ecx, 0x224c
lea esi, [ebp - 0x142]
mov word [ebp - 0x144], cx
lea ecx, [ebp - 0x22]
mov dword [ebp - 0x15c], ecx
jmp 0x692c66c9
cmp ax, 9
je 0x692c6ce0
cmp ax, 0xa
jne 0x692c6cfe
mov eax, 0x6e5c
add esi, 2
mov word [esi - 2], ax
lea eax, [edx - 1]
cmp esi, dword [ebp - 0x15c]
ja 0x692c6d88
test edx, edx
jle 0x692c6d88
mov edx, eax
movzx eax, word [ebx]
add ebx, 2
cmp ax, 0xd
je 0x692c6cc8
jbe 0x692c6690
cmp ax, 0x22
je 0x692c6d50
cmp ax, 0x5c
jne 0x692c6cf1
mov ecx, 0x5c5c
add esi, 2
mov word [esi - 2], cx
jmp 0x692c66b0
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x50
je 0x692c6f84
mov edi, dword [eax + 0x34]
mov edx, dword [sym.imp.ucrtbase.dll_free]
test edi, edi
jle 0x692c65fd
movzx edi, di
mov edx, dword [sym.imp.ucrtbase.dll_free]
or edi, 0x80070000
jmp 0x692c6605
lea esi, [ebp - 0x154]
lea ebx, [ebp - 0x144]
mov dword [esp], esi
call dword [sym.imp.rpcrt4.dll_UuidCreate]
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x27
mov dword [esp], esi
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov eax, ebx
lea edx, [ebp - 0x158]
sub esp, 0xc
call sym._get_full_name
mov ebx, eax
test eax, eax
je 0x692c6f7a
add dword [ebp - 0x158], 2
jmp 0x692c646d
lea eax, [ebp - 0x144]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x160]
mov dword [esp + 8], 0x29
mov dword [esp + 4], str._____Task_definition_created_by_Wine_____n
mov dword [esp], esi
call eax
sub esp, 0x14
test eax, eax
je 0x692c65be
mov eax, dword [ebp - 0x15c]
cmp dword [eax], 0x6d783f3c
je 0x692c6ef8
mov edx, dword [ebp - 0x15c]
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x692c67e0
mov ecx, eax
mov edi, dword [ebp - 0x15c]
mov dword [esp + 0x10], 0
shr ecx, 0x10
test eax, 0x8080
mov dword [esp], esi
cmove eax, ecx
lea ecx, [edx + 2]
mov dword [esp + 4], edi
cmove edx, ecx
mov ecx, eax
add cl, al
lea eax, [ebp - 0x144]
sbb edx, 3
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x160]
sub edx, edi
mov dword [esp + 8], edx
call eax
sub esp, 0x14
test eax, eax
je 0x692c65be
mov dword [esp], edi
mov edx, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x15c], edx
call edx
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [ebp - 0x15c]
sub esp, 4
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x15c], edx
xor edi, edi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov ecx, dword [ebp + 0x24]
mov dword [ecx], eax
call sym._schedsvc_auto_start
mov edx, dword [ebp - 0x15c]
jmp 0x692c6605
movzx ebx, bx
mov dword [esp], 0x692d38b1
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf_1
mov dword [ebp - 0x164], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x692c6e70
mov eax, dword [ebp + 0xc]
shr eax, 0x10
je 0x692c6de0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x160], 0x692d38a7
sub esp, 8
test eax, eax
jne 0x692c69f2
mov ecx, dword [ebp + 0xc]
cmp word [ecx], 0
je 0x692c6ea8
lea esi, [esi]
lea edi, [edi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ecx + edx*2 + 2], 0
jne 0x692c6910
mov esi, 0x224c
lea ecx, [ebp - 0x22]
lea ebx, [ebp - 0x142]
mov word [ebp - 0x144], si
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x15c], ecx
jmp 0x692c6971
cmp ax, 9
je 0x692c6c40
cmp ax, 0xa
jne 0x692c6c5e
mov eax, 0x6e5c
add ebx, 2
mov word [ebx - 2], ax
lea eax, [edx - 1]
cmp ebx, dword [ebp - 0x15c]
ja 0x692c69c0
test edx, edx
jle 0x692c69c0
mov edx, eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x692c6c28
jbe 0x692c6940
cmp ax, 0x22
je 0x692c6cb0
cmp ax, 0x5c
jne 0x692c6c51
mov ecx, 0x5c5c
add ebx, 2
mov word [ebx - 2], cx
jmp 0x692c6960
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x692c660a
mov byte [ebx], 0x22
test eax, eax
jle 0x692c6ec1
mov edx, 0x2e2e
mov byte [ebx + 3], 0x2e
lea eax, [ebx + 4]
mov word [ebx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [ebp - 0x160], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x692c6e48
mov eax, dword [ebp + 8]
shr eax, 0x10
je 0x692c6dc0
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x692d38a7
sub esp, 8
test eax, eax
jne 0x692c6b0e
mov ecx, dword [ebp + 8]
cmp word [ecx], 0
je 0x692c6ed0
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ecx + edx*2 + 2], 0
jne 0x692c6a40
mov ebx, dword [ebp + 8]
mov eax, 0x224c
lea ecx, [ebp - 0x142]
lea esi, [ebp - 0x22]
mov word [ebp - 0x144], ax
mov dword [ebp - 0x15c], ebx
jmp 0x692c6a9d
cmp ax, 9
je 0x692c6b98
cmp ax, 0xa
jne 0x692c6bb6
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea eax, [edx - 1]
test edx, edx
jle 0x692c6ae0
cmp ecx, esi
ja 0x692c6ae0
mov edx, eax
add dword [ebp - 0x15c], 2
mov eax, dword [ebp - 0x15c]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x692c6b80
jbe 0x692c6a70
cmp ax, 0x22
je 0x692c6c10
cmp ax, 0x5c
jne 0x692c6ba9
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x692c6a90
mov byte [ecx], 0x22
test eax, eax
jle 0x692c6ee9
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
mov edx, eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str._s__s__lx__s__lu__lu__p__p__p_n
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 8], 0x692d3d6c
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 4], 0x692d10c0
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp], 3
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x164]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x160]
mov dword [esp + 0x14], eax
call sym._wine_dbg_log.constprop.0_1
jmp 0x692c63cc
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x692c6a90
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x692c6a90
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x692c6e00
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefSchRpcRegisterTask]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefSchRpcRegisterTask]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefSchRpcRegisterTask]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefSchRpcRegisterTask]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x692c6a90
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x692c6a90
mov eax, 0x725c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x692c6960
mov eax, 0x745c
add ebx, 2
mov word [ebx - 2], ax
jmp 0x692c6960
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x692c6e20
mov edi, eax
mov byte [ebx], 0x5c
add ebx, 5
shr di, 0xc
movzx edi, di
movzx ecx, byte [edi + str.0123456789abcdefSchRpcRegisterTask]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ebx - 4], cl
movzx ecx, byte [edi + str.0123456789abcdefSchRpcRegisterTask]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefSchRpcRegisterTask]
and edi, 0xf
mov byte [ebx - 3], cl
movzx ecx, byte [edi + str.0123456789abcdefSchRpcRegisterTask]
mov byte [ebx - 1], al
mov byte [ebx - 2], cl
jmp 0x692c6960
mov edi, 0x225c
add ebx, 2
mov word [ebx - 2], di
jmp 0x692c6960
mov eax, 0x725c
add esi, 2
mov word [esi - 2], ax
jmp 0x692c66b0
mov eax, 0x745c
add esi, 2
mov word [esi - 2], ax
jmp 0x692c66b0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x692c6e10
mov edi, eax
mov byte [esi], 0x5c
add esi, 5
shr di, 0xc
movzx edi, di
movzx ecx, byte [edi + str.0123456789abcdefSchRpcRegisterTask]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [esi - 4], cl
movzx ecx, byte [edi + str.0123456789abcdefSchRpcRegisterTask]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdefSchRpcRegisterTask]
and edi, 0xf
mov byte [esi - 3], cl
movzx ecx, byte [edi + str.0123456789abcdefSchRpcRegisterTask]
mov byte [esi - 1], al
mov byte [esi - 2], cl
jmp 0x692c66b0
mov edi, 0x225c
add esi, 2
mov word [esi - 2], di
jmp 0x692c66b0
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x2f
mov dword [esp], eax
call esi
test eax, eax
jne 0x692c642b
jmp 0x692c646d
mov byte [esi], 0x22
test eax, eax
jle 0x692c6e99
mov edx, 0x2e2e
mov byte [esi + 3], 0x2e
lea eax, [esi + 4]
mov word [esi + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [ebp - 0x164], eax
jmp 0x692c68b9
movzx eax, word [ebp + 8]
mov dword [esp], 0x692d38b1
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_1
mov edx, eax
jmp 0x692c6b0e
movzx eax, word [ebp + 0xc]
mov dword [esp], 0x692d38b1
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_1
mov dword [ebp - 0x160], eax
jmp 0x692c69f2
mov byte [ecx], al
add ecx, 1
jmp 0x692c6a90
mov byte [esi], al
add esi, 1
jmp 0x692c66b0
mov byte [ebx], al
add ebx, 1
jmp 0x692c6960
mov dword [esp + 4], 0x5c
mov dword [esp], ebx
call edi
mov esi, eax
jmp 0x692c6448
mov edx, str._null_
jmp 0x692c6b0e
mov dword [ebp - 0x164], str._null_
jmp 0x692c68b9
mov dword [ebp - 0x160], str._null_
jmp 0x692c69f2
mov eax, 0x224c
mov byte [ebp - 0x142], 0x22
lea esi, [ebp - 0x142]
mov word [ebp - 0x144], ax
lea eax, [esi + 1]
jmp 0x692c6da3
mov byte [ebp - 0x142], 0x22
mov ebx, 0x224c
mov word [ebp - 0x144], bx
lea ebx, [ebp - 0x142]
lea eax, [ebx + 1]
jmp 0x692c69db
mov edi, 0x224c
mov byte [ebp - 0x142], 0x22
lea ecx, [ebp - 0x142]
mov word [ebp - 0x144], di
lea eax, [ecx + 1]
jmp 0x692c6afb
cmp byte [eax + 4], 0x6c
jne 0x692c67da
mov dword [esp + 4], 0x3e
mov edi, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strchr]
test eax, eax
je 0x692c6f33
lea edi, [eax + 1]
jmp 0x692c6f23
add edi, 1
movsx eax, byte [edi]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_isspace]
test eax, eax
jne 0x692c6f20
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_strlen]
lea ecx, [ebp - 0x144]
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x160]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edi
mov dword [esp], esi
call eax
sub esp, 0x14
test eax, eax
je 0x692c65be
mov eax, dword [ebp - 0x15c]
mov dword [esp], eax
jmp 0x692c684b
mov edi, 0x8007000e
jmp 0x692c660a
mov edx, dword [sym.imp.ucrtbase.dll_free]
mov edi, 0x800700b7
jmp 0x692c6605
mov dword [esp], esi
mov edi, 0x8007000e
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [sym.imp.ucrtbase.dll_free]
push eax
jmp 0x692c6605