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

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x40]
cmp dword [esi + 0x20468], 0
mov eax, dword [esi + 0x20464]
mov dword [esp + 0xc], ecx
mov ecx, dword [esi + 0x2046c]
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esi + 0x20478], eax
jne 0x42e5d1
cmp dword [esi + 0x20470], 2
jne 0x42e5d1
mov edx, dword [esi + 0x2045c]
cmp word [edx + 2], 0x3a
jne 0x42e5d1
mov dword [esi + 0x10250], 0x2e
mov dword [esi + 0x20468], 1
mov byte [esp + 0x40], 0
mov edx, 0x8000
sub edx, eax
lea ecx, [esi + eax*2 + 0x250]
mov eax, dword [esi + 0x20468]
mov dword [esp + 0x20], edx
cmp eax, edx
jae 0x42e9e6
lea eax, [eax + eax + 2]
push eax
lea edx, [esi + 0x10250]
push edx
push ecx
call fcn.00498b20
add esp, 0xc
lea eax, [esi + 0x250]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
xor eax, eax
cmp ebp, 0xffffffff
setne al
mov edi, eax
test edi, edi
je 0x42e63f
mov eax, dword [esp + 0x3c]
call fcn.00444c70
test al, al
je 0x42e63f
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
test edi, edi
jne 0x42e624
mov ebx, dword [0x4c7a54]
mov dword [esp + 0x1c], ebx
mov dword [ebx + 0x10], esi
test edi, edi
je 0x42e813
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x14]
cmp byte [ecx], 0x75
jne 0x42e687
mov eax, dword [esp + 0x2c]
mov ecx, dword [ecx + 0x14]
lea edx, [esp + 0x44]
push edx
push eax
push 2
call fcn.00427550
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x14]
mov edi, eax
mov eax, dword [esp + 0x44]
cmp eax, ecx
je 0x42e660
jmp 0x42e69e
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x44]
push edx
push eax
push 3
call fcn.00427550
mov edi, eax
mov eax, dword [esp + 0x44]
test eax, eax
je 0x42e6ca
cmp edi, 6
jne 0x42e9a0
cmp eax, dword [esp + 0x10]
je 0x42e6d4
mov ecx, dword [esp + 0x34]
mov dword [ecx], eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x1c
cmp edi, 1
je 0x42e6d4
cmp edi, 6
jne 0x42e6b7
mov edi, dword [esp + 0x38]
test edi, edi
je 0x42e7e8
mov ecx, dword [0x4c7a54]
mov dword [0x4ccb4c], edi
cmp byte [ecx + 0xf9], 0
je 0x42e72e
mov edx, dword [0x4cbe34]
mov dword [edx*4 + 0x4cbe38], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4cbe34]
mov dword [ecx*4 + 0x4cae58], eax
inc ecx
mov dword [0x4cbe34], ecx
cmp ecx, 0x190
jl 0x42e72e
mov dword [0x4cbe34], 0
push 0
push 0xffffffffffffffff
push 0
push edi
call fcn.0045d200
mov edi, eax
cmp edi, 1
jne 0x42e6b7
lea edi, [eax + 4]
mov eax, dword [0x4cb4f0]
movzx ecx, word [eax]
mov ebx, eax
cmp ecx, 0x30
jbe 0x42e75f
lea eax, [edi - 4]
jmp 0x42e7d7
test ecx, ecx
je 0x42e7d5
cmp ecx, 0x30
jne 0x42e76f
cmp word [eax + 2], 0
je 0x42e7d5
push 0
push 1
push 0
push 1
call fcn.004771e0
add esp, 0x10
dec eax
je 0x42e7a7
dec eax
je 0x42e78c
mov eax, 1
jmp 0x42e7d7
push ebx
call fcn.00492aa2
fldz
fucompp
add esp, 4
fnstsw ax
test ah, 0x44
jnp 0x42e7d5
mov eax, 1
jmp 0x42e7d7
mov eax, ebx
call fcn.0040f270
test al, al
je 0x42e7c1
push 0x10
push 0
push ebx
call fcn.004929c3
add esp, 0xc
jmp 0x42e7ca
push ebx
call fcn.00491fa1
add esp, 4
or eax, edx
je 0x42e7d5
mov eax, 1
jmp 0x42e7d7
xor eax, eax
test eax, eax
setne al
test al, al
jne 0x42e6b7
mov ebx, dword [esp + 0x1c]
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
test edi, edi
je 0x42e803
mov eax, dword [esp + 0x3c]
call fcn.00444c70
test al, al
jne 0x42e7e8
add dword [ebx + 8], 1
adc dword [ebx + 0xc], 0
test edi, edi
jne 0x42e654
cmp ebp, 0xffffffff
je 0x42e81f
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [esp + 0x40], 0
je 0x42e9e6
mov eax, dword [esp + 0x14]
lea eax, [esi + eax*2 + 0x250]
mov dword [eax], 0x2a
push esi
lea eax, [esi + 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [esp + 0x1c], edi
cmp edi, 0xffffffff
je 0x42e9e6
mov eax, 0x8000
sub eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
test byte [esi], 0x10
je 0x42e98e
cmp word [esi + 0x2c], 0x2e
lea eax, [esi + 0x2c]
jne 0x42e895
movzx ecx, word [esi + 0x2e]
test cx, cx
je 0x42e98e
cmp ecx, 0x2e
jne 0x42e895
cmp word [esi + 0x30], 0
je 0x42e98e
lea edx, [eax + 2]
jmp 0x42e8a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42e8a0
sub eax, edx
sar eax, 1
mov ebx, eax
lea edx, [ebx + 1]
cmp edx, dword [esp + 0x20]
jae 0x42e98e
lea edi, [ebx + ebx]
push edi
lea eax, [esi + 0x2c]
push eax
mov eax, dword [esp + 0x1c]
lea ebp, [esi + eax*2 + 0x250]
push ebp
call fcn.00498b20
mov eax, dword [esp + 0x20]
lea ecx, [ebx + eax + 1]
mov dword [edi + ebp], 0x5c
mov dword [esi + 0x20464], ecx
lea ecx, [esi + 0x234]
mov eax, ecx
add esp, 0xc
lea edi, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x42e900
sub eax, edi
sar eax, 1
mov ebp, eax
jne 0x42e918
lea ecx, [esi + 0x2c]
mov ebp, ebx
lea edx, [ebp + 1]
cmp edx, dword [esp + 0x24]
jae 0x42e98a
mov eax, dword [esp + 0x18]
lea edi, [ebp + ebp]
push edi
push ecx
lea ebx, [esi + eax*2 + 0x10458]
push ebx
call fcn.00498b20
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x4c]
add esp, 0xc
push esi
push edx
mov edx, dword [esp + 0x34]
lea ecx, [eax + ebp + 1]
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x3c]
mov dword [edi + ebx], 0x5c
mov ebx, dword [esp + 0x38]
push eax
mov dword [esi + 0x2046c], ecx
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x20]
push ebp
push ebx
push edx
call fcn.0042e570
mov edi, eax
cmp edi, 1
jne 0x42e9c4
cmp byte [ebx], 0
jne 0x42e9db
cmp dword [ebp], 0
jne 0x42e9db
mov edi, dword [esp + 0x1c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42e865
jmp 0x42e9df
cmp eax, dword [esp + 0x10]
jne 0x42e6b1
mov eax, dword [esp + 0x30]
push ebp
mov byte [eax], 1
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x1c
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x1c
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret 0x1c