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

Disassembly:
sub esp, 0x478
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x364]
push eax
mov ebp, ecx
push 0x104
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x9c5c
mov ecx, ebp
call fcn.004035f0
lea edx, [esp + 0x1c]
jmp 0x402cf0
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x402cf0
mov ebx, dword [esp + 0x48c]
mov eax, ebx
mov esi, ebx
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402d10
lea edi, [esp + 0x1c]
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x402d22
mov edx, dword [ebp + 0x40]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0xc
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x490]
lea edx, [esp + 0x260]
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x402d60
lea eax, [esp + 0x260]
push 0x4074f8
push eax
call dword [sym.imp.MSVCR80.dll_strtok]
add esp, 8
test eax, eax
je 0x402f67
lea ecx, [esp + 0x1c]
sub ecx, ebx
mov dword [esp + 0x18], ecx
mov esi, dword [esp + 0x18]
mov ecx, ebx
lea ebx, [ebx]
mov dl, byte [ecx]
mov byte [esi + ecx], dl
add ecx, 1
test dl, dl
jne 0x402da0
mov ecx, ebx
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x402db1
sub ecx, esi
cmp byte [ebx + ecx - 1], 0x5c
je 0x402de4
lea edi, [esp + 0x1c]
add edi, 0xffffffff
lea ebx, [ebx]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x402dd0
mov cx, word [0x4074f4]
mov word [edi], cx
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402de6
lea edi, [esp + 0x1c]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x402df8
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x120]
push edx
lea eax, [esp + 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x402f39
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x88]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x402f31
mov eax, dword [esp + 0x120]
test al, 0x16
jne 0x402f18
test eax, 0x100
jne 0x402f18
mov edx, dword [esp + 0x18]
mov eax, ebx
jmp 0x402e70
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x402e70
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402e81
sub eax, edx
cmp byte [ebx + eax - 1], 0x5c
je 0x402eb3
lea edi, [esp + 0x1c]
add edi, 0xffffffff
lea ebx, [ebx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x402ea0
mov ax, word [0x4074f4]
mov word [edi], ax
lea eax, [esp + 0x14c]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402ec0
lea edi, [esp + 0x1c]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x402ed2
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]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004024a0
test eax, eax
je 0x402f18
mov eax, dword [esp + 0x494]
lea edx, [esp + 0x1c]
push edx
push 0
push 0x180
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x120]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402e30
jmp 0x402f39
mov dword [esp + 0x10], 1
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x10], 0
jne 0x403020
push 0x4074f8
push 0
call dword [sym.imp.MSVCR80.dll_strtok]
add esp, 8
test eax, eax
jne 0x402d94
mov ebp, dword [esp + 0x14]
mov edx, dword [ebp + 0x58]
push 0
push 0
push 0xf0
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
jne 0x403166
lea ebp, [esp + 0x1c]
mov eax, ebx
sub ebp, ebx
jmp 0x402f90
mov cl, byte [eax]
mov byte [eax + ebp], cl
add eax, 1
test cl, cl
jne 0x402f90
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402fa1
sub eax, edx
cmp byte [eax + ebx - 1], 0x5c
je 0x402fd3
lea edi, [esp + 0x1c]
add edi, 0xffffffff
lea ebx, [ebx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x402fc0
mov ax, word [0x4074f4]
mov word [edi], ax
lea edi, [esp + 0x1c]
add edi, 0xffffffff
lea ebx, [ebx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x402fe0
mov cx, word [0x4074f0]
lea edx, [esp + 0x120]
push edx
lea eax, [esp + 0x20]
push eax
mov word [edi], cx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x403030
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x478
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x478
ret 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x88]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x403157
test byte [esp + 0x120], 0x10
je 0x40313e
mov edi, 0x4074ec
lea esi, [esp + 0x14c]
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40313e
mov edi, 0x4074e8
lea esi, [esp + 0x14c]
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40313e
mov eax, dword [esp + 0x48c]
mov cl, byte [eax]
mov byte [eax + ebp], cl
add eax, 1
test cl, cl
jne 0x403096
mov esi, dword [esp + 0x48c]
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4030b0
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
je 0x4030e3
lea edi, [esp + 0x1c]
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4030d0
mov ax, word [0x4074f4]
mov word [edi], ax
lea eax, [esp + 0x14c]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4030f0
lea edi, [esp + 0x1c]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x403102
mov ecx, eax
shr ecx, 2
mov esi, edx
mov edx, dword [esp + 0x490]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x494]
push ecx
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00402cb0
test eax, eax
je 0x403157
lea ecx, [esp + 0x120]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403030
jmp 0x40315f
mov dword [esp + 0x10], 1
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
xor eax, eax
cmp dword [esp + 0xc], eax
pop esi
pop ebp
sete al
pop ebx
add esp, 0x478
ret 0xc