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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517948
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5521f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x70], ecx
mov esi, dword [ebp + 0xc]
sub esp, 8
mov ebx, dword [ebp + 8]
mov edx, esp
cmp dword [esi + 0x14], 0x10
jb 0x404a53
mov eax, dword [esi]
jmp 0x404a55
mov eax, esi
mov dword [edx], eax
add ecx, 0x38
lea eax, [esi + 0x10]
mov dword [ebp - 0x6c], eax
mov eax, dword [eax]
mov dword [edx + 4], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00425800
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404b3c
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.004175a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
mov edi, dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x40]
cmp dword [esi + 0x14], 0x10
jb 0x404ab7
mov eax, dword [esi]
jmp 0x404ab9
mov eax, esi
mov edx, dword [ebp - 0x6c]
mov edx, dword [edx]
cmp edx, edi
jne 0x404af2
push edi
push ecx
push edx
push eax
call fcn.0042d470
add esp, 0x10
test eax, eax
sete al
test al, al
je 0x404af2
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x28]
add ecx, 0x20
cmp ecx, eax
je 0x404aee
push 0xffffffffffffffff
push 0
push eax
call fcn.00408f60
mov bl, 1
jmp 0x404b00
lea ecx, [ebp - 0x28]
call fcn.00424530
test al, al
jne 0x404b30
xor bl, bl
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x404b19
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004023a0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jmp 0x404c41
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00402210
xor edi, edi
nop
push ecx
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.00417a90
add esp, 4
test al, al
jne 0x404bae
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404b71
lea ecx, [ebp - 0x28]
call fcn.00424530
lea eax, [ebp - 0x38]
mov dword [ebp - 0x78], 1
push eax
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x74], 0
call fcn.00407020
add esp, 4
movups xmm0, xmmword [eax]
lea eax, [ebp - 0x68]
push eax
movups xmmword [ebp - 0x68], xmm0
call fcn.00495c6e
inc edi
add esp, 4
cmp edi, 2
jl 0x404b40
xor bl, bl
jmp 0x404c41
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
call fcn.004175a0
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 0x10
jb 0x404bc5
mov esi, dword [esi]
mov eax, dword [ebp - 0x6c]
cmp dword [ebp - 0x44], 0x10
mov edx, dword [ebp - 0x48]
mov ecx, dword [eax]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
cmp edx, ecx
jne 0x404c0c
push ecx
push esi
push edx
push eax
call fcn.0042d470
add esp, 0x10
test eax, eax
sete al
test al, al
je 0x404c0c
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x28]
add ecx, 0x20
cmp ecx, eax
je 0x404c08
push 0xffffffffffffffff
push 0
push eax
call fcn.00408f60
mov bl, 1
jmp 0x404c16
lea ecx, [ebp - 0x28]
call fcn.00424530
xor bl, bl
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x404c2f
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004023a0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x404c5d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00406490
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov al, bl
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497eb9
mov esp, ebp
pop ebp
ret 8