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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45592c
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x46e018]
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 0x411ece
test edi, edi
je 0x411ece
push 0x20a
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.0042ff40
add esp, 0xc
lea eax, [ebp - 0x224]
push 0x104
push esi
push eax
call fcn.0043bf9d
add esp, 0xc
test eax, eax
je 0x411ece
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 0x411ba0
sub ecx, edx
lea eax, [ebp - 0x224]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x254]
call fcn.00402a20
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 0x411bef
xor edi, edi
jmp 0x411e8e
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 0x411c20
sub ecx, edx
lea eax, [ebp - 0x224]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x23c]
call fcn.00402a20
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 1
call fcn.00413630
push 0x465154
lea ecx, [ebp - 0x23c]
call fcn.00413a50
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 0x411ca0
xor edi, edi
jmp 0x411e31
mov ecx, 0x464f70
lea eax, [ebp - 0x490]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411cd6
test dx, dx
je 0x411cd2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411cd6
add eax, 4
add ecx, 4
test dx, dx
jne 0x411cb0
xor eax, eax
jmp 0x411cdb
sbb eax, eax
or eax, 1
test eax, eax
je 0x411e11
mov eax, 0x464f74
lea ecx, [ebp - 0x490]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x411d16
test dx, dx
je 0x411d12
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x411d16
add ecx, 4
add eax, 4
test dx, dx
jne 0x411cf0
xor eax, eax
jmp 0x411d1b
sbb eax, eax
or eax, 1
test eax, eax
je 0x411e11
test byte [ebp - 0x4bc], 0x10
jne 0x411e11
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x26c]
call fcn.00402670
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 4
call fcn.00413630
lea eax, [ebp - 0x490]
push eax
lea ecx, [ebp - 0x26c]
call fcn.00413a50
cmp dword [edi + 4], 0x7ffffff
mov ebx, dword [edi]
je 0x411ef1
mov dword [ebp - 0x4c8], edi
mov byte [ebp - 4], 5
push 0x20
mov dword [ebp - 0x4c4], 0
call fcn.0042dc81
mov edi, eax
add esp, 4
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x4c4], edi
lea ecx, [edi + 8]
push eax
call fcn.00402670
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 0x411e0b
mov ecx, dword [ebp - 0x26c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411e01
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411eec
push edx
push ecx
call fcn.0042dc50
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 0x411ca0
push esi
lea edi, [eax + 1]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x228]
cmp edx, 8
jb 0x411e71
mov ecx, dword [ebp - 0x23c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411e67
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411eec
push edx
push ecx
call fcn.0042dc50
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 0x411eca
mov ecx, dword [ebp - 0x254]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411ec0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411eec
push edx
push ecx
call fcn.0042dc50
add esp, 8
mov eax, edi
jmp 0x411ed0
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.0042dc42
mov esp, ebp
pop ebp
ret
call fcn.0043276f
push str.list_too_long
call fcn.004179cd
int3