Function at 0x42387c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffff718
xor eax, eax
mov dword [ebp - 8], eax
xor edx, edx
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0xc]
shl ecx, 2
lea ecx, [ecx + ecx*2]
add ecx, 0x45ae60
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
push dword [eax]
push dword [ebp + 8]
call fcn.00444570
add esp, 8
test eax, eax
jne 0x42395b
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 4]
mov dword [ebp - 4], ecx
jmp 0x4238ce
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
movsx edx, byte [eax]
cmp edx, 0x20
je 0x4238cb
jmp 0x42394d
xor ecx, ecx
mov dword [ebp - 0x14], ecx
jmp 0x423900
mov eax, dword [ebp - 8]
lea eax, [eax + eax*4]
lea edx, [ebp + eax*2 - 0x118]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov al, byte [eax]
mov byte [edx + ecx], al
inc dword [ebp - 4]
inc dword [ebp - 0x14]
mov edx, dword [ebp - 4]
movsx ecx, byte [edx]
cmp ecx, 0x20
je 0x423919
mov eax, dword [ebp - 4]
cmp byte [eax], 0
je 0x423919
cmp dword [ebp - 0x14], 3
jl 0x4238e2
mov edx, dword [ebp - 8]
lea edx, [edx + edx*4]
lea ecx, [ebp + edx*2 - 0x118]
mov eax, dword [ebp - 0x14]
mov byte [ecx + eax], 0
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [ebp + edx*4 - 0x168], ecx
inc dword [ebp - 8]
jmp 0x423942
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
movsx edx, byte [eax]
cmp edx, 0x20
je 0x42393f
mov ecx, dword [ebp - 4]
cmp byte [ecx], 0
je 0x42395b
cmp dword [ebp - 8], 0x14
jl 0x4238db
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jl 0x423896
mov eax, dword [ebp - 8]
lea eax, [eax + eax*4]
mov byte [ebp + eax*2 - 0x118], 0
xor edx, edx
mov dword [ebp - 0x18], edx
push dword [ebp + 8]
lea ecx, [ebp - 0x284]
push ecx
call fcn.0044435c
add esp, 8
lea eax, [ebp - 0x284]
push eax
call fcn.004045d8
pop ecx
push 0x45d393
lea edx, [ebp - 0x284]
push edx
call fcn.00444280
add esp, 8
lea ecx, [ebp - 0x18dc]
push ecx
lea eax, [ebp - 0x284]
push eax
call sub.KERNEL32.DLL_FindFirstFileA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x423b35
cmp dword [ebp - 0x18dc], 0x10
je 0x423b16
push dword [ebp + 0xc]
lea edx, [ebp - 0x18c8]
push edx
call sub.KERNEL32.DLL_CompareFileTime
test eax, eax
jl 0x423b16
lea ecx, [ebp - 0x118]
push ecx
lea eax, [ebp - 0x18b0]
push eax
call fcn.00423818
add esp, 8
test eax, eax
jl 0x423b16
xor edx, edx
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x18]
jge 0x423a47
mov eax, dword [ebp - 0x20]
shl eax, 3
lea edx, [ebp - 0x179c]
add eax, edx
push eax
lea ecx, [ebp - 0x18c8]
push ecx
call sub.KERNEL32.DLL_CompareFileTime
test eax, eax
jge 0x423a47
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x18]
jl 0x423a1d
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x18]
jl 0x423a59
cmp dword [ebp - 0x18], 0x14
jge 0x423b16
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x18]
jge 0x423acf
cmp dword [ebp - 0x18], 0x14
jge 0x423acf
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x20]
jl 0x423acf
mov ecx, dword [ebp - 0x24]
shl ecx, 2
lea ecx, [ecx + ecx*4]
lea eax, [ebp - 0x16fc]
add ecx, eax
push ecx
mov edx, dword [ebp - 0x24]
shl edx, 2
lea edx, [edx + edx*4]
lea ecx, [ebp - 0x16e8]
add edx, ecx
push edx
call fcn.0044435c
add esp, 8
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp + edx*8 - 0x179c]
mov dword [ebp + eax*8 - 0x1794], ecx
mov ecx, dword [ebp + edx*8 - 0x1798]
mov dword [ebp + eax*8 - 0x1790], ecx
dec dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
jge 0x423a76
lea edx, [ebp - 0x18b0]
push edx
mov ecx, dword [ebp - 0x20]
shl ecx, 2
lea ecx, [ecx + ecx*4]
lea eax, [ebp - 0x16fc]
add ecx, eax
push ecx
call fcn.0044435c
add esp, 8
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18c8]
mov dword [ebp + edx*8 - 0x179c], ecx
mov ecx, dword [ebp - 0x18c4]
mov dword [ebp + edx*8 - 0x1798], ecx
cmp dword [ebp - 0x18], 0x14
jge 0x423b16
inc dword [ebp - 0x18]
lea eax, [ebp - 0x18dc]
push eax
push dword [ebp - 0x1c]
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x4239ce
push dword [ebp - 0x1c]
call sub.KERNEL32.DLL_FindClose
xor edx, edx
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp + ecx*4 - 0x18e8], eax
inc dword [ebp - 0x28]
cmp dword [ebp - 0x28], 3
jl 0x423b3a
mov edx, dword [ebp - 0x18]
dec edx
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0
jl 0x423c59
lea ecx, [ebp - 0x118]
push ecx
mov eax, dword [ebp - 0x2c]
shl eax, 2
lea eax, [eax + eax*4]
lea edx, [ebp - 0x16fc]
add eax, edx
push eax
call fcn.00423818
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jl 0x423c4c
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp + ecx*4 - 0x168]
mov dword [ebp - 0x34], eax
push dword [ebp + 8]
lea edx, [ebp - 0x284]
push edx
call fcn.0044435c
add esp, 8
push 0x105
mov ecx, dword [ebp - 0x2c]
shl ecx, 2
lea ecx, [ecx + ecx*4]
lea eax, [ebp - 0x16fc]
add ecx, eax
push ecx
lea edx, [ebp - 0x284]
push edx
call fcn.0040473c
add esp, 0xc
mov ecx, dword [ebp - 0x34]
shl ecx, 2
lea ecx, [ecx + ecx*2]
add ecx, 0x45ae60
mov dword [ebp - 0x38], ecx
mov eax, 2
mov edx, dword [ebp - 0x34]
cmp dword [ebp + edx*4 - 0x18e8], 0
jg 0x423bfa
add eax, 0xfffffffe
or eax, 1
push eax
mov ecx, dword [ebp - 0x38]
push dword [ecx + 8]
lea eax, [ebp - 0x284]
push eax
mov edx, dword [ebp - 0x38]
push dword [edx]
call fcn.00423468
add esp, 0x10
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x423c31
mov ecx, dword [ebp - 0x34]
mov dword [ebp + ecx*4 - 0x18e8], 2
jmp 0x423c4c
mov eax, dword [ebp - 0x34]
cmp dword [ebp + eax*4 - 0x18e8], 0
jne 0x423c4c
mov edx, dword [ebp - 0x34]
mov dword [ebp + edx*4 - 0x18e8], 1
dec dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0
jge 0x423b60
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
cmp dword [ebp + eax*4 - 0x18e8], 2
jne 0x423c94
mov edx, dword [ebp - 0x40]
shl edx, 2
lea edx, [edx + edx*2]
add edx, 0x45ae60
mov dword [ebp - 0x44], edx
push 4
mov ecx, dword [ebp - 0x44]
push dword [ecx + 8]
push 0
mov eax, dword [ebp - 0x44]
push dword [eax]
call fcn.00423468
add esp, 0x10
inc dword [ebp - 0x40]
cmp dword [ebp - 0x40], 3
jl 0x423c5e
mov esp, ebp
pop ebp
ret