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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x446651
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x45c070]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov eax, dword [0x45c070]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x20]
push esi
push eax
mov ebx, 0x452670
call fcn.00406e80
add esp, 8
lea ecx, [esp + 0x2c]
mov dword [esp + 0x290], 0
mov edx, dword [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4111e1
mov dword [esp + 0x290], eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4111d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
xor edx, edx
jmp 0x41135c
mov ecx, 0x452678
lea eax, [esp + 0x58]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411216
test dx, dx
je 0x411212
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411216
add eax, 4
add ecx, 4
test dx, dx
jne 0x4111f0
xor eax, eax
jmp 0x41121b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41130e
mov ecx, 0x45267c
lea eax, [esp + 0x58]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411256
test dx, dx
je 0x411252
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411256
add eax, 4
add ecx, 4
test dx, dx
jne 0x411230
xor eax, eax
jmp 0x41125b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41130e
test byte [esp + 0x2c], 0x10
je 0x4112f8
lea ecx, [esp + 0x24]
push esi
push ecx
mov ebx, 0x451824
call fcn.00406e80
push eax
lea edx, [esp + 0x34]
push edx
lea ebx, [esp + 0x68]
mov byte [esp + 0x2a0], 1
call fcn.00406e80
push eax
mov byte [esp + 0x2a4], 2
call fcn.00411130
mov byte [esp + 0x2a4], 1
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4112ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x290], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41130e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41130e
mov edx, dword [esp + 0x48]
xor ecx, ecx
xor ebx, ebx
add ecx, dword [esp + 0x4c]
adc edx, ebx
add dword [esp + 0x14], ecx
adc dword [esp + 0x18], edx
lea ecx, [esp + 0x2c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4111e1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x290], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411354
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.0042d4af
mov esp, ebp
pop ebp
ret