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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x13c
lea eax, [ebp - 0x248]
push 0
push eax
mov dword [ebp - 0x24c], 0
call sub.MSVCRT.dll_memset
mov ecx, dword [esi]
mov eax, dword [ecx + 0x318]
add esp, 0xc
or edi, 0xffffffff
test eax, eax
je 0x1002be88
push esi
call eax
cmp eax, edi
jne 0x1002be93
mov edx, dword [esi]
cmp byte [edx + 0x34c], 0xff
je 0x1002bea3
call fcn.1002f0f0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [ebp - 0x10c]
mov eax, ebx
sub edx, ebx
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1002beb0
mov eax, 0xc
xor ecx, ecx
mov edx, dword [ebp + ecx - 0x10c]
cmp edx, dword [ecx + str.My_Documents]
jne 0x1002bee0
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x1002bec1
mov edi, 5
cmp dword [ebp - 0x10c], 0x6b736544
jne 0x1002bf09
cmp byte [ebp - 0x108], 0x74
jne 0x1002bf09
cmp byte [ebp - 0x107], 0x6f
jne 0x1002bf09
cmp byte [ebp - 0x106], 0x70
jne 0x1002bf09
xor edi, edi
mov eax, 0x11
mov ecx, str.Network_Favorites
lea edx, [ebp - 0x10c]
lea esp, [esp]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x1002bf41
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x1002bf20
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1002bf41
mov edi, 0x13
jmp 0x1002bf46
cmp edi, 0xffffffff
je 0x1002bf58
push 0
push edi
lea ecx, [ebp - 0x10c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002bf61
sub eax, edx
cmp byte [ebp + eax - 0x10d], 0x5c
jne 0x1002bf94
lea edi, [ebp - 0x10c]
dec edi
jmp 0x1002bf80
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1002bf80
mov dx, word [0x10048c44]
mov word [edi], dx
jmp 0x1002bfbb
lea eax, [ebp - 0x10c]
dec eax
jmp 0x1002bfa0
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1002bfa0
mov cx, word [0x10047f9c]
mov dl, byte [0x10047f9e]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
xor eax, eax
mov cl, 2
cmp esi, 0xffffffff
jne 0x1002bff1
mov edx, dword [ebp + 8]
push eax
push 1
push edx
xor edi, edi
call fcn.1002bd60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push 1
push ebx
call fcn.1002bd60
test al, al
je 0x1002be98
jmp 0x1002c010
mov ecx, 0x10044228
lea eax, [ebp - 0x220]
jmp 0x1002c020
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1002c040
test dl, dl
je 0x1002c03c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1002c040
add eax, 2
add ecx, 2
test dl, dl
jne 0x1002c020
xor eax, eax
jmp 0x1002c045
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1002c079
lea eax, [ebp - 0x220]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002c052
lea ecx, [ebp - 0x24c]
push ecx
sub eax, edx
push 1
lea edi, [eax + 0x2e]
push ebx
xor eax, eax
mov cl, 2
call fcn.1002bd60
test al, al
je 0x1002be98
lea edx, [ebp - 0x24c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1002c010
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 0
push ebx
xor eax, eax
mov cl, 2
xor edi, edi
call fcn.1002bd60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc