Function at 0x401304
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x43d27c
call fcn.0041de9c
sub esp, 0x2a4
push ebx
push esi
push edi
mov ebx, ecx
and byte [ebp - 0x2b0], 0
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x2af]
and dword [ebp - 4], 0
rep stosd dword es:[edi], eax
cmp byte [ebp + 0x1c], 0
stosw word es:[edi], ax
stosb byte es:[edi], al
je 0x401378
mov esi, dword [ebp + 0xc]
mov edx, 0x440680
test esi, esi
jne 0x401348
mov esi, edx
mov eax, dword [ebx + 0x84]
mov ecx, edx
test eax, eax
je 0x401356
mov ecx, eax
mov eax, dword [ebx + 0x74]
test eax, eax
jne 0x40135f
mov eax, edx
push esi
push ecx
push eax
lea eax, [ebp - 0x2b0]
push str._s_s_s.
push eax
call fcn.0041e050
add esp, 0x14
jmp 0x4013bd
push dword [0x44067c]
lea eax, [ebp + 8]
lea ecx, [ebx + 0x80]
push 0
push eax
call fcn.004028ad
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x40139b
mov ecx, 0x440680
mov eax, dword [ebx + 0x74]
test eax, eax
jne 0x4013a7
mov eax, 0x440680
push ecx
push eax
lea eax, [ebp - 0x2b0]
push str._s_s.
push eax
call fcn.0041e050
add esp, 0x10
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x2b0]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x40167a
mov esi, dword [sym.imp.USER32.dll_CharLowerA]
mov edi, 0x44e1c8
cmp dword [ebp - 0x1b0], 0x10
je 0x40156c
cmp dword [ebp - 0x1b0], 0x30
je 0x40156c
lea eax, [ebp - 0x184]
push str..dir
push eax
call fcn.0041dfd0
pop ecx
test eax, eax
pop ecx
jne 0x401662
lea eax, [ebp - 0x184]
push str..src2
push eax
call fcn.0041dfd0
pop ecx
test eax, eax
pop ecx
jne 0x401662
lea eax, [ebp - 0x184]
push str..exe
push eax
call fcn.0041dfd0
pop ecx
test eax, eax
pop ecx
jne 0x401662
lea eax, [ebp - 0x184]
push str..src
push eax
call fcn.0041dfd0
pop ecx
test eax, eax
pop ecx
jne 0x401662
lea eax, [ebp - 0x184]
push str..hdr
push eax
call fcn.0041dfd0
pop ecx
test eax, eax
pop ecx
jne 0x401662
lea eax, [ebp - 0x184]
push str..lst
push eax
call fcn.0041dfd0
pop ecx
test eax, eax
pop ecx
jne 0x401662
cmp byte [ebp + 0x1c], al
je 0x401515
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0040354b
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040354b
add esp, 0x18
push 1
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 7
call fcn.004029a7
cmp dword [ebp - 0x1c], 0
je 0x4014f0
lea ecx, [ebp - 0x20]
call fcn.0040297b
mov eax, dword [ebp - 0x1c]
jmp 0x4014f5
mov eax, 0x440680
push eax
call esi
lea eax, [ebp - 0x20]
lea ecx, [ebx + 0x90]
push eax
call fcn.0040289c
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x20]
jmp 0x40165d
lea eax, [ebp - 0x184]
push eax
call esi
mov al, byte [ebp + 0x1f]
push 0
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x50], al
call fcn.004029a7
lea eax, [ebp - 0x184]
push eax
call fcn.0041dec0
pop ecx
push eax
lea eax, [ebp - 0x184]
push eax
lea ecx, [ebp - 0x50]
call fcn.00402b89
lea eax, [ebp - 0x50]
lea ecx, [ebx + 0x90]
push eax
mov byte [ebp - 4], 8
call fcn.0040289c
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x50]
jmp 0x40165d
lea eax, [ebp - 0x184]
push 0x44e194
push eax
call fcn.0041df40
pop ecx
test eax, eax
pop ecx
je 0x401662
lea eax, [ebp - 0x184]
push 0x44e190
push eax
call fcn.0041df40
pop ecx
test eax, eax
pop ecx
je 0x401662
cmp byte [ebp + 0x1c], 0
je 0x40160e
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0040354b
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 1
push ecx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040354b
add esp, 0x18
push 1
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.004029a7
cmp dword [ebp - 0x2c], 0
je 0x4015ef
lea ecx, [ebp - 0x30]
call fcn.0040297b
mov eax, dword [ebp - 0x2c]
jmp 0x4015f4
mov eax, 0x440680
push eax
call esi
mov ecx, dword [ebp + 0x18]
lea eax, [ebp - 0x30]
push eax
call fcn.0040289c
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x30]
jmp 0x40165d
lea eax, [ebp - 0x184]
push eax
call esi
mov al, byte [ebp + 0x1f]
push 0
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x40], al
call fcn.004029a7
lea eax, [ebp - 0x184]
push eax
call fcn.0041dec0
pop ecx
push eax
lea eax, [ebp - 0x184]
push eax
lea ecx, [ebp - 0x40]
call fcn.00402b89
mov ecx, dword [ebp + 0x18]
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 4
call fcn.0040289c
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x40]
call fcn.004029a7
lea eax, [ebp - 0x1b0]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x4013e8
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_FindClose]
and byte [ebx + 0x6c], 0
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp + 8]
call fcn.004029a7
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18