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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579eb5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.0040c100
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
mov edx, dword [ebp + 0x10]
call fcn.0040fce0
mov byte [ebp - 4], 2
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4109e5
push ecx
mov edi, esp
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
push eax
call fcn.0040c100
add esp, 4
add eax, 0x10
mov dword [edi], eax
call fcn.0040f080
mov edi, dword [ebp - 0x10]
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.00438ee8
push 0
push 0x1001
push esi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.004394af
mov ecx, dword [edi + 0x28]
mov edx, dword [ecx + 0x70]
mov eax, edx
or eax, dword [ecx + 0x74]
je 0x410c46
mov ecx, dword [ecx + 0x78]
cmp ecx, 1
jne 0x410a58
lea eax, [edx + 0x1000]
push ecx
push eax
call fcn.0055ff89
mov ebx, dword [ebp - 0x10]
add esp, 8
mov edi, eax
mov ecx, ebx
push edi
push 0
push 1
call fcn.004106f0
mov ecx, dword [ebx + 0x28]
push dword [ecx + 0x70]
lea ecx, [ebp - 0x58]
push edi
call fcn.0043986b
push edi
call fcn.0055bf43
add esp, 4
jmp 0x410c46
mov edx, dword [edi]
lea ebx, [edi + 4]
mov eax, dword [ebx]
test ecx, ecx
push 0
push 0x40
mov dword [ebp - 0x18], ebx
mov ecx, ebx
push edx
jne 0x410b16
call dword [eax + 0x24]
mov eax, dword [edi + 0x28]
mov ecx, ebx
mov edx, dword [ebx]
push 0
push dword [eax + 0x9c]
push dword [eax + 0x98]
call dword [edx + 0x2c]
push 1
push 0x1001000
call fcn.0055ff89
mov ecx, dword [edi + 0x28]
add esp, 8
mov edx, eax
mov dword [ebp - 0x14], edx
mov edi, dword [ecx + 0x70]
mov ebx, dword [ecx + 0x74]
mov ecx, edi
or ecx, ebx
je 0x410b06
mov esi, dword [ebp - 0x18]
test ebx, ebx
ja 0x410ad2
jb 0x410ac0
cmp edi, 0x1000000
ja 0x410ad2
xorps xmm0, xmm0
mov ecx, edi
movlpd qword [ebp - 0x34], xmm0
mov ebx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
jmp 0x410ae0
add edi, 0xff000000
mov ecx, 0x1000000
adc ebx, 0xffffffff
mov eax, dword [esi]
push ecx
mov dword [ebp - 0x1c], ecx
mov ecx, esi
push edx
call dword [eax + 0x38]
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x58]
push dword [ebp - 0x14]
call fcn.0043986b
mov edx, dword [ebp - 0x14]
mov eax, edi
or eax, ebx
jne 0x410ab2
mov esi, dword [ebp - 0x38]
push edx
call fcn.0055bf43
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
jmp 0x410c40
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
call dword [eax + 0x24]
mov eax, dword [edi + 0x28]
mov ecx, ebx
mov edx, dword [ebx]
push 0
push dword [eax + 0x9c]
push dword [eax + 0x98]
call dword [edx + 0x2c]
push 1
push 0x1001000
call fcn.0055ff89
mov ecx, dword [edi + 0x28]
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ecx + 0x74], 0
jb 0x410c36
ja 0x410b64
cmp dword [ecx + 0x70], 0
jbe 0x410c36
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
nop dword [eax]
mov eax, dword [ebx]
lea ecx, [ebp - 0x14]
push 4
push ecx
mov ecx, ebx
call dword [eax + 0x38]
mov eax, dword [ebp - 0x14]
add eax, 0x100
push 1
push eax
call fcn.0055ff89
mov edx, dword [ebx]
add esp, 8
mov ecx, ebx
mov dword [ebp - 0x18], eax
push dword [ebp - 0x14]
push eax
call dword [edx + 0x38]
mov eax, dword [ebp - 0x10]
mov edi, 0x1000000
mov ecx, dword [ebp - 0x18]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x7c]
xor dword [ecx], eax
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
push eax
call fcn.00419fc0
add esp, 4
test al, al
je 0x410bf4
cmp dword [ebp - 0x28], edi
ja 0x410bf4
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], vtable.snappy::ByteArraySource.0
mov dword [ebp - 0x3c], eax
call fcn.0041a280
test al, al
mov dword [ebp - 0x44], vtable.snappy::Source.0
cmovne edi, dword [ebp - 0x28]
push dword [ebp - 0x18]
call fcn.0055bf43
add esp, 4
lea ecx, [ebp - 0x58]
push edi
push dword [ebp - 0x1c]
call fcn.0043986b
mov eax, dword [ebp - 0x10]
add esi, edi
mov ecx, dword [ebp - 0x30]
adc ecx, 0
mov dword [ebp - 0x30], ecx
mov eax, dword [eax + 0x28]
cmp ecx, dword [eax + 0x74]
jb 0x410b70
ja 0x410c30
cmp esi, dword [eax + 0x70]
jb 0x410b70
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0055bf43
mov eax, dword [ebx]
mov ecx, ebx
add esp, 4
call dword [eax + 0x50]
lea ecx, [ebp - 0x58]
call fcn.0043923c
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x28]
mov edi, dword [edx + 0xa0]
mov eax, edi
mov ebx, dword [edx + 0xa4]
or eax, ebx
je 0x410cbe
mov ecx, dword [edx + 0xa8]
mov eax, dword [edx + 0xac]
push 0
push 0x80
push 3
push 0
push 7
push 0x40000000
push esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x410cbe
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x58]
call fcn.00438f6c
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x24]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410ce7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x410d02
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x410d21
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov eax, 1
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc