Function at 0x418760
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
mov eax, dword [0x497040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x358], edx
push esi
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x354], eax
push edi
mov esi, ebx
sub ecx, ebx
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x418791
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4187a0
lea edi, [ebp - 0x20c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4187b0
mov ecx, edx
lea eax, [ebp - 0x34c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
lea eax, [ebp - 0x20c]
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x350], eax
cmp eax, 0xffffffff
je 0x41884d
mov ecx, dword [ebp - 0x354]
test ecx, ecx
je 0x418830
mov edx, ecx
sub edx, ebx
mov al, byte [ebx]
lea ebx, [ebx + 1]
mov byte [edx + ebx - 1], al
test al, al
jne 0x4187f3
lea edx, [ebp - 0x320]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x418808
sub edx, esi
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x418812
mov edi, ecx
mov eax, dword [ebp - 0x350]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f4a5
mov esp, ebp
pop ebp
ret
lea esi, [ebp - 0x108]
mov ecx, ebx
sub esi, ebx
mov dword [ebp - 0x350], esi
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x418860
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x418874
mov eax, dword [0x491398]
mov dword [edi], eax
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 0x35c], edi
cmp edi, 0xffffffff
je 0x418970
nop word [eax + eax]
cmp byte [ebp - 0x320], 0x2e
je 0x418953
test byte [ebp - 0x34c], 0x10
je 0x418953
mov eax, ebx
nop dword [eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [esi + eax - 1], cl
test cl, cl
jne 0x4188d0
lea edx, [ebp - 0x320]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4188e5
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4188f5
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x418912
mov ax, word [0x48d94c]
lea ecx, [ebp - 0x108]
push dword [ebp - 0x354]
mov edx, dword [ebp - 0x358]
mov word [edi], ax
call fcn.00418760
add esp, 4
test eax, eax
jne 0x418837
mov esi, dword [ebp - 0x350]
mov edi, dword [ebp - 0x35c]
lea eax, [ebp - 0x34c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4188b0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f4a5
mov esp, ebp
pop ebp
ret