Function at 0x42fda0
Capabilities:
Enumerate files on windows
Enumerate files recursively
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x294
mov eax, dword [0x551764]
xor eax, esp
mov dword [esp + 0x290], eax
mov al, byte [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov byte [esp + 0xf], al
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 8]
lea esi, [eax + ecx*2]
mov eax, dword [edi + 4]
mov dword [esp + 0x10], esi
lea eax, [edx + eax*2]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x48]
push eax
push edx
mov dword [esi], 0x2a
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x30], eax
cmp eax, 0xffffffff
je 0x430042
cmp word [esp + 0x74], 0x2e
jne 0x42fe40
mov ax, word [esp + 0x76]
cmp ax, 0x2e
jne 0x42fe32
cmp word [esp + 0x78], 0
jmp 0x42fe35
test ax, ax
sete al
test al, al
jne 0x430027
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x74]
sub edx, esi
mov ecx, esi
push eax
sar edx, 1
call fcn.00407030
mov ecx, dword [edi + 8]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42fe60
sub ecx, edx
mov dword [edi + 0x18], esi
sar ecx, 1
mov dword [edi + 0xc], ecx
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42fe80
sub ecx, edx
sar ecx, 1
push esi
mov dword [edi + 0x1c], ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
xor ecx, ecx
movzx edx, word [eax]
test dx, dx
je 0x42feb6
cmp dx, 0x2e
movzx edx, word [eax + 2]
cmove ecx, eax
add eax, 2
test dx, dx
jne 0x42fea3
test ecx, ecx
cmovne eax, ecx
mov dword [edi + 0x20], eax
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42fec1
sub eax, edx
mov ecx, dword [esp + 0x14]
sar eax, 1
mov dword [edi + 0x24], eax
mov eax, dword [esp + 0x64]
mov dword [edi + 0x2c], eax
mov eax, dword [esp + 0x68]
mov dword [edi + 0x28], eax
mov eax, dword [esp + 0x54]
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x58]
mov dword [edi + 0x3c], eax
mov eax, dword [esp + 0x5c]
mov dword [edi + 0x40], eax
mov eax, dword [esp + 0x60]
mov dword [edi + 0x44], eax
mov eax, dword [esp + 0x4c]
mov dword [edi + 0x30], eax
mov eax, dword [esp + 0x50]
mov dword [edi + 0x34], eax
mov eax, dword [esp + 0x48]
mov dword [edi + 0x48], eax
mov esi, dword [0x552020]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edi
cmp esi, 0x552020
je 0x42ff5e
lea eax, [esp + 0x3c]
push eax
lea eax, [esi - 0x74]
push eax
push ecx
call fcn.0042fc40
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x43003e
mov esi, dword [esi]
mov ecx, dword [esp + 0x14]
cmp esi, 0x552020
jne 0x42ff34
xor ebx, ebx
test ebx, ebx
jne 0x43003e
mov eax, dword [esp + 0x48]
and eax, 0x410
cmp eax, 0x10
jne 0x430023
cmp byte [esp + 0xf], 1
jne 0x430023
mov eax, dword [edi + 0x4c]
mov esi, dword [edi + 4]
mov edx, esi
mov ebx, dword [edi + 8]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push ecx
push eax
mov ecx, ebx
call fcn.004071b0
test eax, eax
js 0x42ffca
mov eax, dword [esp + 0x20]
sub esi, eax
push ecx
push 0x52e1dc
push ecx
lea ecx, [ebx + eax*2]
mov edx, esi
call fcn.004106b0
mov ebx, dword [esp + 0x18]
mov edx, edi
inc dword [edi + 0xc]
mov ecx, ebx
call fcn.0042fb70
mov edx, eax
cmp edx, dword [edi + 0x4c]
je 0x42fff7
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x4c], edx
lea eax, [eax + ecx*2]
mov dword [edi + 0x10], eax
mov ecx, dword [esp + 0x14]
mov edx, ebx
push 1
push edi
call fcn.0042fda0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x43003e
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x4c], ecx
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x10], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edi + 0x14], ecx
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42fe17
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x29c]
mov dword [edi + 0x4c], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 0x10], eax
xor eax, eax
pop edi
mov word [esi], ax
mov eax, ebx
pop esi
pop ebx
xor ecx, esp
call fcn.004c715a
mov esp, ebp
pop ebp
ret