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

Disassembly:
sub esp, 0x26c
mov eax, dword [0x470d00]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
mov ebx, dword [esp + 0x274]
push ebp
mov ebp, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push esi
mov esi, dword [esp + 0x280]
push edi
mov edi, dword [esp + 0x28c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], 1
test edi, edi
je 0x42f881
push 0x464c2c
push edi
mov dword [esp + 0x28], 0xffffffff
call fcn.0042f4f0
mov ebp, eax
lea eax, [esp + 0x28]
push eax
push ebp
mov dword [esp + 0x34], ebp
call fcn.0043b140
mov edi, eax
add esp, 0x10
mov esi, edi
mov al, byte [edi]
test al, al
je 0x42f86a
mov ebp, ebx
lea esi, [esi + 1]
cmp al, 0x5c
je 0x42f82d
cmp al, 0x2f
jne 0x42f85c
mov bl, byte [esi]
push 0
push 0
mov byte [esi], 0
push edi
push dword [ebp + 4]
call fcn.00432760
add esp, 0x10
test eax, eax
jns 0x42f85a
push edi
push dword [ebp + 4]
call sym.wluart.exe_zip_entry_open
push dword [ebp + 4]
call sym.wluart.exe_zip_entry_close
add esp, 0xc
mov byte [esi], bl
mov al, byte [esi]
test al, al
jne 0x42f822
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call ebp
push edi
call ebp
mov edi, dword [esp + 0x24]
add esp, 8
mov esi, dword [esp + 0x18]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f886
sub ecx, edx
sar ecx, 1
lea eax, [esi + ecx*2]
nop dword [eax + eax]
movzx ecx, word [eax - 2]
lea eax, [eax - 2]
cmp ecx, 0x2f
je 0x42f8b1
cmp ecx, 0x5c
jne 0x42f8b8
xor ecx, ecx
mov word [eax], cx
jmp 0x42f8a0
push 0x465a10
push esi
call fcn.0042f4f0
add esp, 8
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 0x20], esi
cmp esi, 0xffffffff
je 0x42fac6
cmp word [esp + 0x54], 0x2e
jne 0x42f905
mov ax, word [esp + 0x56]
cmp ax, 0x2e
je 0x42faa7
test ax, ax
je 0x42faa7
mov ecx, dword [esp + 0x18]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f910
sub ecx, edx
lea edx, [esp + 0x54]
sar ecx, 1
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42f926
sub edx, esi
sar edx, 1
push 1
lea esi, [edx + 2]
add esi, ecx
lea eax, [esi + esi]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov ebp, eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x24]
push 0x465a04
push esi
push ebp
call fcn.0042a210
add esp, 0x1c
test edi, edi
je 0x42f9c2
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f970
sub ecx, edx
lea edx, [esp + 0x54]
sar ecx, 1
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42f986
sub edx, esi
sar edx, 1
push 1
lea esi, [edx + 2]
add esi, ecx
lea eax, [esi + esi]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov edi, eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x28]
push 0x465a04
push esi
push edi
call fcn.0042a210
add esp, 0x1c
jmp 0x42f9c4
xor edi, edi
test byte [esp + 0x28], 0x10
je 0x42f9ef
test edi, edi
lea eax, [esp + 0x54]
cmovne eax, edi
push eax
push dword [esp + 0x28c]
push ebp
push ebx
call fcn.0042f7a0
add esp, 0x10
and dword [esp + 0x10], eax
jmp 0x42fa94
cmp dword [esp + 0x44], 0
mov dword [esp + 0x24], 0xffffffff
je 0x42fa05
cmp dword [esp + 0x48], 0
jne 0x42fa3f
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x54]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42fa36
test dx, dx
je 0x42fa32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42fa36
add eax, 4
add ecx, 4
test dx, dx
jne 0x42fa10
xor eax, eax
jmp 0x42fa3b
sbb eax, eax
or eax, 1
test eax, eax
je 0x42fa94
lea eax, [esp + 0x24]
test edi, edi
push eax
lea eax, [esp + 0x58]
cmovne eax, edi
push eax
call fcn.0043b140
mov esi, eax
push esi
push dword [ebx + 4]
call sym.wluart.exe_zip_entry_open
add esp, 0x10
test eax, eax
jne 0x42fa7c
push ebp
push dword [ebx + 4]
call sym.wluart.exe_zip_entry_fwrite
add esp, 8
test eax, eax
jne 0x42fa7c
mov eax, 1
jmp 0x42fa7e
xor eax, eax
push dword [ebx + 4]
and dword [esp + 0x14], eax
call sym.wluart.exe_zip_entry_close
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 8
push ebp
mov ebp, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call ebp
push edi
call ebp
mov esi, dword [esp + 0x28]
add esp, 8
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, dword [esp + 0x1c]
test eax, eax
jne 0x42f8e5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [esp + 0x14]
call ebp
mov ecx, dword [esp + 0x27c]
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045f6d1
add esp, 0x26c
ret