Function at 0x692c7a10
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5ec
test byte [0x692d10c0], 8
jne 0x692c7f08
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0xc]
mov dword [eax], 0
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0
and edi, 0xfffffffe
jne 0x692c81e0
mov eax, dword [ebp + 0x14]
test eax, eax
mov eax, 0xffffffff
cmovne eax, dword [ebp + 0x14]
xor edx, edx
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 8]
call sym._get_full_name
test eax, eax
je 0x692c8170
cmp word [eax], 0
je 0x692c7a8f
mov edx, eax
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x692c7a78
sub edx, eax
cmp edx, 0x204
jg 0x692c81ea
xor edx, edx
lea ebx, [ebp - 0x470]
mov esi, esi
lea edi, [edi]
movzx ecx, word [eax + edx]
mov word [ebx + edx], cx
add edx, 2
test cx, cx
jne 0x692c7aa0
cmp word [ebp - 0x470], 0
mov ecx, ebx
je 0x692c7ac9
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x692c7ac0
xor edx, edx
nop
lea esi, [esi]
movzx esi, word [edx + 0x692d3c98]
mov word [ecx + edx], si
add edx, 2
test si, si
jne 0x692c7ad0
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x5c4], eax
call eax
mov dword [esp], 0x100
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x5b8], eax
test eax, eax
je 0x692c8170
lea eax, [ebp - 0x268]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0x5b4], eax
sub esp, 8
cmp eax, 0xffffffff
je 0x692c807d
lea eax, [ebp - 0x23c]
xor esi, esi
mov dword [ebp - 0x5bc], 0x40
shr eax, 0x10
mov dword [ebp - 0x5c0], eax
jmp 0x692c7bc1
cmp dword [ebp - 0x5bc], edi
jbe 0x692c7d50
test byte [0x692d10c0], 8
jne 0x692c7bf0
mov eax, dword [ebp - 0x5b8]
lea ebx, [eax + edi*4]
lea eax, [ebp - 0x23c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [ebx], eax
test eax, eax
je 0x692c8151
mov esi, dword [ebp - 0x5ac]
add edi, 1
cmp dword [ebp + 0x14], edi
jbe 0x692c800a
lea eax, [ebp - 0x268]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5b4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
je 0x692c7e78
test byte [ebp - 0x268], 0x10
jne 0x692c7b9d
lea eax, [esi + 1]
mov dword [ebp - 0x5ac], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], esi
jbe 0x692c7b50
mov esi, dword [ebp - 0x5ac]
jmp 0x692c7b9d
mov eax, dword [ebp - 0x5c0]
test eax, eax
je 0x692c7e38
lea eax, [ebp - 0x23c]
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 0x692c7d1e
cmp word [ebp - 0x23c], 0
je 0x692c7ee0
nop
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ebp + edx*2 - 0x23a], 0
jne 0x692c7c38
mov ebx, 0x224c
lea ecx, [ebp - 0x59a]
mov word [ebp - 0x59c], bx
lea ebx, [ebp - 0x23c]
mov dword [ebp - 0x5b0], ebx
jmp 0x692c7ca3
cmp ax, 9
je 0x692c7e20
cmp ax, 0xa
jne 0x692c7d95
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea ebx, [ebp - 0x47a]
lea eax, [edx - 1]
cmp ecx, ebx
ja 0x692c7cf0
test edx, edx
jle 0x692c7cf0
mov edx, eax
add dword [ebp - 0x5b0], 2
mov eax, dword [ebp - 0x5b0]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x692c7e08
jbe 0x692c7c70
cmp ax, 0x22
je 0x692c7df0
cmp ax, 0x5c
jne 0x692c7d88
mov ebx, 0x5c5c
add ecx, 2
lea eax, [edx - 1]
mov word [ecx - 2], bx
lea ebx, [ebp - 0x47a]
cmp ecx, ebx
jbe 0x692c7c9d
lea esi, [esi]
mov byte [ecx], 0x22
test eax, eax
jle 0x692c7ef9
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x59c]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.adding__s_n
mov dword [esp + 8], str.SchRpcEnumTasks
mov dword [esp + 4], 0x692d10c0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x692c7b69
mov eax, dword [ebp - 0x5bc]
lea ebx, [eax + eax]
shl eax, 3
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5b8]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
test eax, eax
je 0x692c8151
mov dword [ebp - 0x5b8], eax
mov dword [ebp - 0x5bc], ebx
jmp 0x692c7b5c
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x692c7e68
mov esi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr si, 0xc
movzx esi, si
movzx ebx, byte [esi + str.0123456789abcdefSchRpcRegisterTask]
mov esi, eax
shr si, 8
and esi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [esi + str.0123456789abcdefSchRpcRegisterTask]
mov esi, eax
and eax, 0xf
shr si, 4
movzx eax, byte [eax + str.0123456789abcdefSchRpcRegisterTask]
and esi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [esi + str.0123456789abcdefSchRpcRegisterTask]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x692c7c90
mov esi, 0x225c
add ecx, 2
mov word [ecx - 2], si
jmp 0x692c7c90
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x692c7c90
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x692c7c90
lea eax, [ebp - 0x23c]
mov dword [esp], 0x692d38b1
mov dword [ebp - 0x5b0], eax
movzx eax, word [ebp - 0x5b0]
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_1
mov edx, eax
jmp 0x692c7d1e
mov byte [ecx], al
add ecx, 1
jmp 0x692c7c90
mov ebx, eax
mov eax, dword [ebp - 0x5b4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, dword [ebp + 0x18]
sub esp, 4
mov dword [eax], edi
test edi, edi
je 0x692c7eb0
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp - 0x5b8]
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x5b8]
xor ebx, ebx
mov dword [esp], eax
mov eax, dword [ebp - 0x5c4]
call eax
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0
mov eax, dword [ebp + 0x10]
mov edi, dword [eax]
test edi, edi
setne bl
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, 0x224c
mov byte [ebp - 0x59a], 0x22
lea ecx, [ebp - 0x59a]
mov word [ebp - 0x59c], si
lea eax, [ecx + 1]
jmp 0x692c7d0b
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x5b0], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x692c81b8
mov eax, dword [ebp + 8]
shr eax, 0x10
je 0x692c8014
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 0x692c802a
mov edi, dword [ebp + 8]
cmp word [edi], 0
je 0x692c81c2
mov ecx, edi
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ecx + edx*2 + 2], 0
jne 0x692c7f60
mov ebx, dword [ebp + 8]
mov ecx, 0x224c
mov word [ebp - 0x268], cx
lea ecx, [ebp - 0x266]
mov dword [ebp - 0x5ac], ebx
jmp 0x692c7fcb
cmp ax, 9
je 0x692c80d0
cmp ax, 0xa
jne 0x692c80ee
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [ebp - 0x146]
lea eax, [edx - 1]
cmp ecx, edi
ja 0x692c817f
test edx, edx
jle 0x692c817f
mov edx, eax
add dword [ebp - 0x5ac], 2
mov eax, dword [ebp - 0x5ac]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x692c80b8
jbe 0x692c7f90
cmp ax, 0x22
je 0x692c8140
cmp ax, 0x5c
jne 0x692c80e1
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x692c7fb0
mov ebx, 1
jmp 0x692c7e7a
movzx eax, word [ebp + 8]
mov dword [esp], 0x692d38b1
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_1
mov edx, eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str._s__lx__lu__lu__p__p_n
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 8], str.SchRpcEnumTasks
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], 0x692d10c0
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x5b0]
mov dword [esp], 3
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
call sym._wine_dbg_log.constprop.0_1
jmp 0x692c7a29
mov eax, dword [ebp - 0x5b8]
mov dword [esp], eax
mov eax, dword [ebp - 0x5c4]
call eax
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 3
je 0x692c81fd
mov ebx, dword [eax + 0x34]
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovg ebx, eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x692c7fb0
mov edi, 0x745c
add ecx, 2
mov word [ecx - 2], di
jmp 0x692c7fb0
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x692c81ae
mov esi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr si, 0xc
movzx esi, si
movzx ebx, byte [esi + str.0123456789abcdefSchRpcRegisterTask]
mov esi, eax
shr si, 8
and esi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [esi + str.0123456789abcdefSchRpcRegisterTask]
mov esi, eax
and eax, 0xf
shr si, 4
movzx eax, byte [eax + str.0123456789abcdefSchRpcRegisterTask]
and esi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [esi + str.0123456789abcdefSchRpcRegisterTask]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x692c7fb0
mov esi, 0x225c
add ecx, 2
mov word [ecx - 2], si
jmp 0x692c7fb0
mov eax, dword [ebp - 0x5b4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, dword [ebp - 0x5b8]
mov edx, edi
sub esp, 4
call sym._free_list
lea esp, [ebp - 0xc]
mov ebx, 0x8007000e
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [ecx], 0x22
test eax, eax
jle 0x692c81db
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x268]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
jmp 0x692c802a
mov byte [ecx], al
add ecx, 1
jmp 0x692c7fb0
mov edx, str._null_
jmp 0x692c802a
mov eax, 0x224c
mov byte [ebp - 0x266], 0x22
lea ecx, [ebp - 0x266]
mov word [ebp - 0x268], ax
lea eax, [ecx + 1]
jmp 0x692c8196
mov ebx, 0x80070057
jmp 0x692c7ea5
mov dword [esp], eax
mov ebx, 0x800700ce
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x692c7ea5
mov ebx, 0x80070002
jmp 0x692c7ea5