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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc68
mov eax, 0x4d7ce8
push ebx
push esi
push edi
lea esi, [ebp - 0x50]
mov ebx, dword [ebp + 8]
call fcn.004c928c
mov dword [esi + 0x1c], 1
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.004d5778
inc dword [esi + 0x1c]
xor edx, edx
mov word [esi + 0x10], 8
mov word [esi + 0x10], 0x14
mov dword [ebp - 4], edx
inc dword [esi + 0x1c]
mov word [esi + 0x10], 8
cmp dword [ebp + 0xc], 0
je 0x4030d2
mov ecx, dword [ebp + 0xc]
jmp 0x4030d7
mov ecx, 0x4d72e4
mov edi, ecx
xor eax, eax
push esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x294]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
lea eax, [ebp - 0x294]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
push 0x5c
push eax
call fcn.004c8fbd
add esp, 8
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
push esi
push edi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x398]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov byte [edi + 1], 0
cmp dword [ebx + 0x66c], 3
jne 0x403173
dec dword [esi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004d58a0
dec dword [esi + 0x1c]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004d58a0
mov ecx, dword [esi]
mov dword fs:[0], ecx
jmp 0x403439
xor edx, edx
mov eax, dword [ebx + 0x588]
mov ecx, dword [eax]
call dword [ecx + 0x64]
xor edx, edx
mov eax, dword [ebx + 0x59c]
call fcn.0043ec34
mov ecx, dword [ebp + 0xc]
push ecx
push ebx
call fcn.00402e7c
mov word [esi + 0x10], 0x20
add esp, 8
lea edx, [ebp - 0x294]
lea eax, [ebp - 8]
call fcn.004d5740
inc dword [esi + 0x1c]
mov edx, 0x4d72e5
mov word [esi + 0x10], 8
mov word [esi + 0x10], 0x2c
lea eax, [ebp - 0xc]
call fcn.004d5740
inc dword [esi + 0x1c]
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
inc dword [esi + 0x1c]
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004d58f8
lea edx, [ebp - 0x10]
lea eax, [ebp - 8]
call fcn.004d58d0
dec dword [esi + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004d58a0
dec dword [esi + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004d58a0
lea ecx, [ebp - 0x190]
push ecx
cmp dword [ebp - 8], 0
je 0x403220
mov eax, dword [ebp - 8]
jmp 0x403225
mov eax, 0x4d72e9
push eax
call sub.KERNEL32.DLL_FindFirstFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x403270
dec dword [esi + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004d58a0
dec dword [esi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004d58a0
dec dword [esi + 0x1c]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004d58a0
mov ecx, dword [esi]
mov dword fs:[0], ecx
jmp 0x403439
test byte [ebp - 0x190], 0x10
je 0x4033d1
mov word [esi + 0x10], 0x38
lea edx, [ebp - 0x164]
lea eax, [ebp - 0x14]
call fcn.004d5740
inc dword [esi + 0x1c]
lea edx, [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.004d58d0
dec dword [esi + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004d58a0
mov word [esi + 0x10], 0x44
mov edx, 0x4d72ea
lea eax, [ebp - 0x18]
call fcn.004d5740
inc dword [esi + 0x1c]
lea edx, [ebp - 0x18]
lea eax, [ebp - 4]
call fcn.004d5984
test al, al
je 0x40330d
mov edx, 0x4d72ec
lea eax, [ebp - 0x1c]
call fcn.004d5740
inc dword [esi + 0x1c]
lea edx, [ebp - 0x1c]
lea eax, [ebp - 4]
call fcn.004d5984
test al, al
lea eax, [ebp - 0x1c]
setne cl
and ecx, 1
mov edx, 2
push ecx
dec dword [esi + 0x1c]
call fcn.004d58a0
pop ecx
test ecx, ecx
jne 0x403311
xor eax, eax
jmp 0x403316
mov eax, 1
push eax
dec dword [esi + 0x1c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004d58a0
pop ecx
test cl, cl
je 0x4033d1
mov word [esi + 0x10], 0x50
lea edx, [ebp - 0x294]
lea eax, [ebp - 0x20]
call fcn.004d5740
inc dword [esi + 0x1c]
xor ecx, ecx
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x24]
inc dword [esi + 0x1c]
lea edx, [ebp - 4]
call fcn.004d58f8
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x398]
lea eax, [ebp - 0x28]
call fcn.004d5740
mov edx, eax
inc dword [esi + 0x1c]
xor eax, eax
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x2c]
inc dword [esi + 0x1c]
pop eax
call fcn.004d58f8
lea edx, [ebp - 0x2c]
mov ecx, dword [edx]
push ecx
push ebx
call fcn.0040307c
add esp, 8
dec dword [esi + 0x1c]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004d58a0
dec dword [esi + 0x1c]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004d58a0
dec dword [esi + 0x1c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004d58a0
dec dword [esi + 0x1c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004d58a0
lea ecx, [ebp - 0x190]
push ecx
push edi
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x403270
mov dl, 1
mov eax, dword [ebx + 0x588]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov dl, 1
mov eax, dword [ebx + 0x59c]
call fcn.0043ec34
dec dword [esi + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004d58a0
dec dword [esi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004d58a0
dec dword [esi + 0x1c]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004d58a0
mov ecx, dword [esi]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret