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

Disassembly:
sub esp, 0x370
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x39c]
lea eax, [esp + 0x170]
push 0x103
push edi
push eax
mov dword [esp + 0x20], ecx
call fcn.00488ae0
add esp, 0xc
mov byte [esp + 0x273], 0
lea eax, [esp + 0x170]
push 0x5c
push eax
call fcn.00487e3e
add esp, 8
test eax, eax
je 0x42c19c
lea esi, [eax + 1]
lea edx, [esp + 0x278]
mov ecx, esi
sub edx, esi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x42c177
lea ebp, [esp + 0x170]
mov byte [esi], al
lea ecx, [ebp + 1]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x42c190
sub ebp, ecx
jmp 0x42c1be
xor ecx, ecx
mov edi, edi
mov al, byte [esp + ecx + 0x170]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x277], al
test al, al
jne 0x42c1a0
mov byte [esp + 0x170], al
xor ebp, ebp
lea eax, [esp + 0x30]
mov dword [esp + 0x18], ebp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, dword [esp + 0x394]
xor ebx, ebx
mov esi, eax
cmp esi, 0xffffffff
setne bl
test ebx, ebx
je 0x42c274
test byte [esp + 0x30], 0x10
je 0x42c20d
cmp edi, 1
je 0x42c236
cmp byte [esp + 0x5c], 0x2e
jne 0x42c212
mov al, byte [esp + 0x5d]
test al, al
je 0x42c236
cmp al, 0x2e
jne 0x42c212
cmp byte [esp + 0x5e], 0
jmp 0x42c210
cmp edi, 2
je 0x42c236
cmp byte [esp + 0x170], 0
je 0x42c274
lea ecx, [esp + 0x5c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42c223
sub ecx, edx
lea eax, [ecx + ebp]
cmp eax, 0x104
jb 0x42c24a
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ebx, eax
test ebx, ebx
jne 0x42c1e7
jmp 0x42c274
lea eax, [ecx + 1]
push eax
lea eax, [esp + 0x60]
push eax
add eax, ebp
push eax
call fcn.00486480
add esp, 0xc
lea eax, [esp + 0x170]
push ebp
push eax
lea eax, [esp + 0x64]
push eax
call fcn.0048e4b0
add esp, 0xc
mov eax, dword [0x4ac1d8]
mov edx, dword [esp + 0x384]
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x42c4f6
mov ebx, esi
mov edi, edi
lea ecx, [esp + 0x30]
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x14]
cmp byte [ecx], 0x73
jne 0x42c2da
mov ebp, eax
jmp 0x42c2b7
mov edx, dword [esp + 0x384]
mov ecx, dword [ecx + 0x14]
lea eax, [esp + 0x20]
push eax
push edx
push 2
call fcn.00425290
mov ecx, dword [ebp + 0x14]
mov esi, eax
mov edx, dword [esp + 0x20]
cmp edx, ecx
je 0x42c2b0
mov ebp, dword [esp + 0x18]
jmp 0x42c2ed
lea eax, [esp + 0x20]
push eax
push edx
push 3
call fcn.00425290
mov edx, dword [esp + 0x20]
mov esi, eax
test edx, edx
je 0x42c31f
cmp esi, 6
jne 0x42c4db
cmp edx, dword [esp + 0x14]
je 0x42c329
mov eax, dword [esp + 0x38c]
mov dword [eax], edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x370
ret 0x1c
cmp esi, 1
je 0x42c329
cmp esi, 6
jne 0x42c309
mov esi, dword [esp + 0x390]
test esi, esi
je 0x42c430
mov eax, dword [0x4ac1d8]
mov dword [0x4b0d10], esi
cmp byte [eax + 0xd9], 0
je 0x42c37d
mov eax, dword [0x4afbb4]
mov dword [eax*4 + 0x4b0200], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4afbb4]
mov dword [ecx*4 + 0x4afbc0], eax
inc ecx
xor eax, eax
cmp ecx, 0x190
cmovge ecx, eax
mov dword [0x4afbb4], ecx
push 0
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.00458b20
mov esi, eax
cmp esi, 1
jne 0x42c309
mov edi, dword [0x4b08a0]
lea esi, [eax + 4]
movsx eax, byte [edi]
cmp eax, 0x30
jbe 0x42c3ab
lea eax, [esi - 4]
jmp 0x42c417
test eax, eax
je 0x42c415
cmp eax, 0x30
jne 0x42c3ba
cmp byte [edi + 1], 0
je 0x42c415
push 0
push 1
push 0
mov edx, 1
mov ecx, edi
call fcn.00472940
add esp, 0xc
dec eax
je 0x42c403
dec eax
je 0x42c3dc
mov eax, 1
jmp 0x42c417
push edi
call fcn.00487c47
fstp qword [esp + 0x2c]
movsd xmm0, qword [esp + 0x2c]
add esp, 4
xorps xmm1, xmm1
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jnp 0x42c415
mov eax, 1
jmp 0x42c417
mov ecx, edi
call fcn.00414540
or eax, edx
je 0x42c415
mov eax, 1
jmp 0x42c417
xor eax, eax
test eax, eax
setne al
test al, al
jne 0x42c309
mov edi, dword [esp + 0x394]
jmp 0x42c430
lea eax, [esp + 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, eax
test esi, esi
je 0x42c4bf
test byte [esp + 0x30], 0x10
je 0x42c46c
cmp edi, 1
je 0x42c430
cmp byte [esp + 0x5c], 0x2e
jne 0x42c471
mov al, byte [esp + 0x5d]
test al, al
je 0x42c430
cmp al, 0x2e
jne 0x42c471
cmp byte [esp + 0x5e], 0
jmp 0x42c46f
cmp edi, 2
je 0x42c430
cmp byte [esp + 0x170], 0
je 0x42c4bf
lea ecx, [esp + 0x5c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42c482
sub ecx, edx
lea eax, [ecx + ebp]
cmp eax, 0x104
jae 0x42c430
lea eax, [ecx + 1]
push eax
lea eax, [esp + 0x60]
push eax
add eax, ebp
push eax
call fcn.00486480
add esp, 0xc
lea eax, [esp + 0x170]
push ebp
push eax
lea eax, [esp + 0x64]
push eax
call fcn.0048e4b0
add esp, 0xc
mov eax, dword [esp + 0x1c]
add dword [eax + 8], 1
adc dword [eax + 0xc], 0
test esi, esi
je 0x42c4f4
mov edx, dword [esp + 0x384]
jmp 0x42c290
cmp edx, dword [esp + 0x14]
jne 0x42c300
mov eax, dword [esp + 0x388]
mov byte [eax], 1
jmp 0x42c309
mov esi, ebx
cmp esi, 0xffffffff
je 0x42c502
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [esp + 0x398], 0
je 0x42c645
cmp ebp, 0x100
ja 0x42c645
lea eax, [esp + 0x170]
mov dword [eax + ebp], 0x2a2e2a
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x174]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x42c645
lea ecx, [esp + 0x278]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42c552
mov eax, dword [esp + 0x18]
sub ecx, edx
mov edi, dword [esp + 0x38c]
mov ebx, dword [esp + 0x388]
lea esi, [ecx + eax]
mov dword [esp + 0x1c], esi
test byte [esp + 0x30], 0x10
je 0x42c629
cmp byte [esp + 0x5c], 0x2e
jne 0x42c5a1
mov al, byte [esp + 0x5d]
test al, al
je 0x42c629
cmp al, 0x2e
jne 0x42c5a1
cmp byte [esp + 0x5e], 0
je 0x42c629
lea ecx, [esp + 0x5c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42c5a8
sub ecx, edx
lea eax, [ecx + esi]
cmp eax, 0x102
ja 0x42c629
lea eax, [esp + 0x278]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x178]
add eax, dword [esp + 0x20]
push 0x4a1ae4
push eax
call fcn.00485e6d
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x180]
add esp, 0x10
push eax
push dword [esp + 0x39c]
push dword [esp + 0x39c]
push dword [esp + 0x39c]
push edi
push ebx
push dword [esp + 0x39c]
call fcn.0042c120
mov esi, eax
cmp esi, 1
jne 0x42c657
cmp byte [ebx], 0
jne 0x42c63d
cmp dword [edi], 0
jne 0x42c63d
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42c574
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x370
ret 0x1c
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x370
ret 0x1c