Function at 0x692c71e0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5fc
mov edi, dword [ebp + 8]
test byte [0x692d10c0], 8
jne 0x692c7718
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0
mov eax, dword [ebp + 0xc]
and eax, 0xfffffffe
mov dword [ebp - 0x5ac], eax
jne 0x692c79e7
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, edi
call sym._get_full_name
test eax, eax
je 0x692c7965
cmp word [eax], 0
je 0x692c7267
mov edx, eax
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x692c7250
sub edx, eax
cmp edx, 0x204
jg 0x692c79f1
xor edx, edx
lea ebx, [ebp - 0x470]
nop
movzx ecx, word [eax + edx]
mov word [ebx + edx], cx
add edx, 2
test cx, cx
jne 0x692c7270
cmp word [ebp - 0x470], 0
mov ecx, ebx
je 0x692c7299
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x692c7290
xor edx, edx
nop
lea esi, [esi]
movzx esi, word [edx + 0x692d3cb0]
mov word [ecx + edx], si
add edx, 2
test si, si
jne 0x692c72a0
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x5c8], eax
call eax
mov dword [esp], 0x100
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x5b8], eax
test eax, eax
je 0x692c7965
lea edi, [ebp - 0x268]
mov dword [esp], ebx
mov dword [esp + 4], edi
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0x5c0], eax
sub esp, 8
cmp eax, 0xffffffff
je 0x692c7872
lea eax, [ebp - 0x23c]
mov esi, dword [ebp - 0x5c0]
xor ebx, ebx
mov dword [ebp - 0x5bc], 0x40
shr eax, 0x10
mov dword [ebp - 0x5c4], eax
jmp 0x692c7399
test byte [0x692d10c0], 8
jne 0x692c7432
mov ebx, dword [ebp - 0x5b8]
mov eax, dword [ebp - 0x5ac]
lea ecx, [ebp - 0x23c]
mov dword [esp], ecx
lea ebx, [ebx + eax*4]
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [ebx], eax
test eax, eax
je 0x692c7942
add dword [ebp - 0x5ac], 1
mov eax, dword [ebp - 0x5ac]
cmp dword [ebp + 0x14], eax
jbe 0x692c7974
mov ebx, dword [ebp - 0x5b0]
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
je 0x692c7640
test byte [ebp - 0x268], 0x10
je 0x692c7381
cmp word [ebp - 0x23c], 0x2e
jne 0x692c73d0
movzx eax, word [ebp - 0x23a]
test ax, ax
je 0x692c7381
cmp ax, 0x2e
jne 0x692c73d0
cmp word [ebp - 0x238], 0
je 0x692c7381
nop
lea esi, [esi]
lea eax, [ebx + 1]
mov dword [ebp - 0x5b0], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], ebx
ja 0x692c737b
mov ebx, dword [ebp - 0x5ac]
cmp dword [ebp - 0x5bc], ebx
ja 0x692c7330
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 0x692c7942
mov dword [ebp - 0x5b8], eax
mov dword [ebp - 0x5bc], ebx
test byte [0x692d10c0], 8
je 0x692c733d
mov eax, dword [ebp - 0x5c4]
test eax, eax
je 0x692c7680
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 0x692c7564
cmp word [ebp - 0x23c], 0
je 0x692c76f3
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [edi + edx*2 + 0x2e], 0
jne 0x692c7478
mov eax, 0x224c
lea ebx, [ebp - 0x23c]
mov dword [ebp - 0x5cc], esi
lea ecx, [ebp - 0x59a]
mov word [ebp - 0x59c], ax
mov dword [ebp - 0x5b4], ebx
jmp 0x692c74e3
cmp ax, 9
je 0x692c7628
cmp ax, 0xa
jne 0x692c75b6
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea esi, [ebp - 0x47a]
lea eax, [edx - 1]
cmp ecx, esi
ja 0x692c7530
test edx, edx
jle 0x692c7530
mov edx, eax
add dword [ebp - 0x5b4], 2
mov eax, dword [ebp - 0x5b4]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x692c7598
jbe 0x692c74b0
cmp ax, 0x22
je 0x692c7610
cmp ax, 0x5c
jne 0x692c75a9
mov ebx, 0x5c5c
lea esi, [ebp - 0x47a]
lea eax, [edx - 1]
add ecx, 2
mov word [ecx - 2], bx
cmp ecx, esi
jbe 0x692c74dd
lea esi, [esi]
mov byte [ecx], 0x22
mov esi, dword [ebp - 0x5cc]
test eax, eax
jle 0x692c770c
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.SchRpcEnumFolders
mov dword [esp + 4], 0x692d10c0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x692c733d
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x692c74d0
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x692c76b0
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 0x692c74d0
mov esi, 0x225c
add ecx, 2
mov word [ecx - 2], si
jmp 0x692c74d0
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x692c74d0
mov esi, eax
mov eax, dword [ebp - 0x5c0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp - 0x5ac]
sub esp, 4
mov dword [edi], eax
test eax, eax
je 0x692c76c0
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp - 0x5b8]
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x23c]
mov dword [esp], 0x692d38b1
mov dword [ebp - 0x5b4], eax
movzx eax, word [ebp - 0x5b4]
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_1
mov edx, eax
jmp 0x692c7564
mov byte [ecx], al
add ecx, 1
jmp 0x692c74d0
mov eax, dword [ebp - 0x5b8]
mov dword [esp], eax
mov eax, dword [ebp - 0x5c8]
call eax
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
test eax, eax
setne al
lea esp, [ebp - 0xc]
movzx eax, al
pop ebx
mov esi, eax
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov ebx, 0x224c
mov byte [ebp - 0x59a], 0x22
lea ecx, [ebp - 0x59a]
mov word [ebp - 0x59c], bx
lea eax, [ecx + 1]
jmp 0x692c7551
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x5b0], eax
test edi, edi
je 0x692c79bf
mov eax, edi
shr eax, 0x10
je 0x692c780a
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x692d38a7
sub esp, 8
test eax, eax
jne 0x692c781f
cmp word [edi], 0
je 0x692c79c9
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [edi + edx*2 + 2], 0
jne 0x692c7768
mov ecx, 0x224c
mov dword [ebp - 0x5ac], edi
mov word [ebp - 0x268], cx
lea ecx, [ebp - 0x266]
jmp 0x692c77cb
cmp ax, 9
je 0x692c78b0
cmp ax, 0xa
jne 0x692c78ce
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea esi, [ebp - 0x146]
lea eax, [edx - 1]
cmp ecx, esi
ja 0x692c7986
test edx, edx
jle 0x692c7986
mov edx, eax
add dword [ebp - 0x5ac], 2
mov eax, dword [ebp - 0x5ac]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x692c7931
jbe 0x692c7790
cmp ax, 0x22
je 0x692c7920
cmp ax, 0x5c
jne 0x692c78c1
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x692c77b0
movzx eax, di
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.SchRpcEnumFolders
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 0x692c71fc
mov eax, dword [ebp - 0x5b8]
mov dword [esp], eax
mov eax, dword [ebp - 0x5c8]
call eax
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 3
je 0x692c7a04
mov esi, dword [eax + 0x34]
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovg esi, eax
lea esp, [ebp - 0xc]
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x692c77b0
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x692c79b5
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 0x692c77b0
mov esi, 0x225c
add ecx, 2
mov word [ecx - 2], si
jmp 0x692c77b0
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x692c77b0
mov eax, dword [ebp - 0x5c0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
mov edx, dword [ebp - 0x5ac]
mov eax, dword [ebp - 0x5b8]
sub esp, 4
call sym._free_list
lea esp, [ebp - 0xc]
mov esi, 0x8007000e
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp - 0x5b0]
mov ebx, esi
mov esi, 1
jmp 0x692c7642
mov byte [ecx], 0x22
test eax, eax
jle 0x692c79e2
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 0x692c781f
mov byte [ecx], al
add ecx, 1
jmp 0x692c77b0
mov edx, str._null_
jmp 0x692c781f
mov eax, 0x224c
mov byte [ebp - 0x266], 0x22
lea ecx, [ebp - 0x266]
mov word [ebp - 0x268], ax
lea eax, [ecx + 1]
jmp 0x692c799d
mov esi, 0x80070057
jmp 0x692c7673
mov dword [esp], eax
mov esi, 0x800700ce
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x692c7673
mov esi, 0x80070002
jmp 0x692c7673