Function at 0x1002cf20
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 0x1002cf7d
push ebx
call eax
cmp eax, esi
jne 0x1002cf88
mov eax, dword [ebx]
cmp byte [eax + 0x34c], 0xff
je 0x1002cf9a
mov esi, ebx
call fcn.10030370
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 0x1002cfa5
mov eax, 0xc
xor ecx, ecx
jmp 0x1002cfc0
mov edx, dword [ebp + ecx - 0x114]
cmp edx, dword [ecx + str.My_Documents]
jne 0x1002cfdf
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x1002cfc0
mov esi, 5
cmp dword [ebp - 0x114], 0x6b736544
jne 0x1002d008
cmp byte [ebp - 0x110], 0x74
jne 0x1002d008
cmp byte [ebp - 0x10f], 0x6f
jne 0x1002d008
cmp byte [ebp - 0x10e], 0x70
jne 0x1002d008
xor esi, esi
mov edx, 0x11
mov eax, str.Network_Favorites
lea ecx, [ebp - 0x114]
mov edi, dword [ecx]
cmp edi, dword [eax]
jne 0x1002d039
sub edx, 4
add eax, 4
add ecx, 4
cmp edx, 4
jae 0x1002d018
mov al, byte [eax]
cmp al, byte [ecx]
jne 0x1002d039
mov esi, 0x13
jmp 0x1002d03e
cmp esi, 0xffffffff
je 0x1002d0b3
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 0x1002d098
cmp byte [eax + 1], 0
je 0x1002d098
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d070
lea edi, [ebp - 0x5ac]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1002d080
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 0x1002d0a0
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d0c0
sub eax, edx
cmp byte [ebp + eax - 0x115], 0x5c
jne 0x1002d0f3
lea edi, [ebp - 0x114]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1002d0e0
mov ax, word [0x1004b468]
mov word [edi], ax
jmp 0x1002d11b
lea eax, [ebp - 0x114]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1002d100
mov cx, word [0x1004a434]
mov dl, byte [0x1004a436]
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 0x1002d124
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 0x1002d180
push 0
push 1
push ebx
xor edi, edi
xor eax, eax
call fcn.1002ce30
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.1002ce30
test al, al
je 0x1002cf8f
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x1002d1b0
push 0x1004b46c
lea eax, [ebp - 0x478]
push eax
call esi
test eax, eax
je 0x1002d262
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 0x1002d22f
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 0x1002d238
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.1002ce30
test al, al
je 0x1002cf8f
mov edi, dword [ebp - 8]
lea eax, [ebp - 0x4a4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1002d1b0
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.1002ce30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc