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.004098f9
mov edi, eax
add esp, 4
test edi, edi
je 0x4012d5
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.004098de
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401a9e
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.004098de
add esp, 4
cmp ebx, 0xffffffff
je 0x4012d5
nop dword [eax + eax]
mov ecx, 0x41d9b8
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 0x40129f
mov eax, 0x41d9bc
lea ecx, [ebp - 0x22c]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x401186
test dx, dx
je 0x401182
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x401186
add ecx, 4
add eax, 4
test dx, dx
jne 0x401160
xor eax, eax
jmp 0x40118b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40129f
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.004098f9
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4012c8
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 0x4012b7
xor edi, edi
test byte [ebp - 0x258], 0x10
jne 0x401255
cmp dword [esi + 0xc], edi
jbe 0x401290
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 0x401290
mov eax, dword [esi + 4]
test eax, eax
je 0x401287
nop dword [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
mov eax, dword [esi + 4]
inc edi
cmp edi, eax
jb 0x401260
test eax, eax
jne 0x401290
mov edx, esi
mov ecx, ebx
call fcn.00401050
push ebx
call fcn.004098de
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 0x4012ce
push ebx
call fcn.004098de
add esp, 4
push dword [ebp - 0x260]
jmp 0x4012cf
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.00401a9e
mov esp, ebp
pop ebp
ret