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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7b8
push ebx
push esi
push edi
xor edi, edi
push 0x13c
lea eax, [ebp - 0x250]
push edi
push eax
mov dword [ebp - 0x254], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x24c
lea ecx, [ebp - 0x4a0]
push edi
push ecx
mov dword [ebp - 0x4a4], edi
call sub.MSVCRT.dll_memset
mov ebx, dword [ebp + 8]
mov edx, dword [ebx]
mov eax, dword [edx + 0x318]
add esp, 0xc
or esi, 0xffffffff
cmp eax, edi
je 0x1002daad
push ebx
call eax
cmp eax, esi
jne 0x1002dab8
mov eax, dword [ebx]
cmp byte [eax + 0x34c], 0xff
je 0x1002daca
mov esi, ebx
call fcn.10030ea0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x114]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1002dad5
mov eax, 0xc
xor ecx, ecx
jmp 0x1002daf0
mov edx, dword [ebp + ecx - 0x114]
cmp edx, dword [ecx + str.My_Documents]
jne 0x1002db0f
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x1002daf0
mov esi, 5
cmp dword [ebp - 0x114], 0x6b736544
jne 0x1002db38
cmp byte [ebp - 0x110], 0x74
jne 0x1002db38
cmp byte [ebp - 0x10f], 0x6f
jne 0x1002db38
cmp byte [ebp - 0x10e], 0x70
jne 0x1002db38
xor esi, esi
mov edx, 0x11
mov eax, str.Network_Favorites
lea ecx, [ebp - 0x114]
mov edi, dword [ecx]
cmp edi, dword [eax]
jne 0x1002db69
sub edx, 4
add eax, 4
add ecx, 4
cmp edx, 4
jae 0x1002db48
mov al, byte [eax]
cmp al, byte [ecx]
jne 0x1002db69
mov esi, 0x13
jmp 0x1002db6e
cmp esi, 0xffffffff
je 0x1002dbe3
push 0
push esi
lea ecx, [ebp - 0x5ac]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edx, [ebp - 0x114]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x1002dbc8
cmp byte [eax + 1], 0
je 0x1002dbc8
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002dba0
lea edi, [ebp - 0x5ac]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1002dbb0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
lea ebx, [ebx]
mov cl, byte [ebp + eax - 0x5ac]
mov byte [ebp + eax - 0x114], cl
inc eax
test cl, cl
jne 0x1002dbd0
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002dbf0
sub eax, edx
cmp byte [ebp + eax - 0x115], 0x5c
jne 0x1002dc23
lea edi, [ebp - 0x114]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1002dc10
mov ax, word [0x1004ad94]
mov word [edi], ax
jmp 0x1002dc4b
lea eax, [ebp - 0x114]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1002dc30
mov cx, word [0x1004a00c]
mov dl, byte [0x1004a00e]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002dc54
sub eax, edx
inc eax
push eax
lea ecx, [ebp - 0x7b4]
push ecx
push eax
lea edx, [ebp - 0x114]
push edx
push 0
push 0x4e3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x4a4]
push eax
lea ecx, [ebp - 0x7b4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
mov cl, 2
cmp eax, 0xffffffff
jne 0x1002dcb0
push 0
push 1
push ebx
xor edi, edi
xor eax, eax
call fcn.1002d970
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push edx
push 1
push ebx
xor eax, eax
call fcn.1002d970
test al, al
je 0x1002dabf
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x1002dce0
push 0x1004ad98
lea eax, [ebp - 0x478]
push eax
call esi
test eax, eax
je 0x1002dd92
push 0x2c
lea ecx, [ebp - 0x4a4]
push ecx
lea edx, [ebp - 0x254]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x478]
push eax
call esi
push 0
push 0
inc eax
push eax
lea ecx, [ebp - 0x228]
push ecx
push eax
lea edx, [ebp - 0x478]
push edx
push 0
push 0x4e3
call ebx
lea eax, [ebp - 0x270]
push eax
call esi
test eax, eax
je 0x1002dd5f
push 0
push 0
push eax
lea ecx, [ebp - 0x124]
push ecx
push eax
lea edx, [ebp - 0x270]
push edx
push 0
push 0x4e3
call ebx
lea eax, [ebp - 0x228]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002dd68
lea ecx, [ebp - 0x254]
push ecx
sub eax, edx
mov edx, dword [ebp + 8]
push 1
lea edi, [eax + 0x2e]
push edx
xor eax, eax
mov cl, 2
call fcn.1002d970
test al, al
je 0x1002dabf
mov edi, dword [ebp - 8]
lea eax, [ebp - 0x4a4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1002dce0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
push 0
push 0
push ecx
mov cl, 2
xor edi, edi
xor eax, eax
call fcn.1002d970
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc