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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 0x20]
push edi
mov dword [esp + 0x10], ecx
mov ebx, dword [esi + 0x20464]
mov edx, dword [esi + 0x20468]
mov eax, dword [esi + 0x2046c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
mov dword [esi + 0x20478], ebx
test edx, edx
jne 0x42e079
cmp dword [esi + 0x20470], 2
jne 0x42e079
mov eax, dword [esi + 0x2045c]
cmp word [eax + 2], 0x3a
jne 0x42e079
mov dword [esi + 0x10250], 0x2e
mov byte [ebp + 0x1c], dl
mov edx, 1
mov dword [esi + 0x20468], 1
mov eax, 0x8000
lea ecx, [esi + 0x250]
sub eax, ebx
lea ecx, [ecx + ebx*2]
mov dword [esp + 0x2c], eax
cmp edx, eax
jae 0x42e3b4
lea eax, [edx*2 + 2]
push eax
lea eax, [esi + 0x10250]
push eax
push ecx
call fcn.00498e20
add esp, 0xc
lea eax, [esi + 0x250]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
xor ebx, ebx
cmp edi, 0xffffffff
mov dword [esp + 0x24], edi
setne bl
je 0x42e0ec
nop dword [eax + eax]
mov edx, dword [ebp + 0x18]
mov ecx, esi
call fcn.00445a10
test al, al
je 0x42e0ec
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
test ebx, ebx
jne 0x42e0d0
mov eax, dword [0x4d98d8]
mov edx, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov dword [eax + 0x10], esi
test ebx, ebx
je 0x42e213
mov ebx, dword [esp + 0x24]
nop word [eax + eax]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x14]
cmp byte [ecx], 0x75
jne 0x42e149
mov esi, eax
jmp 0x42e123
mov edx, dword [ebp + 8]
mov ecx, dword [ecx + 0x14]
lea eax, [esp + 0x18]
push eax
push edx
push 2
call fcn.00426700
mov ecx, dword [esi + 0x14]
mov edi, eax
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], edi
cmp edx, ecx
je 0x42e120
mov esi, dword [ebp + 0x20]
jmp 0x42e160
lea eax, [esp + 0x18]
push eax
push edx
push 3
call fcn.00426700
mov edx, dword [esp + 0x18]
mov edi, eax
mov dword [esp + 0x14], edi
test edx, edx
je 0x42e186
cmp edi, 6
jne 0x42e1db
cmp edx, dword [esp + 0x10]
je 0x42e190
mov eax, dword [ebp + 0x10]
push ebx
mov dword [eax], edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
cmp edi, 1
je 0x42e190
cmp edi, 6
jne 0x42e1fd
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x42e1a7
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.0042d800
test al, al
jne 0x42e1f9
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
test edi, edi
je 0x42e1c3
mov edx, dword [ebp + 0x18]
mov ecx, esi
call fcn.00445a10
test al, al
jne 0x42e1a7
mov eax, dword [esp + 0x28]
add dword [eax + 8], 1
adc dword [eax + 0xc], 0
test edi, edi
je 0x42e20f
mov edx, dword [ebp + 8]
jmp 0x42e110
cmp edx, dword [esp + 0x10]
jne 0x42e16f
mov eax, dword [ebp + 0xc]
push ebx
mov byte [eax], 1
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov edi, dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov edi, dword [esp + 0x24]
cmp edi, 0xffffffff
je 0x42e21f
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0x1c], 0
je 0x42e3b4
mov ecx, dword [esp + 0x1c]
lea eax, [esi + ecx*2]
mov dword [eax + 0x250], 0x2a
lea eax, [esi + 0x250]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [esp + 0x14], edi
cmp edi, 0xffffffff
je 0x42e3b4
mov eax, 0x8000
sub eax, dword [esp + 0x20]
mov dword [esp + 0x28], eax
test byte [esi], 0x10
je 0x42e399
cmp word [esi + 0x2c], 0x2e
lea ecx, [esi + 0x2c]
jne 0x42e294
movzx eax, word [esi + 0x2e]
test ax, ax
je 0x42e399
cmp eax, 0x2e
jne 0x42e294
cmp word [esi + 0x30], 0
je 0x42e399
mov ebx, ecx
lea edx, [ebx + 2]
nop dword [eax]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x42e2a0
sub ebx, edx
sar ebx, 1
lea eax, [ebx + 1]
cmp eax, dword [esp + 0x2c]
jae 0x42e399
lea edi, [ebx + ebx]
push edi
push ecx
mov ecx, dword [esp + 0x24]
add ecx, 0x128
lea eax, [esi + ecx*2]
push eax
call fcn.00498e20
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea eax, [esi + ecx*2]
mov dword [edi + eax + 0x250], 0x5c
lea eax, [ecx + 1]
add eax, ebx
lea ecx, [esi + 0x234]
mov dword [esi + 0x20464], eax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42e300
sub ecx, edx
sar ecx, 1
mov edx, ecx
cmove edx, ebx
mov dword [esp + 0x24], edx
lea eax, [edx + 1]
cmp eax, dword [esp + 0x28]
jae 0x42e395
test ecx, ecx
lea edi, [edx + edx]
mov ecx, 0x234
mov eax, 0x2c
cmovne eax, ecx
add eax, esi
push edi
push eax
mov eax, dword [esp + 0x28]
add eax, 0x822c
lea ebx, [esi + eax*2]
push ebx
call fcn.00498e20
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov eax, dword [esp + 0x24]
inc ecx
mov dword [edi + ebx], 0x5c
add eax, ecx
mov ebx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x10]
push esi
push dword [ebp + 0x1c]
mov dword [esi + 0x2046c], eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042e010
mov edi, eax
cmp edi, 1
jne 0x42e3c2
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
jne 0x42e3a9
cmp dword [ebx], 0
jne 0x42e3a9
mov edi, dword [esp + 0x14]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42e264
push dword [esp + 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
call eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push dword [esp + 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
call eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c