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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5225c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2d0
mov eax, dword [0x57dcc0]
xor eax, ebp
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2dc], ecx
cmp dword [ebp + 8], 0
jne 0x41543e
mov eax, 0x80004005
jmp 0x41591c
mov dword [ebp - 0x278], 1
lea ecx, [ebp - 0x290]
call fcn.00402a80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2bc]
call fcn.00402a80
mov byte [ebp - 4], 1
cmp dword [ebp + 0x10], 0
jne 0x4154a8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402b50
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.00406ee0
push 0x537ad8
lea ecx, [ebp - 0x290]
call fcn.00402b50
push 0x537adc
lea ecx, [ebp - 0x2bc]
call fcn.00402b50
jmp 0x4154c6
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x290]
call fcn.00402b50
mov edx, dword [ebp + 0x14]
push edx
lea ecx, [ebp - 0x2bc]
call fcn.00402b50
lea ecx, [ebp - 0x2b8]
call fcn.00402a80
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2b8]
call fcn.00402b50
push 0x104
lea ecx, [ebp - 0x2b8]
call fcn.00402f10
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2b8]
call fcn.00417340
push 0x537ae0
lea ecx, [ebp - 0x2b8]
call fcn.0040add0
mov ecx, dword [ebp - 0x2dc]
add ecx, 0x3c
push ecx
lea ecx, [ebp - 0x2b8]
call fcn.00417320
push 0x250
push 0
lea edx, [ebp - 0x274]
push edx
call fcn.0042c040
add esp, 0xc
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x2b8]
call fcn.00418360
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2c0], eax
cmp dword [ebp - 0x2c0], 0xffffffff
jne 0x4155b0
mov dword [ebp - 0x2d4], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2b8]
call fcn.00402b10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2bc]
call fcn.00402b10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x290]
call fcn.00402b10
mov eax, dword [ebp - 0x2d4]
jmp 0x41591c
lea ecx, [ebp - 0x28c]
call fcn.004fb238
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.004fb238
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28c]
call fcn.00416f40
lea ecx, [ebp - 0x20]
call fcn.00416f40
lea ecx, [ebp - 0x2b4]
call fcn.00406ad0
mov byte [ebp - 4], 5
push 0x537ae8
lea ecx, [ebp - 0x248]
push ecx
call fcn.0042ca45
add esp, 8
test eax, eax
je 0x41561d
push 0x537aec
lea edx, [ebp - 0x248]
push edx
call fcn.0042ca45
add esp, 8
test eax, eax
jne 0x415622
jmp 0x415722
lea ecx, [ebp - 0x2b4]
call fcn.00406b50
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x2b4]
call fcn.00402b50
cmp dword [ebp - 0x278], 0
je 0x415680
lea ecx, [ebp - 0x2b4]
push ecx
lea ecx, [ebp - 0x2ac]
call fcn.00402b30
push 0x104
lea ecx, [ebp - 0x2ac]
call fcn.00402f10
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2ac]
call fcn.00417340
jmp 0x415692
lea edx, [ebp - 0x2b4]
push edx
lea ecx, [ebp - 0x2ac]
call fcn.00402b30
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x2b0]
call fcn.00402b30
lea ecx, [ebp - 0x2bc]
push ecx
lea ecx, [ebp - 0x2a8]
call fcn.00402b30
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x2a4], edx
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x2a0], eax
mov ecx, dword [ebp - 0x274]
and ecx, 0x10
je 0x415706
lea edx, [ebp - 0x2b4]
push edx
lea ecx, [ebp - 0x28c]
call fcn.00416f60
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x20]
call fcn.00416f60
mov dword [ebp - 0x29c], 0x10
jmp 0x415710
mov dword [ebp - 0x29c], 0
lea ecx, [ebp - 0x2b4]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.004173b0
lea edx, [ebp - 0x274]
push edx
mov eax, dword [ebp - 0x2c0]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4155ed
mov ecx, dword [ebp - 0x2c0]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x2c4], 0
jmp 0x415766
mov edx, dword [ebp - 0x2c4]
add edx, 1
mov dword [ebp - 0x2c4], edx
lea ecx, [ebp - 0x28c]
call fcn.00410640
cmp dword [ebp - 0x2c4], eax
jge 0x4158b2
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2cc]
call fcn.00402aa0
mov byte [ebp - 4], 6
push 0x104
lea ecx, [ebp - 0x2cc]
call fcn.00402f10
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2cc]
call fcn.00417340
mov ecx, dword [ebp - 0x2c4]
push ecx
lea ecx, [ebp - 0x28c]
call fcn.00416f90
push eax
lea ecx, [ebp - 0x2cc]
call fcn.00417320
lea ecx, [ebp - 0x2c8]
call fcn.00402a80
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x2c4]
push edx
lea ecx, [ebp - 0x28c]
call fcn.00416f90
mov eax, dword [eax]
push eax
mov ecx, dword [ebp - 0x290]
push ecx
push 0x537af4
lea edx, [ebp - 0x2c8]
push edx
call fcn.004046f0
add esp, 0x10
lea ecx, [ebp - 0x2d0]
call fcn.00402a80
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x20]
call fcn.00416f90
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x2bc]
push edx
push str._s_s_
lea eax, [ebp - 0x2d0]
push eax
call fcn.004046f0
add esp, 0x10
lea ecx, [ebp - 0x2d0]
call fcn.00418360
push eax
lea ecx, [ebp - 0x2c8]
call fcn.00418360
push eax
lea ecx, [ebp - 0x2cc]
call fcn.00418360
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x2dc]
call fcn.00415400
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2d0]
call fcn.00402b10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c8]
call fcn.00402b10
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2cc]
call fcn.00402b10
jmp 0x415757
mov dword [ebp - 0x2d8], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2b4]
call fcn.00406c40
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.004fb28a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28c]
call fcn.004fb28a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2b8]
call fcn.00402b10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2bc]
call fcn.00402b10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x290]
call fcn.00402b10
mov eax, dword [ebp - 0x2d8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.0042b9ea
mov esp, ebp
pop ebp
ret 0x10