Function at 0x6ad47d60
Capabilities:
Enumerate files on windows
Get common file path

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, 0x4b8
mov eax, dword [ecx]
mov dword [ebp - 0x484], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x490], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x49c], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x498], eax
test byte [0x6ad4c0c0], 8
jne 0x6ad4803c
mov eax, dword [ebp - 0x490]
test eax, eax
je 0x6ad480e5
mov ecx, dword [ebp - 0x49c]
test ecx, ecx
je 0x6ad480e5
mov edx, dword [ebp - 0x498]
test edx, edx
jne 0x6ad47dd6
cmp eax, 1
ja 0x6ad480e5
mov esi, dword [ebp - 0x498]
lea eax, [ebp - 0x474]
test esi, esi
cmovne eax, esi
mov esi, dword [ebp - 0x49c]
mov dword [ebp - 0x498], eax
mov dword [esi], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x484]
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x6ad47faa
lea esi, [ebp - 0x268]
mov dword [esp], eax
mov dword [ebp - 0x48c], esi
mov dword [esp + 4], esi
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
je 0x6ad48029
mov eax, dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [esp], 0x100
mov dword [ebp - 0x494], eax
call eax
mov dword [ebp - 0x480], eax
sub esp, 4
test eax, eax
je 0x6ad480ef
mov dword [ebp - 0x488], 0x40
xor ebx, ebx
lea edi, [ebp - 0x23c]
lea esi, [esi]
mov edx, dword [ebp - 0x268]
and edx, 0x10
jne 0x6ad47efd
cmp ebx, dword [ebp - 0x488]
jae 0x6ad47f50
cmp word [ebp - 0x23c], 0
je 0x6ad47fa0
mov eax, edi
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x6ad47ea0
sub eax, edi
add eax, 2
mov esi, dword [ebp - 0x480]
mov dword [esp], eax
mov dword [ebp - 0x47c], edx
mov eax, dword [ebp - 0x494]
call eax
lea esi, [esi + ebx*4]
mov dword [esi], eax
sub esp, 4
mov ecx, eax
test eax, eax
je 0x6ad4808e
mov edx, dword [ebp - 0x47c]
lea esi, [esi]
movzx eax, word [edi + edx]
mov word [ecx + edx], ax
add edx, 2
test ax, ax
jne 0x6ad47ee0
inc ebx
cmp dword [ebp - 0x490], ebx
jbe 0x6ad48087
mov eax, dword [ebp - 0x48c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x484]
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
jne 0x6ad47e70
mov eax, 1
mov esi, dword [ebp - 0x498]
mov edi, dword [ebp - 0x480]
mov dword [esi], ebx
mov esi, dword [ebp - 0x49c]
mov dword [esi], edi
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, dword [ebp - 0x488]
mov dword [ebp - 0x47c], edx
lea esi, [eax + eax]
shl eax, 3
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x480]
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoTaskMemRealloc]
sub esp, 8
test eax, eax
je 0x6ad4808e
cmp word [ebp - 0x23c], 0
mov dword [ebp - 0x480], eax
mov dword [ebp - 0x488], esi
mov edx, dword [ebp - 0x47c]
jne 0x6ad47e99
mov eax, 2
jmp 0x6ad47eae
lea ebx, [ebp - 0x470]
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
mov edx, ebx
sub esp, 8
cmp word [ebp - 0x470], 0
je 0x6ad47fd9
add edx, 2
cmp word [edx], 0
jne 0x6ad47fd0
xor eax, eax
mov ecx, 0x5c
jmp 0x6ad47fef
movzx ecx, word [eax + str.Tasks]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x6ad47fe8
lea eax, [ebp - 0x268]
mov dword [esp], ebx
mov dword [ebp - 0x48c], eax
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov esi, dword [ebp - 0x484]
sub esp, 8
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x6ad47e35
lea esp, [ebp - 0x10]
mov eax, 1
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x49c]
mov dword [esp + 0xc], str.__p_____lu__p__p__n
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x490]
mov dword [esp + 8], str.EnumWorkItems_Next
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x484]
mov dword [esp + 4], 0x6ad4c0c0
mov dword [esp + 0x10], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x6ad47da7
xor eax, eax
jmp 0x6ad47f29
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
xor edi, edi
test ebx, ebx
jle 0x6ad480c4
mov dword [ebp - 0x47c], ebx
mov ebx, edi
mov edi, dword [ebp - 0x480]
lea esi, [esi]
nop
mov edx, dword [edi + ebx*4]
inc ebx
mov dword [esp], edx
call esi
sub esp, 4
cmp dword [ebp - 0x47c], ebx
jne 0x6ad480b0
mov eax, dword [ebp - 0x480]
mov dword [esp], eax
call esi
mov eax, 0x8007000e
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, 0x80070057
jmp 0x6ad47f3f
mov eax, 0x8007000e
jmp 0x6ad47f3f