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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45491c
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x46c018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x4c0], edi
mov esi, ecx
test esi, esi
je 0x410e6e
test edi, edi
je 0x410e6e
push 0x20a
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.0042f000
add esp, 0xc
lea eax, [ebp - 0x224]
push 0x104
push esi
push eax
call fcn.0043b05d
add esp, 0xc
test eax, eax
je 0x410e6e
xor eax, eax
mov dword [ebp - 0x254], 0
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 7
lea edx, [ecx + 2]
mov word [ebp - 0x254], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410b40
sub ecx, edx
lea eax, [ebp - 0x224]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x254]
call fcn.004029b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x254]
cmp dword [ebp - 0x240], 8
cmovae eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x410b8f
xor edi, edi
jmp 0x410e2e
xor eax, eax
mov dword [ebp - 0x23c], 0
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 7
lea edx, [ecx + 2]
mov word [ebp - 0x23c], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410bc0
sub ecx, edx
lea eax, [ebp - 0x224]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x23c]
call fcn.004029b0
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 1
call fcn.00412710
push 0x463d94
lea ecx, [ebp - 0x23c]
call fcn.00412b30
cmp dword [ebp - 0x228], 8
lea ecx, [ebp - 0x4bc]
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x4cc], esi
mov byte [ebp - 4], 2
cmp esi, 0xffffffff
jne 0x410c40
xor edi, edi
jmp 0x410dd1
mov ecx, 0x463bb0
lea eax, [ebp - 0x490]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410c76
test dx, dx
je 0x410c72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410c76
add eax, 4
add ecx, 4
test dx, dx
jne 0x410c50
xor eax, eax
jmp 0x410c7b
sbb eax, eax
or eax, 1
test eax, eax
je 0x410db1
mov eax, 0x463bb4
lea ecx, [ebp - 0x490]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x410cb6
test dx, dx
je 0x410cb2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x410cb6
add ecx, 4
add eax, 4
test dx, dx
jne 0x410c90
xor eax, eax
jmp 0x410cbb
sbb eax, eax
or eax, 1
test eax, eax
je 0x410db1
test byte [ebp - 0x4bc], 0x10
jne 0x410db1
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x26c]
call fcn.00402600
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 4
call fcn.00412710
lea eax, [ebp - 0x490]
push eax
lea ecx, [ebp - 0x26c]
call fcn.00412b30
cmp dword [edi + 4], 0x7ffffff
mov ebx, dword [edi]
je 0x410e91
mov dword [ebp - 0x4c8], edi
mov byte [ebp - 4], 5
push 0x20
mov dword [ebp - 0x4c4], 0
call fcn.0042cd41
mov edi, eax
add esp, 4
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x4c4], edi
lea ecx, [edi + 8]
push eax
call fcn.00402600
mov eax, dword [ebp - 0x4c0]
mov dword [ebp - 0x4c4], 0
inc dword [eax + 4]
mov eax, dword [ebx + 4]
mov dword [edi], ebx
mov dword [edi + 4], eax
mov dword [ebx + 4], edi
mov dword [eax], edi
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x258]
cmp edx, 8
jb 0x410dab
mov ecx, dword [ebp - 0x26c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410da1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410e8c
push edx
push ecx
call fcn.0042cd10
add esp, 8
mov edi, dword [ebp - 0x4c0]
lea eax, [ebp - 0x4bc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x410c40
push esi
lea edi, [eax + 1]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x228]
cmp edx, 8
jb 0x410e11
mov ecx, dword [ebp - 0x23c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410e07
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410e8c
push edx
push ecx
call fcn.0042cd10
add esp, 8
xor eax, eax
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
mov edx, dword [ebp - 0x240]
cmp edx, 8
jb 0x410e6a
mov ecx, dword [ebp - 0x254]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410e60
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410e8c
push edx
push ecx
call fcn.0042cd10
add esp, 8
mov eax, edi
jmp 0x410e70
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042cd02
mov esp, ebp
pop ebp
ret
call fcn.0043182f
push str.list_too_long
call fcn.00416a8d
int3