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

Disassembly:
push ebp
sub esp, 0x384
lea ebp, [esp - 4]
mov eax, dword [0x4a946c]
xor eax, ebp
mov dword [ebp + 0x384], eax
push 0x1c
mov eax, 0x46debe
call fcn.004550bc
mov edi, dword [ebp + 0x394]
xor esi, esi
mov dword [ebp - 4], esi
call fcn.00442144
push eax
lea ecx, [ebp - 0x18]
call fcn.0040132d
mov byte [ebp - 4], 1
call fcn.00442144
push eax
lea ecx, [ebp - 0x10]
call fcn.0040132d
push esi
push esi
lea eax, [ebp + 0x280]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x390]
mov byte [ebp - 4], 2
call fcn.00457da9
add esp, 0x14
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401759
lea eax, [ebp + 0x280]
push eax
lea ecx, [ebp - 0x10]
call fcn.004041d2
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
cmp eax, esi
jne 0x407034
lea eax, [ebp + 0x280]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x407034
lea eax, [ebp + 0x280]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401759
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea ecx, [ebp - 0x10]
call fcn.00401e95
cmp al, 0x5c
je 0x406ffe
push 0x477f08
lea ecx, [ebp - 0x10]
call fcn.004041d2
lea eax, [ebp + 0x390]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00404124
add esp, 0xc
push eax
lea ecx, [ebp + 0x390]
mov byte [ebp - 4], 3
call fcn.0040170c
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.004010af
push esi
push 0x5c
lea ecx, [ebp + 0x390]
call fcn.00402c5e
test eax, eax
jle 0x40708e
mov eax, dword [ebp + 0x390]
mov esi, dword [eax - 0xc]
push 0x5c
lea ecx, [ebp + 0x390]
call fcn.00406f03
sub esi, eax
dec esi
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 0x390]
call fcn.00401ecf
push eax
lea ecx, [ebp + 0x390]
mov byte [ebp - 4], 4
call fcn.0040170c
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.004010af
push 0x47ac48
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040177e
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esp, 0xc
lea ecx, [ebp + 0x140]
push ecx
push eax
call esi
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov dword [ebp - 0x14], eax
call fcn.004010af
cmp dword [ebp - 0x14], 0xffffffff
je 0x407219
lea eax, [ebp + 0x390]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00404124
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp]
push ecx
push eax
call esi
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010af
cmp esi, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
je 0x407150
test byte [ebp], 0x10
jne 0x40713e
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040177e
add esp, 0xc
mov ecx, dword [edi + 8]
push eax
push ecx
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.0044a503
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.004010af
lea eax, [ebp]
push eax
push esi
call ebx
test eax, eax
jne 0x407105
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x398], 0
je 0x407210
jmp 0x4071fc
test byte [ebp + 0x140], 0x10
je 0x4071fc
cmp byte [ebp + 0x16c], 0x2e
jne 0x407193
cmp byte [ebp + 0x16d], 0
je 0x4071fc
cmp byte [ebp + 0x16d], 0x2e
jne 0x407193
cmp byte [ebp + 0x16e], 0
je 0x4071fc
lea eax, [ebp + 0x16c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040177e
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.0040170c
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.004010af
push 0x477f08
lea ecx, [ebp - 0x18]
call fcn.004041d2
push dword [ebp + 0x398]
push edi
push ecx
mov eax, esp
mov dword [ebp - 0x20], esp
lea ecx, [ebp + 0x390]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.00404124
add esp, 0xc
call fcn.00406f25
add esp, 0xc
lea eax, [ebp + 0x140]
push eax
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x407162
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010af
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004010af
mov ecx, dword [ebp + 0x390]
add ecx, 0xfffffff0
call fcn.004010af
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x384]
xor ecx, ebp
call fcn.004550ad
add ebp, 0x388
leave
ret