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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4719ec
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4e0
mov eax, dword [0x494054]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x474], edx
mov eax, ecx
mov dword [ebp - 0x478], eax
lea esi, [ebp - 0x220]
mov edi, 0x104
mov eax, esi
sub ecx, eax
nop
lea eax, [edi + 0x7ffffefa]
test eax, eax
je 0x40b58e
movzx eax, word [ecx + esi]
test ax, ax
je 0x40b58e
mov word [esi], ax
add esi, 2
sub edi, 1
jne 0x40b570
test edi, edi
lea eax, [esi - 2]
cmovne eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, 0x104
lea eax, [ebp - 0x220]
cmp word [eax], 0
je 0x40b5b4
add eax, 2
sub ecx, 1
jne 0x40b5a6
mov edx, 0x104
mov esi, ecx
mov eax, edx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x40b608
lea ecx, [ebp - 0x220]
lea ecx, [ecx + esi*2]
sub edx, esi
je 0x40b5fb
mov edi, 0x488cac
mov eax, 0x7ffffffe
sub edi, ecx
test eax, eax
je 0x40b5fb
movzx esi, word [edi + ecx]
test si, si
je 0x40b5fb
mov word [ecx], si
dec eax
add ecx, 2
sub edx, 1
jne 0x40b5e2
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
push 0
push 0
push 1
lea eax, [ebp - 0x470]
push eax
push 0
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b632
xor al, al
jmp 0x40b960
test byte [ebp - 0x470], 0x10
mov ecx, 0x2e
je 0x40b941
cmp cx, word [ebp - 0x444]
je 0x40b941
push dword [ebp - 0x478]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [ebp - 0x21e]
lea esi, [ebp - 0x444]
lea eax, [edx + eax*2]
mov edx, 0x104
sub esi, eax
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x40b691
movzx ecx, word [esi + eax]
test cx, cx
je 0x40b691
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x40b673
lea ecx, [eax - 2]
mov dword [ebp - 0x4ac], 7
test edx, edx
cmovne ecx, eax
xor eax, eax
mov dword [ebp - 0x4c0], eax
mov dword [ebp - 0x4b0], eax
mov word [ebp - 0x4c0], ax
mov word [ecx], ax
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x4c0]
call fcn.00406110
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4a8]
xor eax, eax
mov dword [ebp - 0x4a8], 0
push 0x488cb4
mov dword [ebp - 0x498], 0
mov dword [ebp - 0x494], 7
mov word [ebp - 0x4a8], ax
call fcn.00406110
push dword [ebp - 0x478]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x490]
xor eax, eax
mov dword [ebp - 0x490], 0
mov dword [ebp - 0x480], 0
mov dword [ebp - 0x47c], 7
mov word [ebp - 0x490], ax
call fcn.00406110
lea eax, [ebp - 0x4a8]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x490]
push eax
push dword [ebp - 0x474]
lea ecx, [ebp - 0x4f0]
call fcn.00406360
lea eax, [ebp - 0x4c0]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x4f0]
push eax
push dword [ebp - 0x474]
lea ecx, [ebp - 0x4d8]
call fcn.00406360
mov esi, dword [ebp - 0x474]
mov byte [ebp - 4], 4
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x40b7ca
movups xmm0, xmmword [ebp - 0x4d8]
mov edx, 7
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x4c8]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [esi + 4], 0x18
mov word [ebp - 0x4d8], ax
jmp 0x40b7df
lea ecx, [ebp - 0x4d8]
push ecx
push eax
mov ecx, esi
call fcn.004171b0
mov edx, dword [ebp - 0x4c4]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x40b81d
mov ecx, dword [ebp - 0x4d8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b813
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b97e
push edx
push ecx
call fcn.0044c564
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x4dc]
cmp edx, 8
jb 0x40b861
mov ecx, dword [ebp - 0x4f0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b857
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b97e
push edx
push ecx
call fcn.0044c564
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x47c]
cmp edx, 8
jb 0x40b8a5
mov ecx, dword [ebp - 0x490]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b89b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b97e
push edx
push ecx
call fcn.0044c564
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x494]
cmp edx, 8
jb 0x40b8e9
mov ecx, dword [ebp - 0x4a8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b8df
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b97e
push edx
push ecx
call fcn.0044c564
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x4ac]
cmp edx, 8
jb 0x40b92c
mov ecx, dword [ebp - 0x4c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b922
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b97e
push edx
push ecx
call fcn.0044c564
add esp, 8
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x220]
inc eax
mov edx, esi
push eax
call fcn.0040b510
add esp, 4
lea eax, [ebp - 0x470]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40b632
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044c0d8
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00450fe0
int3