Function at 0x42d330
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 + 0x664], 0
mov eax, dword [esi + 0x668]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x660]
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esi + 0x674], ecx
jne 0x42d38f
cmp dword [esi + 0x66c], 2
jne 0x42d38f
mov edx, dword [esi + 0x658]
cmp byte [edx + 1], 0x3a
jne 0x42d38f
mov word [esi + 0x348], 0x2e
mov dword [esi + 0x664], 1
mov byte [esp + 0x40], 0
mov eax, 0x208
sub eax, ecx
lea edx, [ecx + esi + 0x140]
mov ecx, dword [esi + 0x664]
mov dword [esp + 0x24], eax
cmp ecx, eax
jae 0x42d7c5
inc ecx
push ecx
lea eax, [esi + 0x348]
push eax
push edx
call fcn.0048fde0
add esp, 0xc
lea eax, [esi + 0x140]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebp, dword [sym.imp.KERNEL32.DLL_FindNextFileA]
xor ecx, ecx
mov ebx, eax
cmp ebx, 0xffffffff
setne cl
mov dword [esp + 0x44], ebx
mov edi, ecx
test edi, edi
je 0x42d407
lea esp, [esp]
mov eax, dword [esp + 0x3c]
call fcn.00442eb0
test al, al
je 0x42d407
push esi
push ebx
call ebp
mov edi, eax
test edi, edi
jne 0x42d3f0
mov eax, dword [0x4a9978]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
mov dword [eax + 0x10], esi
test edi, edi
je 0x42d64d
nop
mov ebx, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x14]
cmp byte [ecx], 0x75
jne 0x42d44f
lea esp, [esp]
mov ecx, dword [ecx + 0x14]
lea edx, [esp + 0x10]
push edx
push ebp
push 2
call fcn.00426330
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov eax, dword [esp + 0x10]
cmp eax, ecx
je 0x42d430
jmp 0x42d462
lea eax, [esp + 0x10]
push eax
push ebp
push 3
call fcn.00426330
mov edi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42d490
cmp edi, 6
jne 0x42d7d4
cmp eax, ebx
je 0x42d49e
mov edx, dword [esp + 0x34]
mov dword [edx], eax
mov eax, dword [esp + 0x44]
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
cmp edi, 1
je 0x42d49e
cmp edi, 6
jne 0x42d7e8
cmp dword [esp + 0x38], 0
je 0x42d5b0
mov edi, dword [esp + 0x38]
mov ecx, dword [0x4a9978]
mov dword [0x4ae61c], edi
cmp byte [ecx + 0xd9], 0
je 0x42d4fb
mov edx, dword [0x4ae208]
mov dword [edx*4 + 0x4adbc8], edi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [0x4ae208]
mov dword [ecx*4 + 0x4acbf8], eax
inc ecx
mov dword [0x4ae208], ecx
cmp ecx, 0x190
jl 0x42d4fb
mov dword [0x4ae208], 0
push 0
push 0xffffffffffffffff
push 0
push edi
call fcn.0045aa00
mov edi, eax
cmp edi, 1
jne 0x42d7e8
lea edi, [eax + 4]
mov eax, dword [0x4ad288]
movsx ecx, byte [eax]
mov ebx, eax
cmp ecx, 0x30
jbe 0x42d529
lea eax, [edi - 4]
jmp 0x42d5a0
test ecx, ecx
je 0x42d59e
cmp ecx, 0x30
jne 0x42d538
cmp byte [eax + 1], 0
je 0x42d59e
push 0
push 1
push 0
push 1
call fcn.00474490
add esp, 0x10
dec eax
je 0x42d570
dec eax
je 0x42d555
mov eax, 1
jmp 0x42d5a0
push ebx
call fcn.004898f0
fldz
fucompp
add esp, 4
fnstsw ax
test ah, 0x44
jnp 0x42d59e
mov eax, 1
jmp 0x42d5a0
mov eax, ebx
call fcn.0040e840
test al, al
je 0x42d58a
push 0x10
push 0
push ebx
call fcn.004897ee
add esp, 0xc
jmp 0x42d593
push ebx
call fcn.00488d21
add esp, 4
or eax, edx
je 0x42d59e
mov eax, 1
jmp 0x42d5a0
xor eax, eax
test eax, eax
setne al
test al, al
jne 0x42d7e8
lea ecx, [ecx]
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
mov ebx, eax
test ebx, ebx
je 0x42d639
test byte [esi], 0x10
je 0x42d5e7
cmp edi, 1
je 0x42d5b4
cmp byte [esi + 0x2c], 0x2e
jne 0x42d5ec
mov al, byte [esi + 0x2d]
test al, al
je 0x42d5b4
cmp al, 0x2e
jne 0x42d5ec
cmp byte [esi + 0x2e], 0
jmp 0x42d5ea
cmp edi, 2
je 0x42d5b4
lea eax, [esi + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42d5f2
mov ecx, dword [esi + 0x674]
sub eax, edx
mov edi, eax
add ecx, edi
cmp ecx, 0x208
jae 0x42d5b0
mov ecx, dword [esi + 0x674]
lea edx, [edi + 1]
push edx
lea eax, [esi + 0x2c]
push eax
lea edx, [ecx + esi + 0x140]
push edx
call fcn.0048fde0
mov eax, dword [esi + 0x674]
add esp, 0xc
add eax, edi
mov dword [esi + 0x660], eax
mov eax, dword [esp + 0x20]
add dword [eax + 8], 1
adc dword [eax + 0xc], 0
test ebx, ebx
jne 0x42d420
mov eax, dword [esp + 0x44]
cmp eax, 0xffffffff
je 0x42d65d
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp byte [esp + 0x40], 0
je 0x42d7c5
mov edx, dword [esp + 0x14]
lea eax, [edx + esi + 0x140]
mov word [eax], 0x2a
push esi
lea eax, [esi + 0x140]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov dword [esp + 0x44], eax
cmp eax, 0xffffffff
je 0x42d7c5
mov ecx, dword [esp + 0x18]
mov eax, 0x208
sub eax, ecx
lea ebx, [ecx + esi + 0x44c]
mov dword [esp + 0x20], eax
lea esp, [esp]
test byte [esi], 0x10
je 0x42d7a6
cmp byte [esi + 0x2c], 0x2e
jne 0x42d6d8
mov al, byte [esi + 0x2d]
test al, al
je 0x42d7a6
cmp al, 0x2e
jne 0x42d6d8
cmp byte [esi + 0x2e], 0
je 0x42d7a6
lea ebp, [esi + 0x2c]
lea ecx, [ebp + 1]
mov edi, edi
mov al, byte [ebp]
inc ebp
test al, al
jne 0x42d6e0
sub ebp, ecx
lea eax, [ebp + 1]
cmp eax, dword [esp + 0x24]
jae 0x42d7a6
mov ecx, dword [esp + 0x14]
push ebp
lea eax, [esi + 0x2c]
push eax
lea edi, [ecx + esi + 0x140]
push edi
call fcn.0048fde0
mov edx, dword [esp + 0x20]
lea eax, [edx + ebp + 1]
mov word [edi + ebp], 0x5c
mov dword [esi + 0x660], eax
lea eax, [esi + 0x130]
mov edi, eax
add esp, 0xc
lea edx, [edi + 1]
nop
mov cl, byte [edi]
inc edi
test cl, cl
jne 0x42d730
sub edi, edx
jne 0x42d740
lea eax, [esi + 0x2c]
mov edi, ebp
lea ecx, [edi + 1]
cmp ecx, dword [esp + 0x20]
jae 0x42d7a6
push edi
push eax
push ebx
call fcn.0048fde0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x3c]
add esp, 0xc
push esi
push ecx
mov ecx, dword [esp + 0x3c]
lea eax, [edi + edx + 1]
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x38]
mov word [edi + ebx], 0x5c
mov dword [esi + 0x668], eax
mov eax, dword [esp + 0x44]
push eax
push ecx
mov ecx, dword [esp + 0x30]
push ebp
push edx
call fcn.0042d330
mov edi, eax
cmp edi, 1
jne 0x42d7ff
cmp byte [ebp], 0
jne 0x42d7ba
mov eax, dword [esp + 0x34]
cmp dword [eax], 0
jne 0x42d7ba
mov ecx, dword [esp + 0x44]
push esi
push ecx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x42d6b0
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x1c
cmp eax, ebx
jne 0x42d473
mov ecx, dword [esp + 0x30]
mov byte [ecx], 1
jmp 0x42d479
mov ecx, dword [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x1c
mov edx, dword [esp + 0x44]
push edx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x1c