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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445020
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
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 eax, dword [ebp + 0x38]
mov dword [ebp - 4], 1
mov byte [ebp - 0x54], 1
test eax, eax
je 0x412930
mov dword [ebp - 0x50], 0
test eax, eax
je 0x41288e
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 0x18
lea eax, [ebp + 8]
mov edi, esp
mov dword [ebp - 0x58], esp
mov edx, 0x7ffffffe
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
cmp dword [ebp + 0x1c], 8
mov ecx, dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], eax
cmp ecx, 8
jae 0x41255b
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 7
jmp 0x4125a1
mov esi, ecx
mov ecx, edi
or esi, 7
cmp esi, 0x7ffffffe
cmova esi, edx
lea eax, [esi + 1]
push eax
call fcn.00408270
mov ecx, dword [ebp - 0x44]
mov dword [edi], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x48]
push eax
call fcn.00425e50
mov eax, dword [ebp - 0x44]
add esp, 0xc
mov dword [edi + 0x14], esi
mov edx, 0x7ffffffe
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [edi + 0x10], eax
sub esp, 0x18
mov byte [ebp - 4], 2
mov edi, esp
lea eax, [ebp + 0x20]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
cmp dword [ebp + 0x34], 8
mov ecx, dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], eax
cmp ecx, 8
jae 0x4125e3
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 7
jmp 0x412624
mov esi, ecx
mov ecx, edi
or esi, 7
cmp esi, 0x7ffffffe
cmova esi, edx
lea eax, [esi + 1]
push eax
call fcn.00408270
mov ecx, dword [ebp - 0x44]
mov dword [edi], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x48]
push eax
call fcn.00425e50
mov eax, dword [ebp - 0x44]
add esp, 0xc
mov dword [edi + 0x14], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [edi + 0x10], eax
push 1
push dword [ebp - 0x50]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.004118e0
add esp, 0x3c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x28]
push eax
call esi
cmp eax, 0xffffffff
jne 0x412692
lea eax, [ebp - 0x28]
push eax
call fcn.0040e4c0
add esp, 4
lea ecx, [ebp - 0x28]
push 4
push str..Log
push 4
push eax
call fcn.004159b0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
cmp eax, 0xffffffff
jne 0x412692
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00405dd0
jmp 0x41287e
sub esp, 0x18
lea eax, [ebp + 8]
mov edi, esp
mov dword [ebp - 0x58], esp
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
cmp dword [ebp + 0x1c], 8
mov ecx, dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], eax
cmp ecx, 8
jae 0x4126d3
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 7
jmp 0x412719
mov esi, ecx
mov eax, 0x7ffffffe
or esi, 7
mov ecx, edi
cmp esi, 0x7ffffffe
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00408270
mov ecx, dword [ebp - 0x44]
mov dword [edi], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x48]
push eax
call fcn.00425e50
mov eax, dword [ebp - 0x44]
add esp, 0xc
mov dword [edi + 0x14], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [edi + 0x10], eax
sub esp, 0x18
mov byte [ebp - 4], 4
mov edi, esp
lea eax, [ebp + 0x20]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
cmp dword [ebp + 0x34], 8
mov ecx, dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], eax
cmp ecx, 8
jae 0x41275b
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 7
jmp 0x4127a1
mov esi, ecx
mov eax, 0x7ffffffe
or esi, 7
mov ecx, edi
cmp esi, 0x7ffffffe
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00408270
mov ecx, dword [ebp - 0x44]
mov dword [edi], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x48]
push eax
call fcn.00425e50
mov eax, dword [ebp - 0x44]
add esp, 0xc
mov dword [edi + 0x14], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [edi + 0x10], eax
push 0
push dword [ebp - 0x50]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
call fcn.004118e0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00412df0
add esp, 0x44
lea ecx, [ebp - 0x40]
neg al
sbb al, al
and al, byte [ebp - 0x54]
cmp dword [ebp - 0x2c], 8
mov byte [ebp - 0x49], al
cmovae ecx, dword [ebp - 0x40]
push ecx
call esi
movzx ecx, byte [ebp - 0x49]
xor edx, edx
cmp eax, 0xffffffff
mov byte [ebp - 4], 3
cmovne ecx, edx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x54], ecx
cmp edx, 8
jb 0x41282c
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412822
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41294b
push edx
push ecx
call fcn.004241cb
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x41287e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412874
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41294b
push edx
push ecx
call fcn.004241cb
add esp, 8
mov ecx, dword [ebp - 0x50]
inc ecx
mov dword [ebp - 0x50], ecx
cmp ecx, dword [ebp + 0x38]
jb 0x412515
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x4128c8
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4128be
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41294b
push edx
push ecx
call fcn.004241cb
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x412912
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412908
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412950
push edx
push ecx
call fcn.004241cb
add esp, 8
mov al, byte [ebp - 0x54]
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 - 0x1c]
call fcn.00401490
push 0x45b95c
lea eax, [ebp - 0x1c]
push eax
call fcn.00425c43
call fcn.0042b37c
call fcn.0042b37c
int3