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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2f0
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4152c0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [ebp + 0x20]
lea edx, [ebp + 0xc]
cmp eax, 0x10
jb 0x4116a0
lea ecx, [ebp + 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x94], ecx
lea ecx, [ebp + 8]
mov ecx, dword [ecx + 0x14]
cmp byte [edx + ecx - 1], 0x5c
je 0x41170a
cmp ecx, eax
jae 0x4116d8
lea edx, [ecx + 1]
lea esi, [ebp + 8]
mov dword [esi + 0x14], edx
lea edx, [ebp + 0xc]
cmp eax, 0x10
jb 0x4116d0
lea eax, [ebp + 0xc]
mov edx, dword [eax]
mov word [edx + ecx], 0x5c
jmp 0x411703
mov dword [ebp - 0x10], 0
sub esp, 0xc
mov al, byte [ebp - 0x2fc]
mov byte [esp + 4], al
mov dword [esp + 8], 0x5c
mov dword [esp], 1
lea ecx, [ebp + 0xc]
call fcn.0040eba0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x10], 0
push 8
call fcn.004a880e
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [ebp - 0x10], 1
push 0x20
mov dword [ebp - 0x30], eax
call fcn.004a880e
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
lea ecx, [ebp + 8]
mov edi, dword [ecx + 0x14]
mov edx, dword [ecx + 0x2c]
mov eax, 0x7fffffff
sub eax, edi
cmp eax, edx
jb 0x41200a
lea esi, [ebp - 0x2fc]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x38], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [ecx + 0x30]
mov ecx, dword [ecx + 0x1c]
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x28], edx
add edx, edi
mov dword [ebp - 0x2c], 0xf
cmp edx, 0x10
mov dword [ebp - 0x20], edx
jb 0x411826
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], ecx
mov ecx, edx
or ecx, 0xf
mov dword [ebp - 0x54], edi
js 0x4117d3
cmp ecx, 0x16
mov esi, 0x16
cmova esi, ecx
lea eax, [esi + 1]
cmp esi, 0xfff
jb 0x4117ff
mov dword [ebp - 0x2c], ecx
jmp 0x4117df
mov dword [ebp - 0x2c], 0x7fffffff
mov eax, 0x80000000
add eax, 0x23
mov dword [ebp - 0x10], 0
push eax
call fcn.004a880e
add esp, 4
mov esi, eax
add esi, 0x23
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x411814
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x10], 0
push eax
call fcn.004a880e
add esp, 4
mov esi, eax
mov edi, dword [ebp - 0x54]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x2fc], esi
cmp eax, 0xf
lea eax, [ebp + 0x24]
cmovbe ecx, eax
cmp dword [ebp - 0x34], 0xf
lea eax, [ebp + 0xc]
cmova eax, dword [ebp - 0x38]
mov dword [ebp - 0x2ec], edx
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x2e8], ebx
push edi
push eax
push esi
mov ebx, ecx
call fcn.004c4690
add esp, 0xc
add edi, esi
push dword [ebp - 0x28]
push ebx
push edi
call fcn.004c4690
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov byte [esi + eax], 0
mov dword [ebp - 0x10], 2
lea eax, [ebp - 0xac]
lea ecx, [ebp - 0x2fc]
push ecx
push eax
call fcn.00443000
add esp, 8
mov eax, dword [ebp - 0x2e8]
cmp eax, 0x10
jb 0x4118c7
mov ecx, dword [ebp - 0x2fc]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x4118bd
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x411ff1
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.004a8843
add esp, 8
cmp dword [ebp - 0x98], 7
lea ecx, [ebp - 0xac]
jbe 0x4118dc
mov ecx, dword [ebp - 0xac]
lea eax, [ebp - 0x2fc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
je 0x411ef7
lea edi, [ebp - 0x2d0]
jmp 0x411928
mov ecx, ebx
call fcn.0040bcb0
push ebx
call fcn.004a883e
add esp, 4
lea eax, [ebp - 0x2fc]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x411eee
test byte [ebp - 0x2fc], 0x10
jne 0x411990
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], 0
push edi
call fcn.004d2c2a
add esp, 4
mov esi, eax
cmp eax, 7
jbe 0x411a50
mov dword [ebp - 0x10], 3
sub esp, 0xc
movzx eax, byte [ebp - 0x70]
mov byte [esp + 4], al
mov dword [esp + 8], edi
mov dword [esp], esi
lea ecx, [ebp - 0x50]
call fcn.00413fe0
lea edi, [ebp - 0x50]
jmp 0x411a73
cmp word [ebp - 0x2d0], 0x2e
je 0x411910
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 1
mov word [ebp - 0x70], 0x2a
push eax
sub esp, 0x34
mov eax, esp
lea ecx, [eax + 0x1c]
mov dword [ebp - 0x38], ecx
movups xmm0, xmmword [ebp - 0x70]
movups xmmword [eax + 0x1c], xmm0
mov dword [eax + 0x2c], 1
mov dword [ebp - 0x20], eax
mov dword [eax + 0x30], 0xf
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x7c], 7
mov dword [ebp - 0x80], 0
mov word [ebp - 0x90], 0
push edi
call fcn.004d2c2a
add esp, 4
mov esi, eax
cmp eax, 7
jbe 0x411c7d
mov byte [ebp - 0x23], 1
mov dword [ebp - 0x10], 6
sub esp, 0xc
movzx eax, byte [ebp - 0x58]
mov byte [esp + 4], al
mov dword [esp + 8], edi
mov dword [esp], esi
lea ecx, [ebp - 0x90]
call fcn.00413fe0
lea edi, [ebp - 0x90]
jmp 0x411ca6
mov dword [ebp - 0x40], esi
mov eax, esi
add eax, esi
push eax
push edi
lea edi, [ebp - 0x50]
push edi
call fcn.004c4690
add esp, 0xc
mov word [ebp + esi*2 - 0x50], 0
mov dword [ebp - 0x10], 9
mov dword [ebp - 0x10], 9
push edi
lea eax, [ebp - 0x70]
push eax
call fcn.00443050
add esp, 8
lea eax, [ebp + 8]
cmp dword [eax + 0x18], 0xf
lea ecx, [ebp + 0xc]
mov edi, ecx
jbe 0x411a98
mov edi, dword [eax + 4]
mov esi, dword [eax + 0x14]
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
mov edx, ecx
sub edx, eax
cmp edx, esi
jae 0x411ae0
mov dword [ebp - 0x10], 0xa
sub esp, 0x14
movzx eax, byte [ebp - 0x90]
mov byte [esp + 4], al
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp], esi
mov dword [esp + 8], 0
lea ecx, [ebp - 0x70]
call fcn.004140f0
jmp 0x411b4a
lea edx, [eax + esi]
mov dword [ebp - 0x60], edx
lea ebx, [ebp - 0x70]
cmp ecx, 0xf
jbe 0x411af1
mov ebx, dword [ebp - 0x70]
lea ecx, [edi + esi]
mov edx, edi
mov edi, esi
mov dword [ebp - 0x20], ecx
cmp ecx, ebx
jbe 0x411b12
lea ecx, [ebx + eax]
mov edi, esi
cmp ecx, edx
jb 0x411b12
xor edi, edi
mov ecx, ebx
sub ecx, edx
jbe 0x411b12
mov edi, ecx
add eax, 1
lea ecx, [ebx + esi]
push eax
push ebx
push ecx
mov dword [ebp - 0x28], edx
call fcn.004c4690
add esp, 0xc
push edi
push dword [ebp - 0x28]
push ebx
call fcn.004c4690
add esp, 0xc
sub esi, edi
mov eax, dword [ebp - 0x20]
add eax, edi
add ebx, edi
push esi
push eax
push ebx
call fcn.004c4690
add esp, 0xc
lea eax, [ebp - 0x70]
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x88], ecx
movsd xmm0, qword [eax + 4]
movsd qword [ebp - 0x90], xmm0
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x34], ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x20], ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
cmp dword [eax + 4], 0x7ffffff
mov dword [ebp - 0x10], 0xb
je 0x411fe4
push 0x20
call fcn.004a880e
add esp, 4
mov ecx, dword [ebp - 0x28]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x88]
mov dword [eax + 0x14], ecx
movsd xmm0, qword [ebp - 0x90]
movsd qword [eax + 0xc], xmm0
mov ecx, dword [ebp - 0x34]
mov dword [eax + 0x18], ecx
mov ecx, dword [ebp - 0x30]
add dword [ecx + 4], 1
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x1c], ecx
mov edx, dword [ebp - 0x38]
mov ecx, dword [edx + 4]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [edx + 4], eax
mov dword [ecx], eax
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
lea edi, [ebp - 0x2d0]
jb 0x411c25
mov ecx, dword [ebp - 0x70]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x411c1b
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x411ff1
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.004a8843
add esp, 8
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
mov ecx, dword [ebp - 0x3c]
cmp ecx, 8
jb 0x411910
mov eax, dword [ebp - 0x50]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jb 0x411c6e
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x411ff1
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.004a8843
add esp, 8
jmp 0x411910
mov dword [ebp - 0x80], esi
mov eax, esi
add eax, esi
push eax
push edi
lea edi, [ebp - 0x90]
push edi
call fcn.004c4690
add esp, 0xc
mov word [ebp + esi*2 - 0x90], 0
mov dword [ebp - 0x10], 7
mov byte [ebp - 0x22], 1
mov dword [ebp - 0x10], 7
push edi
lea eax, [ebp - 0x50]
push eax
call fcn.00443050
add esp, 8
lea eax, [ebp + 8]
cmp dword [eax + 0x18], 0xf
lea ecx, [ebp + 0xc]
mov edi, ecx
jbe 0x411ccf
mov edi, dword [eax + 4]
mov esi, dword [eax + 0x14]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov edx, ecx
sub edx, eax
cmp edx, esi
lea ebx, [ebp - 0x50]
jae 0x411d15
mov byte [ebp - 0x21], 1
mov dword [ebp - 0x10], 8
sub esp, 0x14
movzx eax, byte [ebp - 0x58]
mov byte [esp + 4], al
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp], esi
mov dword [esp + 8], 0
mov ecx, ebx
call fcn.004140f0
jmp 0x411d7c
lea edx, [eax + esi]
mov dword [ebp - 0x40], edx
cmp ecx, 0xf
jbe 0x411d23
mov ebx, dword [ebp - 0x50]
lea ecx, [edi + esi]
mov edx, edi
mov edi, esi
mov dword [ebp - 0x34], ecx
cmp ecx, ebx
jbe 0x411d44
lea ecx, [ebx + eax]
mov edi, esi
cmp ecx, edx
jb 0x411d44
xor edi, edi
mov ecx, ebx
sub ecx, edx
jbe 0x411d44
mov edi, ecx
add eax, 1
lea ecx, [ebx + esi]
push eax
push ebx
push ecx
mov dword [ebp - 0x54], edx
call fcn.004c4690
add esp, 0xc
push edi
push dword [ebp - 0x54]
push ebx
call fcn.004c4690
add esp, 0xc
sub esi, edi
mov eax, dword [ebp - 0x34]
add eax, edi
add ebx, edi
push esi
push eax
push ebx
call fcn.004c4690
add esp, 0xc
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 0x20]
mov ecx, edx
add ecx, 4
movsd xmm0, qword [eax + 0x10]
movsd qword [ecx + 0x10], xmm0
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x58]
mov dword [edx], eax
mov byte [edx + 0x34], 1
mov byte [ebp - 0x21], 0
mov dword [ebp - 0x10], 8
call fcn.00411660
add esp, 0x38
mov esp, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x58]
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
lea edi, [ebp - 0x2d0]
jb 0x411e0c
mov ecx, dword [ebp - 0x50]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x411e02
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x411ff1
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.004a8843
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
mov ecx, dword [ebp - 0x7c]
cmp ecx, 8
jb 0x411e5e
mov eax, dword [ebp - 0x90]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jb 0x411e54
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x411ff1
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.004a8843
add esp, 8
cmp ebx, dword [ebp - 0x30]
je 0x411900
mov edx, dword [ebx + 4]
test edx, edx
je 0x411900
mov ecx, dword [ebp - 0x30]
mov esi, dword [ecx + 4]
mov eax, 0x7ffffff
sub eax, esi
cmp eax, edx
mov dword [ebp - 0x20], ebx
jb 0x411ff6
mov eax, dword [ecx]
mov edi, dword [ebx]
mov ebx, ecx
mov ecx, dword [edi]
add esi, edx
mov dword [ebx + 4], esi
mov esi, dword [ebp - 0x20]
sub dword [esi + 4], edx
mov edx, dword [ecx + 4]
mov dword [edx], edi
mov esi, dword [edi + 4]
mov dword [esi], eax
mov ebx, dword [eax + 4]
mov dword [ebx], ecx
mov dword [eax + 4], esi
mov dword [edi + 4], edx
mov dword [ecx + 4], ebx
mov ebx, dword [ebp - 0x20]
mov edx, dword [eax]
cmp edx, ecx
lea edi, [ebp - 0x2d0]
je 0x411900
sub esp, 0x10
movzx ebx, byte [ebp - 0x50]
mov byte [esp + 0xc], bl
mov ebx, dword [ebp - 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call fcn.004142a0
add esp, 0x10
jmp 0x411900
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x98]
cmp ecx, 8
jb 0x411f45
mov eax, dword [ebp - 0xac]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jb 0x411f3b
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x411ff1
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.004a8843
add esp, 8
lea ecx, [ebp + 8]
mov eax, dword [ecx + 0x18]
cmp eax, 0x10
jb 0x411f85
lea ecx, [ebp + 0xc]
mov ecx, dword [ecx]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x411f78
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x411ff1
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.004a8843
add esp, 8
lea ecx, [ebp + 8]
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0xf
mov byte [ecx + 4], 0
mov eax, dword [ecx + 0x30]
cmp eax, 0x10
jb 0x411fd0
lea ecx, [ebp + 0x24]
mov ecx, dword [ecx]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x411fc3
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x411ff1
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.004a8843
add esp, 8
lea ecx, [ebp + 8]
mov eax, dword [ecx]
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push str.list_too_long
call fcn.004ac71e
add esp, 4
call fcn.004cc578
mov dword [ebp - 0x10], 5
push str.list_too_long
call fcn.004ac71e
add esp, 4
mov dword [ebp - 0x10], 0
call fcn.00407240
nop word cs:[eax + eax]
push ebp
sub esp, 0x38
add ebp, 0xc
push dword [ebp - 0x30]
call fcn.004a883e
add esp, 0x3c
pop ebp
ret