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

Disassembly:
sub esp, 0x26c
mov eax, dword [0x475d80]
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 0x431151
push 0x468d3c
push edi
mov dword [esp + 0x28], 0xffffffff
call fcn.00430dc0
mov ebp, eax
lea eax, [esp + 0x28]
push eax
push ebp
mov dword [esp + 0x34], ebp
call fcn.0043cc00
mov edi, eax
add esp, 0x10
mov esi, edi
mov al, byte [edi]
test al, al
je 0x43113a
mov ebp, ebx
lea esi, [esi + 1]
cmp al, 0x5c
je 0x4310fd
cmp al, 0x2f
jne 0x43112c
mov bl, byte [esi]
push 0
push 0
mov byte [esi], 0
push edi
push dword [ebp + 4]
call fcn.00434050
add esp, 0x10
test eax, eax
jns 0x43112a
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 0x4310f2
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 0x431156
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 0x431181
cmp ecx, 0x5c
jne 0x431188
xor ecx, ecx
mov word [eax], cx
jmp 0x431170
push 0x469b28
push esi
call fcn.00430dc0
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 0x431396
cmp word [esp + 0x54], 0x2e
jne 0x4311d5
mov ax, word [esp + 0x56]
cmp ax, 0x2e
je 0x431377
test ax, ax
je 0x431377
mov ecx, dword [esp + 0x18]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4311e0
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 0x4311f6
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 0x469b1c
push esi
push ebp
call fcn.0042b7b0
add esp, 0x1c
test edi, edi
je 0x431292
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431240
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 0x431256
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 0x469b1c
push esi
push edi
call fcn.0042b7b0
add esp, 0x1c
jmp 0x431294
xor edi, edi
test byte [esp + 0x28], 0x10
je 0x4312bf
test edi, edi
lea eax, [esp + 0x54]
cmovne eax, edi
push eax
push dword [esp + 0x28c]
push ebp
push ebx
call fcn.00431070
add esp, 0x10
and dword [esp + 0x10], eax
jmp 0x431364
cmp dword [esp + 0x44], 0
mov dword [esp + 0x24], 0xffffffff
je 0x4312d5
cmp dword [esp + 0x48], 0
jne 0x43130f
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x54]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x431306
test dx, dx
je 0x431302
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x431306
add eax, 4
add ecx, 4
test dx, dx
jne 0x4312e0
xor eax, eax
jmp 0x43130b
sbb eax, eax
or eax, 1
test eax, eax
je 0x431364
lea eax, [esp + 0x24]
test edi, edi
push eax
lea eax, [esp + 0x58]
cmovne eax, edi
push eax
call fcn.0043cc00
mov esi, eax
push esi
push dword [ebx + 4]
call sym.wluart_static.exe_zip_entry_open
add esp, 0x10
test eax, eax
jne 0x43134c
push ebp
push dword [ebx + 4]
call sym.wluart_static.exe_zip_entry_fwrite
add esp, 8
test eax, eax
jne 0x43134c
mov eax, 1
jmp 0x43134e
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 0x4311b5
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.00463052
add esp, 0x26c
ret