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

Disassembly:
sub esp, 0x26c
mov eax, dword [0x45a220]
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 0x42f3f1
push 0x4518e4
push edi
mov dword [esp + 0x28], 0xffffffff
call fcn.0042f060
mov ebp, eax
lea eax, [esp + 0x28]
push eax
push ebp
mov dword [esp + 0x34], ebp
call fcn.0043ace0
mov edi, eax
add esp, 0x10
mov esi, edi
mov al, byte [edi]
test al, al
je 0x42f3da
mov ebp, ebx
lea esi, [esi + 1]
cmp al, 0x5c
je 0x42f39d
cmp al, 0x2f
jne 0x42f3cc
mov bl, byte [esi]
push 0
push 0
mov byte [esi], 0
push edi
push dword [ebp + 4]
call fcn.004322c0
add esp, 0x10
test eax, eax
jns 0x42f3ca
push edi
push dword [ebp + 4]
call fcn.00439d50
push dword [ebp + 4]
call fcn.00439370
add esp, 0xc
mov byte [esi], bl
mov al, byte [esi]
test al, al
jne 0x42f392
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 0x42f3f6
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 0x42f421
cmp ecx, 0x5c
jne 0x42f428
xor ecx, ecx
mov word [eax], cx
jmp 0x42f410
push 0x4526d0
push esi
call fcn.0042f060
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 0x42f636
cmp word [esp + 0x54], 0x2e
jne 0x42f475
mov ax, word [esp + 0x56]
cmp ax, 0x2e
je 0x42f617
test ax, ax
je 0x42f617
mov ecx, dword [esp + 0x18]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f480
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 0x42f496
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 0x4526c4
push esi
push ebp
call fcn.00429d90
add esp, 0x1c
test edi, edi
je 0x42f532
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f4e0
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 0x42f4f6
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 0x4526c4
push esi
push edi
call fcn.00429d90
add esp, 0x1c
jmp 0x42f534
xor edi, edi
test byte [esp + 0x28], 0x10
je 0x42f55f
test edi, edi
lea eax, [esp + 0x54]
cmovne eax, edi
push eax
push dword [esp + 0x28c]
push ebp
push ebx
call fcn.0042f310
add esp, 0x10
and dword [esp + 0x10], eax
jmp 0x42f604
cmp dword [esp + 0x44], 0
mov dword [esp + 0x24], 0xffffffff
je 0x42f575
cmp dword [esp + 0x48], 0
jne 0x42f5af
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x54]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42f5a6
test dx, dx
je 0x42f5a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42f5a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x42f580
xor eax, eax
jmp 0x42f5ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x42f604
lea eax, [esp + 0x24]
test edi, edi
push eax
lea eax, [esp + 0x58]
cmovne eax, edi
push eax
call fcn.0043ace0
mov esi, eax
push esi
push dword [ebx + 4]
call fcn.00439d50
add esp, 0x10
test eax, eax
jne 0x42f5ec
push ebp
push dword [ebx + 4]
call fcn.00439800
add esp, 8
test eax, eax
jne 0x42f5ec
mov eax, 1
jmp 0x42f5ee
xor eax, eax
push dword [ebx + 4]
and dword [esp + 0x14], eax
call fcn.00439370
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 0x42f455
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.0044bf41
add esp, 0x26c
ret