Function at 0x410160
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cab68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2d4
push ebx
push esi
mov ebx, edx
mov dword [ebp - 0x44], ecx
push edi
mov dword [ebp - 0x90], ebx
mov dword [ebp - 4], 0
call fcn.00411ab0
mov esi, dword [ebx + 4]
mov eax, 0x2aaaaaab
sub esi, dword [ebx]
mov edi, 0
imul esi
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
mov dword [ebp - 0x40], esi
je 0x4102e8
xor ebx, ebx
mov edi, edi
xor eax, eax
mov dword [ebp - 0x10], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x24], ax
lea ecx, [ebp - 0x24]
lea eax, [ebp + 8]
mov dword [ebp - 0x14], 0
push eax
call fcn.00414690
mov eax, dword [ebp - 0x90]
xor ecx, ecx
mov byte [ebp - 4], 1
push 0xffffffffffffffff
push ecx
mov eax, dword [eax]
add eax, ebx
mov word [ebp - 0x74], cx
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], 0
call fcn.00414690
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
cmp edx, 1
jbe 0x4102a3
mov ecx, dword [ebp - 0x64]
cmp ecx, 1
jbe 0x4102a3
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
cmp word [eax + edx*2 - 2], 0x5c
je 0x41024e
push 1
push 0x500050
lea ecx, [ebp - 0x24]
call fcn.00415ae0
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 0x74]
mov esi, dword [ebp - 0x74]
cmp edx, 8
cmovae eax, esi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x41027a
push 1
push 0x500050
lea ecx, [ebp - 0x74]
call fcn.00415ae0
mov edx, dword [ebp - 0x60]
mov esi, dword [ebp - 0x74]
cmp edx, 8
lea ecx, [ebp - 0x74]
lea eax, [ebp - 0x24]
cmovae ecx, esi
cmp dword [ebp - 0x10], 8
push ecx
cmovae eax, dword [ebp - 0x24]
push eax
call fcn.00420235
add esp, 8
test eax, eax
je 0x410367
mov esi, dword [ebp - 0x40]
cmp dword [ebp - 0x60], 8
jb 0x4102b4
push dword [ebp - 0x74]
call fcn.00422587
add esp, 4
xor eax, eax
mov dword [ebp - 0x60], 7
mov byte [ebp - 4], al
cmp dword [ebp - 0x10], 8
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
jb 0x4102dc
push dword [ebp - 0x24]
call fcn.00422587
add esp, 4
inc edi
add ebx, 0x18
cmp edi, esi
jb 0x4101c0
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
push 0xffffffffffffffff
mov dword [ebp - 0x28], 7
mov dword [eax + 0x8bc], 1
xor eax, eax
push eax
mov word [ebp - 0x3c], ax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x2c], 0
call fcn.00414690
mov byte [ebp - 4], 4
lea eax, [ebp - 0x3c]
cmp dword [ebp - 0x28], 8
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmovae eax, dword [ebp - 0x3c]
push eax
call ebx
mov edx, eax
mov dword [ebp - 0x10], 7
xor eax, eax
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
cmp word [edx], ax
jne 0x4103a6
xor ecx, ecx
jmp 0x4103bf
cmp dword [ebp - 0x60], 8
jb 0x410378
push dword [ebp - 0x74]
call fcn.00422587
add esp, 4
xor eax, eax
mov dword [ebp - 0x60], 7
cmp dword [ebp - 0x10], 8
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
jb 0x4109ec
push dword [ebp - 0x24]
call fcn.00422587
add esp, 4
jmp 0x4109ec
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x4103b0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4103b0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x24]
call fcn.00415c10
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x8c]
push eax
call fcn.00413520
mov esi, eax
lea eax, [ebp - 0x3c]
cmp eax, esi
je 0x41045b
cmp dword [ebp - 0x28], 8
jb 0x4103ff
push dword [ebp - 0x3c]
call fcn.00422587
add esp, 4
xor eax, eax
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
cmp dword [esi + 0x14], 8
jae 0x410431
mov eax, dword [esi + 0x10]
inc eax
je 0x41043c
add eax, eax
push eax
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.004205a0
add esp, 0xc
jmp 0x41043c
mov eax, dword [esi]
mov dword [ebp - 0x3c], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x78], 8
jb 0x41046f
push dword [ebp - 0x8c]
call fcn.00422587
add esp, 4
xor edi, edi
cmp dword [ebp - 0x2c], 0
jne 0x410481
cmp dword [ebp - 0x14], 0
je 0x410565
inc edi
lea eax, [ebp - 0x3c]
cmp dword [ebp - 0x28], 8
cmovae eax, dword [ebp - 0x3c]
push eax
call ebx
mov edx, eax
cmp word [edx], 0
jne 0x41049c
xor ecx, ecx
jmp 0x4104b0
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4104a1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x24]
call fcn.00415c10
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x3c]
sub eax, dword [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x8c]
push eax
call fcn.00413520
mov esi, eax
lea eax, [ebp - 0x3c]
cmp eax, esi
je 0x410548
cmp dword [ebp - 0x28], 8
jb 0x4104ec
push dword [ebp - 0x3c]
call fcn.00422587
add esp, 4
xor eax, eax
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
cmp dword [esi + 0x14], 8
jae 0x41051e
mov eax, dword [esi + 0x10]
inc eax
je 0x410529
add eax, eax
push eax
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.004205a0
add esp, 0xc
jmp 0x410529
mov eax, dword [esi]
mov dword [ebp - 0x3c], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [ebp - 0x78], 8
jb 0x410471
push dword [ebp - 0x8c]
call fcn.00422587
add esp, 4
jmp 0x410471
cmp edi, 3
jg 0x410728
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.00414690
call fcn.0040f310
add esp, 0x18
test al, al
jne 0x410728
push 0xffffffffffffffff
push 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00414690
push 0x400
lea ecx, [ebp - 0x68]
call fcn.00413a90
mov byte [ebp - 4], 6
xor ecx, ecx
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x68]
test eax, eax
je 0x4105eb
nop
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
mov ax, word [eax + ecx*2]
mov word [esi + ecx*2], ax
inc ecx
mov eax, dword [ebp - 0x4c]
cmp ecx, eax
jb 0x4105d0
mov ebx, dword [ebp - 0x44]
xor ecx, ecx
mov word [esi + eax*2 + 2], cx
lea eax, [ebx + 0x820]
cmp dword [eax + 0x14], 8
jb 0x410603
mov eax, dword [eax]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [ebp - 0x40]
xor eax, eax
mov dword [ebp - 0x78], 7
push dword [ebp - 0x64]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x7c], 0
push esi
mov word [ebp - 0x8c], ax
call fcn.00418400
cmp dword [ebp - 0x48], 8
jb 0x410645
push dword [ebp - 0x5c]
call fcn.00422587
add esp, 4
mov ecx, dword [ebp - 0x78]
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
cmp ecx, 8
jae 0x410682
mov eax, dword [ebp - 0x7c]
inc eax
je 0x41068b
add eax, eax
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004205a0
mov ecx, dword [ebp - 0x78]
add esp, 0xc
jmp 0x41068b
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x7c]
cmp ecx, 8
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push eax
mov dword [ebp - 0x48], ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41071b
push 0x7d00
call fcn.00420c62
lea ecx, [ebx + 0x838]
add esp, 4
cmp dword [ecx + 0x14], 8
mov edi, eax
jb 0x4106c6
mov ecx, dword [ecx]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebx + 0x864], 8
lea eax, [ebx + 0x850]
jb 0x4106df
mov eax, dword [eax]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x5c]
push eax
call fcn.00414690
mov ecx, edi
call fcn.0040f0e0
push edi
call fcn.00420bed
add esp, 0x1c
test esi, esi
je 0x410728
push esi
call fcn.00422587
add esp, 4
cmp dword [ebp - 0x10], 8
jb 0x410739
push dword [ebp - 0x24]
call fcn.00422587
add esp, 4
xor eax, eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x28], 8
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
jb 0x410762
push dword [ebp - 0x3c]
call fcn.00422587
add esp, 4
push 0x500224
lea edx, [ebp + 8]
lea ecx, [ebp - 0x8c]
call fcn.00417140
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x410780
mov eax, dword [eax]
lea ecx, [ebp - 0x2e0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp dword [ebp - 0x78], 8
mov edi, eax
jb 0x4107a4
push dword [ebp - 0x8c]
call fcn.00422587
add esp, 4
xor eax, eax
mov dword [ebp - 0x78], 7
xor esi, esi
mov dword [ebp - 0x7c], 0
mov word [ebp - 0x8c], ax
cmp edi, 0xffffffff
je 0x4109c7
mov ebx, dword [ebp + 0x20]
lea esp, [esp]
mov ecx, 0x500228
lea eax, [ebp - 0x2b4]
jmp 0x4107e0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410806
test dx, dx
je 0x410802
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410806
add eax, 4
add ecx, 4
test dx, dx
jne 0x4107e0
xor eax, eax
jmp 0x41080b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4109aa
mov ecx, 0x50022c
lea eax, [ebp - 0x2b4]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410846
test dx, dx
je 0x410842
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410846
add eax, 4
add ecx, 4
test dx, dx
jne 0x410820
xor eax, eax
jmp 0x41084b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4109aa
test byte [ebp - 0x2e0], 0x10
je 0x4108bf
lea eax, [ebp - 0x2b4]
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x24]
call fcn.00417140
add esp, 4
push 1
push 0x500050
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.00415ae0
push ebx
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x24]
push eax
call fcn.00414690
mov edx, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x44]
call fcn.00410160
add esp, 0x1c
jmp 0x410995
inc esi
cmp esi, 0x400
jl 0x4108cf
xor esi, esi
call fcn.00411ab0
xor eax, eax
mov dword [ebp - 0x10], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x24], ax
lea ecx, [ebp - 0x24]
lea eax, [ebp + 8]
mov dword [ebp - 0x14], 0
push eax
call fcn.00414690
mov byte [ebp - 4], 9
cmp word [ebp - 0x2b4], 0
jne 0x410904
xor ecx, ecx
jmp 0x41091f
lea ecx, [ebp - 0x2b4]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410910
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x24]
call fcn.00415ae0
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov ecx, dword [ebp - 0x44]
add ecx, 0x868
cmp dword [ecx + 0x14], 8
jb 0x410952
mov ecx, dword [ecx]
push eax
push ecx
call fcn.00421c02
add esp, 8
test eax, eax
jne 0x410995
mov ecx, dword [ebp - 0x44]
add ecx, 0x820
cmp dword [ecx + 0x14], 8
jb 0x410971
mov ecx, dword [ecx]
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
push ecx
cmovae eax, dword [ebp - 0x24]
push eax
call fcn.00421c02
add esp, 8
test eax, eax
jne 0x410995
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.004136c0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x10], 8
jb 0x4109aa
push dword [ebp - 0x24]
call fcn.00422587
add esp, 4
lea eax, [ebp - 0x2e0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4107d0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x48], 8
jb 0x4109d8
push dword [ebp - 0x5c]
call fcn.00422587
add esp, 4
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
cmp dword [ebp + 0x1c], 8
jb 0x4109fd
push dword [ebp + 8]
call fcn.00422587
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret