Function at 0x420dec
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, 0x457c20
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
push dword [eax]
push dword [ebp + 8]
call fcn.004417dc
add esp, 8
test eax, eax
jne 0x420ecb
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 4]
mov dword [ebp - 4], ecx
jmp 0x420e3e
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
movsx edx, byte [eax]
cmp edx, 0x20
je 0x420e3b
jmp 0x420ebd
xor ecx, ecx
mov dword [ebp - 0x14], ecx
jmp 0x420e70
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 0x420e89
mov eax, dword [ebp - 4]
cmp byte [eax], 0
je 0x420e89
cmp dword [ebp - 0x14], 3
jl 0x420e52
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 0x420eb2
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
movsx edx, byte [eax]
cmp edx, 0x20
je 0x420eaf
mov ecx, dword [ebp - 4]
cmp byte [ecx], 0
je 0x420ecb
cmp dword [ebp - 8], 0x14
jl 0x420e4b
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jl 0x420e06
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.004415c8
add esp, 8
lea eax, [ebp - 0x284]
push eax
call fcn.004045c0
pop ecx
push 0x459ad3
lea edx, [ebp - 0x284]
push edx
call fcn.004414ec
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 0x4210a5
cmp dword [ebp - 0x18dc], 0x10
je 0x421086
push dword [ebp + 0xc]
lea edx, [ebp - 0x18c8]
push edx
call sub.KERNEL32.DLL_CompareFileTime
test eax, eax
jl 0x421086
lea ecx, [ebp - 0x118]
push ecx
lea eax, [ebp - 0x18b0]
push eax
call fcn.00420d88
add esp, 8
test eax, eax
jl 0x421086
xor edx, edx
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x18]
jge 0x420fb7
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 0x420fb7
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x18]
jl 0x420f8d
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x18]
jl 0x420fc9
cmp dword [ebp - 0x18], 0x14
jge 0x421086
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x18]
jge 0x42103f
cmp dword [ebp - 0x18], 0x14
jge 0x42103f
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x20]
jl 0x42103f
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.004415c8
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 0x420fe6
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.004415c8
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 0x421086
inc dword [ebp - 0x18]
lea eax, [ebp - 0x18dc]
push eax
push dword [ebp - 0x1c]
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x420f3e
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 0x4210aa
mov edx, dword [ebp - 0x18]
dec edx
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0
jl 0x4211c9
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.00420d88
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jl 0x4211bc
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.004415c8
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.00404724
add esp, 0xc
mov ecx, dword [ebp - 0x34]
shl ecx, 2
lea ecx, [ecx + ecx*2]
add ecx, 0x457c20
mov dword [ebp - 0x38], ecx
mov eax, 2
mov edx, dword [ebp - 0x34]
cmp dword [ebp + edx*4 - 0x18e8], 0
jg 0x42116a
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.004209e0
add esp, 0x10
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x4211a1
mov ecx, dword [ebp - 0x34]
mov dword [ebp + ecx*4 - 0x18e8], 2
jmp 0x4211bc
mov eax, dword [ebp - 0x34]
cmp dword [ebp + eax*4 - 0x18e8], 0
jne 0x4211bc
mov edx, dword [ebp - 0x34]
mov dword [ebp + edx*4 - 0x18e8], 1
dec dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 0
jge 0x4210d0
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
cmp dword [ebp + eax*4 - 0x18e8], 2
jne 0x421204
mov edx, dword [ebp - 0x40]
shl edx, 2
lea edx, [edx + edx*2]
add edx, 0x457c20
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.004209e0
add esp, 0x10
inc dword [ebp - 0x40]
cmp dword [ebp - 0x40], 3
jl 0x4211ce
mov esp, ebp
pop ebp
ret