Function at 0x411ba0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444f46
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x45d0bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x9c], edx
mov ecx, dword [edx + 0x154]
test ecx, ecx
je 0x412136
xor edi, edi
xor eax, eax
xor esi, esi
mov dword [ebp - 0x94], edi
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 4], eax
test ecx, ecx
je 0x411d89
cmp ecx, 0xaaaaaaa
ja 0x412157
push ecx
lea ecx, [ebp - 0xa8]
call fcn.00413ea0
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0xa0]
mov edi, dword [ebp - 0xa8]
mov esi, dword [ebp - 0xa4]
mov ecx, dword [edx + 0x154]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], edi
test ecx, ecx
je 0x411d89
lea eax, [edx + 0x120]
xor edi, edi
lea ecx, [edx + 0x138]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], ecx
nop word [eax + eax]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xb4], esp
push eax
call fcn.00405e70
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
push dword [ebp - 0x90]
call fcn.00405e70
push 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0
push edi
push eax
call fcn.004118e0
add esp, 0x3c
mov byte [ebp - 4], 2
cmp dword [ebp - 0x98], esi
je 0x411d03
mov dword [esi + 0x10], 0
xor ecx, ecx
mov dword [esi + 0x14], 0
mov eax, 7
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [esi + 0x10], xmm0
add esi, 0x18
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], eax
mov word [ebp - 0x40], cx
mov dword [ebp - 0xa4], esi
jmp 0x411d28
lea eax, [ebp - 0x40]
push eax
push esi
lea ecx, [ebp - 0xa8]
call fcn.0040fdd0
mov eax, dword [ebp - 0xa0]
mov esi, dword [ebp - 0xa4]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x411d63
mov ecx, dword [ebp - 0x40]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411d59
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41215c
push edx
push ecx
call fcn.004241cb
add esp, 8
mov eax, dword [ebp - 0x9c]
inc edi
cmp edi, dword [eax + 0x154]
jae 0x411d7d
mov eax, dword [ebp - 0x94]
jmp 0x411c80
mov edi, dword [ebp - 0xa8]
mov dword [ebp - 0x94], edi
mov eax, edi
mov dword [ebp - 0x90], eax
cmp eax, esi
je 0x411edb
lea edi, [eax + 0x18]
cmp edi, esi
je 0x411ed5
nop dword [eax]
nop dword [eax + eax]
cmp dword [eax + 0x14], 8
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
mov ecx, eax
movlpd qword [ebp - 0x38], xmm0
jb 0x411dc9
mov ecx, dword [eax]
lea eax, [ebp - 0x88]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x411de5
mov byte [ebp - 0x89], al
jmp 0x411e1d
mov ecx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0xbc], 2
movups xmm0, xmmword [ebp - 0xc4]
mov dword [ebp - 0xac], 0
mov byte [ebp - 0x89], 1
movups xmmword [ebp - 0x38], xmm0
cmp dword [edi + 0x14], 8
xorps xmm0, xmm0
mov dword [ebp - 0xdc], 0
mov eax, edi
movlpd qword [ebp - 0xe4], xmm0
jb 0x411e3c
mov eax, dword [edi]
lea ecx, [ebp - 0x64]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x411e51
xor cl, cl
jmp 0x411e87
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0xd0], ecx
mov cl, 1
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xcc], 2
movups xmm0, xmmword [ebp - 0xd4]
mov dword [ebp - 0xac], 0
movups xmmword [ebp - 0xe4], xmm0
cmp byte [ebp - 0x89], 0
je 0x411eb3
test cl, cl
je 0x411eb3
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0x38]
call fcn.00411b10
test edx, edx
jg 0x411eb1
jl 0x411ead
test eax, eax
jae 0x411eb1
mov cl, 1
jmp 0x411eb3
xor cl, cl
test cl, cl
mov eax, edi
cmove eax, dword [ebp - 0x90]
add edi, 0x18
mov dword [ebp - 0x90], eax
cmp edi, esi
jne 0x411db0
mov dword [ebp - 0x90], eax
mov edi, dword [ebp - 0x94]
push eax
lea ecx, [ebp - 0x28]
call fcn.00405e70
mov ecx, dword [ebp - 0x90]
mov eax, 0x2aaaaaab
sub ecx, edi
mov byte [ebp - 4], 3
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
xor eax, edx
sub eax, edx
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov dword [ebp - 0x94], eax
cmovae edx, dword [ebp - 0x28]
push edx
mov dword [ebp - 0x90], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x411fee
mov ecx, dword [ebp - 0x9c]
lea eax, [ebp - 0x90]
push 2
push eax
call fcn.00412960
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x411f7b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411f71
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41215c
push edx
push ecx
call fcn.004241cb
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test edi, edi
je 0x41211b
lea ecx, [ebp - 0xa8]
push ecx
push esi
push edi
call fcn.0040fd60
mov ecx, dword [ebp - 0x98]
mov eax, 0x2aaaaaab
sub ecx, edi
add esp, 0xc
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, edi
shl ecx, 3
cmp ecx, 0x1000
jb 0x412111
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412161
jmp 0x412111
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x64]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
mov edx, dword [ebp - 0x9c]
test eax, eax
je 0x41209b
cmp dword [ebp - 0x48], 0
mov eax, dword [edx + 0x150]
ja 0x41209b
jb 0x412027
cmp dword [ebp - 0x44], eax
jae 0x41209b
push 5
lea eax, [ebp - 0x90]
mov ecx, edx
push eax
call fcn.00412960
lea ecx, [ebp - 0x28]
call fcn.00405dd0
test edi, edi
je 0x41211b
lea eax, [ebp - 0xa8]
push eax
push esi
push edi
call fcn.0040fd60
mov ecx, dword [ebp - 0x98]
mov eax, 0x2aaaaaab
sub ecx, edi
add esp, 0xc
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, edi
shl ecx, 3
cmp ecx, 0x1000
jb 0x412111
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412166
jmp 0x412111
mov ecx, dword [ebp - 0x94]
inc ecx
cmp ecx, dword [edx + 0x154]
push 2
sbb eax, eax
and eax, ecx
mov ecx, edx
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x90]
push eax
call fcn.00412960
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4120f8
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4120ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41216b
push edx
push ecx
call fcn.004241cb
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x41203f
push ecx
push edi
call fcn.004241cb
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424185
mov esp, ebp
pop ebp
ret
push str.maxFileCount_can_not_be_0
lea ecx, [ebp - 0xa8]
call fcn.00401490
push 0x45b95c
lea eax, [ebp - 0xa8]
push eax
call fcn.00425c43
call fcn.004092b0
call fcn.0042b37c
call fcn.0042b37c
call fcn.0042b37c
call fcn.0042b37c
int3