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

Disassembly:
sub esp, 0x26c
mov eax, dword [0x470d10]
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 0x42f531
push 0x464c0c
push edi
mov dword [esp + 0x28], 0xffffffff
call fcn.0042f1a0
mov ebp, eax
lea eax, [esp + 0x28]
push eax
push ebp
mov dword [esp + 0x34], ebp
call fcn.0043add0
mov edi, eax
add esp, 0x10
mov esi, edi
mov al, byte [edi]
test al, al
je 0x42f51a
mov ebp, ebx
lea esi, [esi + 1]
cmp al, 0x5c
je 0x42f4dd
cmp al, 0x2f
jne 0x42f50c
mov bl, byte [esi]
push 0
push 0
mov byte [esi], 0
push edi
push dword [ebp + 4]
call fcn.00432400
add esp, 0x10
test eax, eax
jns 0x42f50a
push edi
push dword [ebp + 4]
call sym.wluart_static.exe_zip_entry_open
push dword [ebp + 4]
call sym.wluart_static.exe_zip_entry_close
add esp, 0xc
mov byte [esi], bl
mov al, byte [esi]
test al, al
jne 0x42f4d2
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 0x42f536
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 0x42f561
cmp ecx, 0x5c
jne 0x42f568
xor ecx, ecx
mov word [eax], cx
jmp 0x42f550
push 0x4659f8
push esi
call fcn.0042f1a0
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 0x42f776
cmp word [esp + 0x54], 0x2e
jne 0x42f5b5
mov ax, word [esp + 0x56]
cmp ax, 0x2e
je 0x42f757
test ax, ax
je 0x42f757
mov ecx, dword [esp + 0x18]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f5c0
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 0x42f5d6
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 0x4659ec
push esi
push ebp
call fcn.00429e90
add esp, 0x1c
test edi, edi
je 0x42f672
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f620
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 0x42f636
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 0x4659ec
push esi
push edi
call fcn.00429e90
add esp, 0x1c
jmp 0x42f674
xor edi, edi
test byte [esp + 0x28], 0x10
je 0x42f69f
test edi, edi
lea eax, [esp + 0x54]
cmovne eax, edi
push eax
push dword [esp + 0x28c]
push ebp
push ebx
call fcn.0042f450
add esp, 0x10
and dword [esp + 0x10], eax
jmp 0x42f744
cmp dword [esp + 0x44], 0
mov dword [esp + 0x24], 0xffffffff
je 0x42f6b5
cmp dword [esp + 0x48], 0
jne 0x42f6ef
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x54]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42f6e6
test dx, dx
je 0x42f6e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42f6e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x42f6c0
xor eax, eax
jmp 0x42f6eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x42f744
lea eax, [esp + 0x24]
test edi, edi
push eax
lea eax, [esp + 0x58]
cmovne eax, edi
push eax
call fcn.0043add0
mov esi, eax
push esi
push dword [ebx + 4]
call sym.wluart_static.exe_zip_entry_open
add esp, 0x10
test eax, eax
jne 0x42f72c
push ebp
push dword [ebx + 4]
call sym.wluart_static.exe_zip_entry_fwrite
add esp, 8
test eax, eax
jne 0x42f72c
mov eax, 1
jmp 0x42f72e
xor eax, eax
push dword [ebx + 4]
and dword [esp + 0x14], eax
call sym.wluart_static.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 0x42f595
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.0045f441
add esp, 0x26c
ret