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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov esi, edx
mov edx, eax
mov dword [ebp - 0x25c], eax
push edi
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x401075
sub edx, edi
xor ecx, ecx
sar edx, 1
lea ebx, [edx + 3]
mov edx, 2
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00408bd1
mov edi, eax
add esp, 4
test edi, edi
je 0x4012cf
push dword [ebp - 0x25c]
push str._s
push ebx
push edi
call fcn.00401010
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4010e0
push edi
call fcn.00408bb6
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401739
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
push edi
mov dword [ebp - 0x260], ebx
call fcn.00408bb6
add esp, 4
cmp ebx, 0xffffffff
je 0x4012cf
nop dword [eax + eax]
mov ecx, 0x41c998
lea eax, [ebp - 0x22c]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401146
test dx, dx
je 0x401142
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401146
add eax, 4
add ecx, 4
test dx, dx
jne 0x401120
xor eax, eax
jmp 0x40114b
sbb eax, eax
or eax, 1
test eax, eax
je 0x401299
mov ecx, 0x41c99c
lea eax, [ebp - 0x22c]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401186
test dx, dx
je 0x401182
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401186
add eax, 4
add ecx, 4
test dx, dx
jne 0x401160
xor eax, eax
jmp 0x40118b
sbb eax, eax
or eax, 1
test eax, eax
je 0x401299
mov ecx, dword [ebp - 0x25c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4011a0
sub ecx, edx
lea edx, [ebp - 0x22c]
sar ecx, 1
lea edi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4011c0
sub edx, edi
sar edx, 1
lea edi, [edx + 2]
mov edx, 2
add edi, ecx
xor ecx, ecx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00408bd1
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4012c2
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x25c]
push str._s_s
push edi
push ebx
call fcn.00401010
add esp, 0x14
cmp eax, 0xffffffff
je 0x4012b1
xor edi, edi
test byte [ebp - 0x258], 0x10
jne 0x401255
cmp dword [esi + 0xc], edi
jbe 0x40128a
nop
mov eax, dword [esi + 8]
push ebx
mov eax, dword [eax + edi*8]
call eax
add esp, 4
test al, al
je 0x40124d
mov eax, dword [esi + 8]
push ebx
mov eax, dword [eax + edi*8 + 4]
call eax
add esp, 4
inc edi
cmp edi, dword [esi + 0xc]
jb 0x401230
jmp 0x40128a
cmp dword [esi + 4], edi
jbe 0x401281
nop word [eax + eax]
mov eax, dword [esi]
push ebx
mov eax, dword [eax + edi*8]
call eax
add esp, 4
test al, al
je 0x40127b
mov eax, dword [esi]
push ebx
mov eax, dword [eax + edi*8 + 4]
call eax
add esp, 4
inc edi
cmp edi, dword [esi + 4]
jb 0x401260
mov edx, esi
mov ecx, ebx
call fcn.00401050
push ebx
call fcn.00408bb6
mov ebx, dword [ebp - 0x260]
add esp, 4
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401110
jmp 0x4012c8
push ebx
call fcn.00408bb6
add esp, 4
push dword [ebp - 0x260]
jmp 0x4012c9
mov ebx, dword [ebp - 0x260]
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401739
mov esp, ebp
pop ebp
ret