Function at 0x1002d5a0
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 0x1002d5fd
push ebx
call eax
cmp eax, esi
jne 0x1002d608
mov eax, dword [ebx]
cmp byte [eax + 0x34c], 0xff
je 0x1002d61a
mov esi, ebx
call fcn.10030a00
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 0x1002d625
mov eax, 0xc
xor ecx, ecx
jmp 0x1002d640
mov edx, dword [ebp + ecx - 0x114]
cmp edx, dword [ecx + str.My_Documents]
jne 0x1002d65f
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x1002d640
mov esi, 5
cmp dword [ebp - 0x114], 0x6b736544
jne 0x1002d688
cmp byte [ebp - 0x110], 0x74
jne 0x1002d688
cmp byte [ebp - 0x10f], 0x6f
jne 0x1002d688
cmp byte [ebp - 0x10e], 0x70
jne 0x1002d688
xor esi, esi
mov edx, 0x11
mov eax, str.Network_Favorites
lea ecx, [ebp - 0x114]
mov edi, dword [ecx]
cmp edi, dword [eax]
jne 0x1002d6b9
sub edx, 4
add eax, 4
add ecx, 4
cmp edx, 4
jae 0x1002d698
mov al, byte [eax]
cmp al, byte [ecx]
jne 0x1002d6b9
mov esi, 0x13
jmp 0x1002d6be
cmp esi, 0xffffffff
je 0x1002d733
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 0x1002d718
cmp byte [eax + 1], 0
je 0x1002d718
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d6f0
lea edi, [ebp - 0x5ac]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1002d700
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 0x1002d720
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d740
sub eax, edx
cmp byte [ebp + eax - 0x115], 0x5c
jne 0x1002d773
lea edi, [ebp - 0x114]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1002d760
mov ax, word [0x1004ad08]
mov word [edi], ax
jmp 0x1002d79b
lea eax, [ebp - 0x114]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1002d780
mov cx, word [0x10049fbc]
mov dl, byte [0x10049fbe]
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 0x1002d7a4
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 0x1002d800
push 0
push 1
push ebx
xor edi, edi
xor eax, eax
call fcn.1002d4c0
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.1002d4c0
test al, al
je 0x1002d60f
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x1002d830
push 0x1004ad0c
lea eax, [ebp - 0x478]
push eax
call esi
test eax, eax
je 0x1002d8e2
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 0x1002d8af
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 0x1002d8b8
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.1002d4c0
test al, al
je 0x1002d60f
mov edi, dword [ebp - 8]
lea eax, [ebp - 0x4a4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1002d830
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.1002d4c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc